inspirehep.net API

Free to Use
62 C
Measured Score 0 50 100 Speed 3/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 4/15 TESTED 2026-08-10

Overview

INSPIRE-HEP is a free REST API for the High Energy Physics literature database, covering papers, authors, institutions, conferences, and experiments in particle physics. You can search millions of HEP papers and retrieve structured metadata without any authentication. It is the go-to resource for developers building physics research tools.

Beginner Tip

Start with the literature endpoint and a simple keyword search like "Higgs boson" to explore available fields. Responses include pagination links so use the next URL to iterate through large result sets.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://inspirehep.net/api/literature?sort=mostrecent&size=5&q=Higgs+boson
Result
HTTP 200 · application/json · 5,154,067 bytes
Response time
1036 ms (median of 3) · fastest 997 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
gunicorn/19.10.0
Recorded
2026-08-10

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

inspirehep.net data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "status": "success",
  "data": {
    "result": "Data from inspirehep.net",
    "description": "High Energy Physics info. system",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

id Unique INSPIRE-HEP record identifier.
metadata.titles Array of title objects, each with a title string.
metadata.authors List of author objects with full_name and affiliations.
metadata.abstracts Abstract text entries for the paper.
metadata.arxiv_eprints Associated arXiv preprint IDs for the paper.
metadata.citation_count Number of times this paper has been cited in the database.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://inspirehep.net/api/literature?sort=mostrecent&size=5&q=Higgs+boson";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "message": "PIDDoesNotExistRESTError: PID does not exist.",
  "status": 404
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

400 Bad Request The search query syntax is invalid or uses unsupported operators.
Use simple keyword queries or consult the INSPIRE search syntax guide for advanced operators.
Slow response for broad queries Very general queries match millions of records and take longer to process.
Narrow your search with author names, date ranges, or specific journal names.
Missing fields in response Some metadata fields are not populated for all papers.
Always check if a field exists before accessing it; use optional chaining or null checks in your code.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 3/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 4/15
Endpoint Response Time 1036ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Science & Math
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →