Wednesday, September 23, 2020 at 11:06 AM #186136Ajit VasudevanParticipant
I am trying to create/generate the auth token, but I am getting the following error from the https://api.xbrl.us/oauth2/token end point
“error_description”: “Bad Client”
I checked the client ID and secret multiple times.
The following is the raw body (masked client id and secret):
Any assistance would be much appreciated.
Wednesday, September 23, 2020 at 1:09 PM #186139David TaurielloKeymaster
Hi Ajit – what are you using to POST – ? – Insomnia, Postman or another testing client, or are you writing code in a language – ?
There are instructions for Insomnia posted at the end of the PDF documentation.
If you’re working in a language, check out the resources for PHP, Python and R linked in the list of free resources on the XBRL Data Community. Briefly, you need to POST body, and encoding to the token URL, then use the access_token as “Bearer $token” with your query.
If you’re still having an issue, post back and share the code you have and language you’re using.
Sunday, September 27, 2020 at 4:53 PM #186198Ajit VasudevanParticipant
Thanks David. It works now. The issue was with the username and password
- You must be logged in to reply to this topic.
XBRL API Resources
- The XBRL API
- XBRL Data Community
- XBRL API Interactive Documentation
- XBRL API Documentation (PDF)
- Get Started with Google Sheets
- OR get access to data for your own app and/or our API Tools
Join XBRL US
- Individual Options - Basic, Power User & Sole Practitioner
- For Your Team - Startup, Non-Profit, Academic & Corporate options
- Member Benefits Comparison Table
Using the XBRL API with the Public Filings Database
Unless otherwise agreed to in writing, any and all use of the XBRL API to authenticate and retrieve data from the XBRL US Database of Public Filings implies user consent and agreement with the XBRL US API Agreement. If you are unable to agree to these terms, do not use the XBRL API.
Your account needs to be provisioned before you can login and generate client ID/secret pairs.
Login or register for a free account.