Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/pratyay360/searchapi/llms.txt

Use this file to discover all available pages before exploring further.

The /search/paper endpoint searches academic literature via the Crossref API — not DuckDuckGo — and returns an array of DOI (Digital Object Identifier) strings. DOIs are persistent identifiers for scholarly works, including journal articles, conference papers, preprints, and books. Unlike the other search endpoints that return fully-qualified URLs, this endpoint returns bare DOI strings that you resolve yourself.
The default result limit for this endpoint is 5, defined in the underlying searchPaper function. If you need more results, pass a higher limit value explicitly.

Request

GET /search/paper?query={query}&limit={limit}

Parameters

query
string
required
The academic search query. Works best with descriptive terms, author names, or paper titles rather than short keywords.
limit
integer
default:"5"
required
Maximum number of DOIs to return. Defaults to 5 in the underlying implementation.

Response

Returns a JSON array of DOI strings on success.
[*]
string
A DOI string identifying an academic work. Format: {registrant-prefix}/{suffix}, for example 10.1145/3495243.3560527.

Resolving DOIs

To get the full paper URL or metadata from a DOI, prepend https://doi.org/:
https://doi.org/10.1145/3495243.3560527
This redirects to the publisher’s landing page. For machine-readable metadata, query the Crossref REST API directly:
https://api.crossref.org/works/10.1145/3495243.3560527

Example

curl "http://localhost:8000/search/paper?query=attention+mechanism+neural+networks&limit=5"
Response
[
  "10.1145/3495243.3560527",
  "10.1038/s41586-021-03819-2",
  "10.1162/neco.1997.9.8.1735",
  "10.48550/arXiv.1706.03762",
  "10.18653/v1/2020.acl-main.443"
]

Error response

400
{ "error": "Crossref API request failed" }

Build docs developers (and LLMs) love