I have a functional account, but access to actual data has not yet been approved by my institution. I have been using the components available to the public while I wait. The documentation claims no credentials are needed for search.
I followed the example notebook by executing the following code:
url = "https://ndar.nih.gov/api/search/nda_sw_removal/dataElementSearch/full?size=10"
headers = {"Accept": "application/json", }
data = "depression"
r = requests.post(url, headers=headers, data=data)
r.text
The contents of r.text:
'An internal error prevented the processing of this request'
I tried to access the swagger API at https://nda.nih.gov/api/search and was asked for my login credentials. If I supply them, I am repeatedly asked to re-supply them. If I cancel, I get a "Whitelabel Error Page"
Finally, I found that I can search the GUI at https://nda.nih.gov/search easily and quickly. This shows the search engine is working at some level, just not for the API.
Has the API been restricted to only users with data access rights? Is it broken?
I have a functional account, but access to actual data has not yet been approved by my institution. I have been using the components available to the public while I wait. The documentation claims no credentials are needed for search.
I followed the example notebook by executing the following code:
The contents of r.text:
I tried to access the swagger API at https://nda.nih.gov/api/search and was asked for my login credentials. If I supply them, I am repeatedly asked to re-supply them. If I cancel, I get a "Whitelabel Error Page"
Finally, I found that I can search the GUI at https://nda.nih.gov/search easily and quickly. This shows the search engine is working at some level, just not for the API.
Has the API been restricted to only users with data access rights? Is it broken?