adsabs/adsabs-dev-api

Recent update?

Closed this issue · 6 comments

Recently, bibslurp stopped working (mkmcc/bibslurp#12 (comment)). I suspect that something changed in the APIs. I think that the following used to work:

curl -d "bibcode=2010PhRvD..82j4014W" -H 'Authorization: Bearer MY_TOKEN' 'https://api.adsabs.harvard.edu/v1/export/bibtex'

but now it doesn't anymore and I need to send the data as '-d {"bibcode":"2010PhRvD..82j4014W"}.

I cannot find any announcement about any change. Has there been any change on the server side?

I would like to understand why bibslurp stopped working and I can prevent it from breaking again in the future. What we are doing in bibslurp is what I reported in the first message. I suspect that there has been a recent server-side change and now what we are doing in bibslurp is not allowed anymore. Is this the case?

export service has not changed, still support both POST and GET. For POST it expects a list of bibcodes, for GET the bibcode is inserted at the end of url. So this works
curl -H 'Authorization: Bearer token' 'https://api.adsabs.harvard.edu/v1/export/bibtex/2010PhRvD..82j4014W'
sorry I have no explanation how the command you are specifying worked.

Thanks, with your comments I updated bibslurp so that it works again. I realized that we were using the APIs incorrectly and bibslurp should not have worked in the first place (but it has been working fine for two years!). I cannot think of any other explanation for why it stopped working except that something changed server-side. (I cannot say how recently the package stopped working, it could have been in the past 2/3 months maybe?).

I guess this issue is solved. Thanks!

@golnazads that is consistent with when bibslurp stopped working... mystery solved