Skip to main content
The OpenAlex CLI is the official command-line tool for downloading data from OpenAlex. It handles parallel downloads, checkpointing, and rate limiting so you don’t have to build that yourself.
Work in progress. The CLI currently focuses on work metadata and content downloads. More features (CSV export, other entity types) are coming. Follow development on GitHub.

Quick examples

Download metadata for works on a topic:
Download metadata + PDFs:
Download metadata + PDFs + TEI XML:
Download by DOI:
Pipe in a list of work IDs:
See Full-text PDFs for more examples.

Output format

Metadata is saved as JSON files alongside any content you requested:

Why use the CLI?

Building a robust bulk downloader is harder than it looks. The CLI handles:
  • Metadata by default — Every work gets a complete JSON file
  • Parallel downloads — Up to 200 concurrent connections
  • Automatic checkpointing — Resume interrupted downloads without re-downloading
  • Adaptive rate limiting — Adjusts to API conditions automatically
  • DOI resolution — Auto-detects DOIs and converts them to OpenAlex IDs
  • Progress tracking — Real-time stats in your terminal
At full speed, you can download thousands of works per hour.

Pricing

With a free API key ($1/day), you can download unlimited metadata and about 100 content files per day. Need more content? Contact us about enterprise pricing for large-scale projects.

Full documentation

For all options and advanced usage:
See the GitHub README for complete documentation.