NASA ADS upstream quirks
Behavior of the ADS Developer API (https://api.adsabs.harvard.edu/v1) that shapes this client. Written from the published documentation; entries marked unverified were never checked against the live service, because the client was built without a token.
Credentials and quotas
- Every route needs a token; there is no anonymous read. The client refuses to start without one.
- Quotas are daily and per endpoint, reported in
X-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reset; the reset timestamp is midnight UTC. The documented search example carries a 5,000-per-day limit; the bigquery route allows about 100 requests per day. - The status code 499 appears in the OpenAPI document for "server too busy". Standard HTTP reserves 499; treat any 4xx or 5xx as retryable infrastructure noise rather than a query problem.
Search
qshould stay at 1,000 characters or fewer. The client does not enforce the cap; longer queries are accepted by HTTP but are documented as unsupported.- The default
flis the internalidonly. A search withoutselectreturns records whose only populated field isid, and that id is a non-persistent internal integer served as a string.bibcodeis the stable identifier. - The fields
bodyandlangare searchable but never stored, so they cannot be requested throughflor sorted on. Multivalued fields such asauthorcannot be used for sorting. - Highlighting returns its snippets in a separate top-level
highlightingobject keyed by the internalid, so a highlighted search must includeidinselectto match snippets to records. The client surfaces the object onPage.meta["highlighting"]. The server capshl.snippetsat 4 andhl.fragsizeat 100 characters. - Cursor paging uses Solr
cursorMark, starting at*, and needs a stablesort. The result is exhausted whennextCursorMarkequals the cursor you sent. The client compares them and stops iteration. - The
sortgrammar isfield directionwith a space (citation_count desc), not thefield:desccolon form other Solr deployments accept. The client accepts both spellings and sends the space form.
Bigquery
- The POST payload is CSV-like text, not JSON: the first line names the
field (
bibcode) and the rest are the values. Alternate bibcodes (for example arXiv versions) match their published records. - The bibcode list filters the results of
q; it never widens them. Useq=*:*to retrieve the whole list. - The API answers with its default page size of 10 regardless of the list
size. The client requests as many rows as bibcodes unless
page_sizeis given.
Exports
- The batch routes answer
{"msg", "export"}; the GET single-record route answers with the export text itself. The client returns the text of the GET route and tolerates a bare text body there (the OpenAPI document describes the answer as a JSON string). Unverified. - The default sort of an export is by date and then bibcode;
sortuses the search sort grammar. - The
cslandcustomformats exist only as POST routes with extra required body fields; the other 18 formats also have GET routes for one bibcode.rssadditionally takes a second path segment for its link variant, which the client does not expose.
Routes outside this client
search/qtreereturns the parsed query tree;search/tvrhserves the table of contents view. Neither is wrapped.- The PDF link gateway lives on the
ui.adsabs.harvard.eduhost, not on the API host, and redirects to arXiv or publisher sites. - The metrics, libraries (biblib), stored-search (vault), author affiliation, citation helper, journals, objects, reference parsing, resolver, and visualization services are separate route families on the same host; none is wrapped.
search/tokensis named on the help page but absent from every published OpenAPI document. The client sends only theqparameter and models the answer permissively. Unverified.