Skip to content

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, and X-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.
  • q should 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 fl is the internal id only. A search without select returns records whose only populated field is id, and that id is a non-persistent internal integer served as a string. bibcode is the stable identifier.
  • The fields body and lang are searchable but never stored, so they cannot be requested through fl or sorted on. Multivalued fields such as author cannot be used for sorting.
  • Highlighting returns its snippets in a separate top-level highlighting object keyed by the internal id, so a highlighted search must include id in select to match snippets to records. The client surfaces the object on Page.meta["highlighting"]. The server caps hl.snippets at 4 and hl.fragsize at 100 characters.
  • Cursor paging uses Solr cursorMark, starting at *, and needs a stable sort. The result is exhausted when nextCursorMark equals the cursor you sent. The client compares them and stops iteration.
  • The sort grammar is field direction with a space (citation_count desc), not the field:desc colon 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. Use q=*:* 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_size is 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; sort uses the search sort grammar.
  • The csl and custom formats exist only as POST routes with extra required body fields; the other 18 formats also have GET routes for one bibcode. rss additionally takes a second path segment for its link variant, which the client does not expose.

Routes outside this client

  • search/qtree returns the parsed query tree; search/tvrh serves the table of contents view. Neither is wrapped.
  • The PDF link gateway lives on the ui.adsabs.harvard.edu host, 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/tokens is named on the help page but absent from every published OpenAPI document. The client sends only the q parameter and models the answer permissively. Unverified.