pyalex
Python interface to the OpenAlex database
Decision gist · record as of 2026-08-14
Yes. PyAlex is a lightweight, actively maintained wrapper around a free, CC0-licensed scholarly database. Low install friction, no security vulnerabilities, permissive licensing, and broad Python version support (3.8–3.12) make it a straightforward choice for anyone building research tools, bibliometric dashboards, or academic data pipelines. The main gotcha is the required API key (free but mandatory as of February 2026), not a blocker for legitimate use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- API key required as of February 13, 2026 (free account at openalex.org); without one, limited to 100 credits per day.
- Low friction: pure Python wheel with only requests and urllib3 as runtime dependencies.
- Active maintenance with a recent release as of 2026-02-23.
License · maintenance · safety
MIT (permissive) — MIT license (permissive). OpenAlex data itself is CC0 licensed, so combined use poses no licensing barrier for most academic and commercial applications.
last release 2026-02-23 (172 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 117,110 downloads/mo, #12,180 on PyPI
Alternatives
Verify before relying
pip install pyalex
import pyalex
pyalex.config.api_key = "<YOUR_API_KEY>"
from pyalex import Works
work = Works()["W2741809807"]
print(work["open_access"])- Exact number of scholarly records indexed by OpenAlex (described as 'hundreds of millions' but not quantified in fact sheet).
- Performance characteristics for large-scale queries or pagination across millions of results.
- Whether pipe operations and semantic search are fully stable or still experimental.
What it is and what it does
PyAlex wraps the OpenAlex REST API, a free index of scholarly metadata (papers, authors, institutions, concepts, topics, publishers, funders). It provides a thin Python interface that mirrors the API's design, supporting entity retrieval by ID or DOI, filtering, full-text search, semantic similarity matching, grouping, pagination, and field selection. The library converts OpenAlex's inverted-index abstracts to plaintext on the fly and can fetch full-text content in PDF or TEI XML format where available.
Typical use is to query scholarly data programmatically—finding papers by topic or author, discovering similar works, aggregating publication statistics, or building research tools. It requires an OpenAlex API key (free) and depends only on requests and urllib3 for HTTP transport. The library is designed to stay close to the original API's structure, so developers familiar with OpenAlex's REST endpoints will find the Python calls intuitive.
Use it for
- Query and filter scholarly papers by topic, author, institution, or open-access status for research surveys.
- Retrieve author profiles and publication histories to build researcher directories or impact dashboards.
- Find semantically similar papers to a given work or abstract using the semantic search endpoint.
- Download full-text content in PDF or TEI format for papers with open-access availability.
- Aggregate publication counts and metadata by institution, funder, or concept for bibliometric analysis.
- Autocomplete author, institution, or topic names in interactive research tools.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyAlex is a lightweight, actively maintained wrapper around a free, CC0-licensed scholarly database. Low install friction, no security vulnerabilities, permissive licensing, and broad Python version support (3.8–3.12) make it a straightforward choice for anyone building research tools, bibliometric dashboards, or academic data pipelines. The main gotcha is the required API key (free but mandatory as of February 2026), not a blocker for legitimate use.
Install
pyalex on PyPI
Before you install
Low friction: pure Python wheel with only requests and urllib3 as runtime dependencies. Active maintenance with a recent release as of 2026-02-23. Supports Python 3.8 through 3.12.
API key required as of February 13, 2026 (free account at openalex.org); without one, limited to 100 credits per day.
License in practice
MIT license (permissive). OpenAlex data itself is CC0 licensed, so combined use poses no licensing barrier for most academic and commercial applications.
Quickstart
pip install pyalex
import pyalex
pyalex.config.api_key = "<YOUR_API_KEY>"
from pyalex import Works
work = Works()["W2741809807"]
print(work["open_access"])
Verify before relying
- Exact number of scholarly records indexed by OpenAlex (described as 'hundreds of millions' but not quantified in fact sheet).
- Performance characteristics for large-scale queries or pagination across millions of results.
- Whether pipe operations and semantic search are fully stable or still experimental.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequestsurllib3 |
| Maintenance | Actively maintained 172 days since the last release |
| First released | |
| Downloads | 117,110 / month, #12,180 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pyalex-0.21-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “openAlex API python client”
- pyalexPyAlex is a Python interface to the OpenAlex REST API, enabling…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Information Analysis packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.
Install it if you use Snowflake and want to process data without moving it to your application layer.
See also semanticscholar · scholarly · llama-index-vector-stores-faiss · arxiv-mcp-server · libpysal · arxiv · pymilvus.model · Sickle · habanero · MDAnalysis