Skip to content
Skillpedia
Research18k Β· #10556

openalex

What it does

This skill searches the OpenAlex academic database for papers and their metadata. It is for researchers who need citation data, affiliations, or funding details.

When to use it

  • βœ“When you need open citation data for a set of papers.
  • βœ“When you want to know which institutions or funders support a line of work.
  • βœ“When you want metadata such as topics, keywords, or open access status for papers.

Skill link

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/openalex/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/openalex/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to search OpenAlex for papers on federated learning, sorted by citation count, with their funders listed.”

5 new skills a week. 1 minute to read.

How it works

The agent sends your query to the OpenAlex API and returns matching works with their metadata. You can set the number of results and the sort order.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

OpenAlex Academic Search

Search query: $ARGUMENTS

Role & Positioning

This skill uses OpenAlex as a comprehensive open academic graph source:

Skill Source Best for
/arxiv arXiv API Latest preprints, cutting-edge unrefereed work
/semantic-scholar Semantic Scholar API Published venue papers (IEEE, ACM, Springer) with citation counts
/openalex OpenAlex API Open citation graph, institutional affiliations, funding data, comprehensive metadata
/deepxiv DeepXiv CLI Layered reading: search, brief, section map, section reads
/exa-search Exa API Broad web search: blogs, docs, news, companies, research papers
/gemini-search Gemini MCP / CLI AI-powered broad literature discovery

Use OpenAlex when you want:

  • Open citation data β€” fully open citation graph (no API key required for basic use)
  • Institutional affiliations β€” author institutions and collaborations
  • Funding information β€” NSF, NIH, and other funding sources
  • Comprehensive metadata β€” topics, keywords, abstract, open access status
  • Cross-database coverage β€” indexes 250M+ works from multiple sources

Constants

  • MAX_RESULTS = 10 β€” Default number of results. Override with β€” max: 20.
  • DEFAULT_SORT = relevance β€” Sort by relevance. Override with β€” sort: citations or β€” sort: date.
  • OPENALEX_FETCHER β€” canonical name openalex_fetch.py, resolved per shared-references/integration-contract.md Β§2 (Policy D1 β€” standalone /openalex has no documented inline fallback, so unresolved helper terminates with an explicit error).

Overrides (append to arguments):

  • /openalex "topic" β€” max: 20 β€” return up to 20 results
  • /openalex "topic" β€” year: 2023- β€” papers from 2023 onward
  • /openalex "topic" β€” year: 2020-2023 β€” papers from 2020 to 2023
  • /openalex "topic" β€” type: article β€” only journal articles
  • /openalex "topic" β€” type: preprint β€” only preprints
  • /openalex "topic" β€” open-access β€” only open access papers
  • /openalex "topic" β€” min-citations: 50 β€” minimum 50 citations
  • /openalex "topic" β€” sort: citations β€” sort by citation count (descending)
  • /openalex "topic" β€” sort: date β€” sort by publication date (newest first)

Setup

Prerequisites

  1. Python 3.7+ with requests library:

    pip install requests
    
  2. Optional: API key and email β€” Set the variables you use in the same shell before starting Claude Code so helper commands inherit them:

    export OPENALEX_API_KEY='your-key-here'
    export OPENALEX_EMAIL='your-email@example.com'
    claude
    

    The helper reads OPENALEX_API_KEY and OPENALEX_EMAIL from its process environment. A separate tool-shell export does not update an already running host. If you keep credentials in an environment file, load it explicitly before starting the host rather than relying on automatic .env loading.

  3. Get API keys (optional but recommended):

    • OpenAlex API key: Free tier $1/day (10,000 list calls, 1,000 search calls) from openalex.org
    • Email for polite pool: Faster response times (no registration needed)

Verify Setup

python3 "$OPENALEX_FETCHER" search "machine learning" --max 3

(Resolve $OPENALEX_FETCHER via the canonical chain first β€” see Step 2 below.)

Workflow

Step 1: Parse Arguments

Parse $ARGUMENTS for:

  • query: The research topic (required)
  • max: Override MAX_RESULTS
  • year: Publication year filter (e.g., 2023-, 2020-2023)
  • type: Work type filter (article, preprint, book, book-chapter, dataset, dissertation)
  • open-access: Only include open access papers
  • min-citations: Minimum citation count threshold
  • sort: Sort order (relevance, citations, date)

Step 2: Locate Script

Resolve $OPENALEX_FETCHER via the canonical strict-safe chain (see shared-references/integration-contract.md Β§2). Policy D1: there is no native inline fallback for OpenAlex (retrieval requires the requests SDK + optional API key β€” the fetcher script encapsulates pagination, throttling, and per-source parameters), so unresolved helper terminates with explicit remediation.

cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .
FAQ

Does it need an API key?

The skill says basic use does not need an API key.

How many results does it return?

The default is ten, and you can set a different number with the max option.

How can I sort the results?

By default they are sorted by relevance, and you can sort by citations or by date instead.

Details

Original description by the author

Search academic papers via OpenAlex API for open citation data, institutional affiliations, and funding information. Use when user says "openalex search", "search openalex", "open citation graph", or wants comprehensive academic metadata beyond arXiv/Semantic Scholar.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Popularity

GitHub stars
18k
Ranking position
#10556
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills