Giter Site home page Giter Site logo

apikey error message about chemspiderapi HOT 5 CLOSED

giovp avatar giovp commented on August 17, 2024
apikey error message

from chemspiderapi.

Comments (5)

giovp avatar giovp commented on August 17, 2024 1

Thanks a lot, I indeed have reached the maximum already 😅

ChemSpider Response Error Details: "429: Too Many Requests. Send fewer requests, or use rate-limiting to slow them down, then try again.".

yes, those 1k are probably the monthly query max.

Thanks again, I'll try a workaround with chemspider.

from chemspiderapi.

RaoulWolf avatar RaoulWolf commented on August 17, 2024 1

Alright, I'll close the issue now.

If there are any other troubles, feel free to open a new issue!

from chemspiderapi.

RaoulWolf avatar RaoulWolf commented on August 17, 2024

Hi @giovp,

Before using the functionalities of the package you will need the compound API key, which will be a 32 character string. The API secret does not have to be provided to the package.

Unfortunately, the ChemSpider API does not support the direct conversion from InChIKey to SMILES. However, you can go for a two-step processes, first converting your InChIKeys to InChI strings, then converting the InChI strings to SMILES.

The possible conversion options are also named in the help file that you can access via help(post_convert).

Please let me know if this works for you!

from chemspiderapi.

giovp avatar giovp commented on August 17, 2024

Hi @RaoulWolf ,

thanks a lot for the prompt reply, I did a test run and it works. Couple of more questions on the matter:

  • do you think I can lower the 4seconds sleeptime for the query? Or is that sort of best practice settings that usually works?
  • in the chemspider api key application it mentions something like 1000 compounds limit. What does that mean>? That I can only send 1k query in total with my key,and then Iwould have to use another one?

Thank you again for the help, and btw the documentation+package is really great, for somebody who has zero knowledge on the topic it was very intuitive and practical.
Thank you!
Giovanni

from chemspiderapi.

RaoulWolf avatar RaoulWolf commented on August 17, 2024

The 4 second example is based on one of the common query restrictions for ChemSpider's API services. You always have an upper monthly limit (for example 1000 queries per month, depending on your subscription), but also a limit on how many requests per minute can be submitted (for example 15 queries per minute). This minute-limitation is achieved by introducing the rate limits as shown in the vignette; for 15 queries per minute this translates to the 4 second sleep time per query. Those limitations are based on your API subscription, and if in doubt I suggest contacting ChemSpider directly.

The 1000 compounds you mention probably are in the context of monthly queries? Or do you mean in a particular function of the package?

Thanks for the kind words 😃 Glad you find it useful!

from chemspiderapi.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.