| name | inspire |
| description | Use when the user mentions 'INSPIRE', 'INSPIRE-HEP', 'inspirehep', or asks to search high-energy physics literature, find HEP papers, get citation counts, or retrieve BibTeX from INSPIRE. Specializes in particle physics, quantum field theory, and related fields. |
INSPIRE-HEP Search and Retrieval Skill
Search and retrieve papers from INSPIRE-HEP, the high-energy physics literature database.
Requires: requests (pip install requests)
Record Identifiers
INSPIRE accepts multiple identifier types:
- INSPIRE recid:
451647 (internal ID)
- arXiv ID:
1207.7214 or hep-th/9711200
- DOI:
10.1103/PhysRevLett.19.1264
Basic Usage
python scripts/inspire.py 451647
python scripts/inspire.py 1207.7214
python scripts/inspire.py 10.1103/PhysRevLett.19.1264
python scripts/inspire.py 1207.7214 --format bibtex
Searching
python scripts/inspire.py --search "a E.Witten.1"
python scripts/inspire.py --search "t dark matter"
python scripts/inspire.py --search "arXiv:hep-th"
python scripts/inspire.py --search "a Maldacena and t AdS/CFT"
python scripts/inspire.py --search "a Hawking" --sort mostcited
python scripts/inspire.py --search "t supersymmetry" -n 5
Search Query Syntax (SPIRES-compatible)
| Prefix | Field | Example |
|---|
a | Author | a E.Witten.1 |
t | Title | t black hole |
k | Keywords | k inflation |
j | Journal | j Phys.Rev.Lett. |
eprint | arXiv ID | eprint 1207.7214 |
topcite | Citation count | topcite 1000+ |
Boolean operators: and, or, not
Citations
python scripts/inspire.py 1207.7214 --citations
python scripts/inspire.py 1207.7214 --citations -n 20
Output Formats
python scripts/inspire.py 1207.7214
python scripts/inspire.py 1207.7214 --format bibtex
python scripts/inspire.py 1207.7214 --format latex-eu
python scripts/inspire.py 1207.7214 --format latex-us
Typical Workflow
- Search for papers:
python scripts/inspire.py --search "a Author"
- Note the INSPIRE recid or arXiv ID
- Get full details:
python scripts/inspire.py <id>
- Get BibTeX for citation:
python scripts/inspire.py <id> --format bibtex
- Check citations:
python scripts/inspire.py <id> --citations
Rate Limits
INSPIRE allows 15 requests per 5-second window per IP address.
Comparison with arXiv Skill
- INSPIRE: Citation counts, publication info, SPIRES search syntax, HEP-focused
- arXiv: Paper source code (LaTeX), all physics categories, preprint access
Use both together: search on INSPIRE for citation data, then use arXiv skill to get the paper source.