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.
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.
{
"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.
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.
{
"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.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →arcsecond.io
⭐ Beginner's Pickarcsecond.io is a free astronomy API that aggregates data from multiple space databases, including stars, planets, exoplanets, and observing sites.
GBIF
⭐ Beginner's PickGBIF (Global Biodiversity Information Facility) is a free, open API providing access to hundreds of millions of species occurrence records from around the world.
iDigBio
iDigBio is a free API that gives you access to millions of digitized natural history museum specimens from institutions across the United States and beyond.
isEven (humor)
⭐ Beginner's PickisEven is a humorous free API that tells you whether a number is even or odd.
ISRO
⭐ Beginner's PickISRO is a free, no-auth API that provides detailed information about the Indian Space Research Organisation spacecraft and missions.