internetarchive / fatcat-scholar

search interface for scholarly works
https://scholar.archive.org
Other
78 stars 14 forks source link

API url is missing from redoc #106

Closed dpriskorn closed 1 year ago

dpriskorn commented 1 year ago

I tried using the API today but both me and chatgpt failed to find the right url for the search api curl -s -H "Accept: application/json" "https://scholar.archive.org/api/search?q=doi:10.1136/GUT.52.12.1678" | jq did not work

bnewbold commented 1 year ago

You don't need the /api/, it is just:

curl -s -H "Accept: application/json" "https://scholar.archive.org/search?q=doi:10.1136/GUT.52.12.1678" | jq .

This matches the paths in the API documentation, eg GET /search.