Thank you. I misinterpret it. The error is actually due to the default SSL/TLS protocolType change in my code. Now it's working.
NCBI E-utilities API function esearch not working
Hi there. I have a old code to retrieve xml of a SRX using NCBI E-utilities API. For example, using the url as below (you can remove api_key part)
I am pretty sure it works in the past. But now it pops error saying the url doesn't work. I checked NCBI E-util books but did not find answer. Any suggestion?
Thanks
• 2,752 views
•
link
1 answer
The NCBI doesn't work like that.
First you use esearch to get a list of identifiers : here you have only one identifier
(...)
<IdList>
<Id>4071266</Id>
</IdList>
(...)
and then use efetch with this/those identifier(s).
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=sra&id=4071266
• 0 views
•
link
• 0 views
•
link
Log in to answer this question.
Working for me
This is actually what I get and it doesn't have any style information. It suppose to have much more fields
what do you mean ?
For example, this url display the full xml
Esearch used to return the same xml.