Openalex Api logo

Openalex Api

Community
Barrios88
openalex-api

Access and analyze OpenAlex scholarly metadata through the REST API, including works, authors, institutions, sources, concepts, topics, funders, and publishers. Use when asked to retrieve publication or citation metadata, run OpenAlex searches with filters, map author-institution relationships, or build reproducible bibliometric datasets from OpenAlex.

Overview

PublisherBarrios88
Repositorybarrios-skills
Skill nameopenalex-api
Stars
64
Forks
30
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Barrios88 on GitHub. Read the source before you install it.

Installation

Install the Openalex Api AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Barrios88/barrios-skills/tree/main/skills/research-tools/openalex-api
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Barrios88/barrios-skills.git /tmp/barrios-skills
mkdir -p .claude/skills
cp -r /tmp/barrios-skills/skills/research-tools/openalex-api .claude/skills/openalex-api
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Openalex Api in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Openalex Api on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Openalex Api is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Barrios Skills — John Barrios's curated workflow for economists and accountants. Prioritize reproducible empirical work, clear identification language, and journal-ready output.

OpenAlex API

Overview

Use this skill to turn research questions into reliable OpenAlex API queries and structured outputs. Prefer scripts/query_openalex.py for repeatable retrieval, pagination, and filter-safe URL construction.

Workflow

  1. Define the target entity: works, authors, institutions, sources, concepts, topics, funders, or publishers.
  2. Define retrieval scope: exact ID lookup, search, or filtered dataset pull.
  3. Build query parameters with scripts/query_openalex.py instead of handcrafting URLs.
  4. Retrieve data to JSON/JSONL and keep the raw export before downstream cleaning.
  5. Validate key fields (IDs, dates, citation counts, authorships) before analysis.

Query Rules

  • Use repeated --filter flags for AND logic.
  • Use OpenAlex pipe syntax (for example value1|value2) inside one filter for OR logic.
  • Use --select to reduce payload size for large pulls.
  • Use --cursor '*' for deep paging beyond basic page limits.
  • Include --mailto you@domain.edu for polite-pool style identification.
  • Use OPENALEX_API_KEY or --api-key when available for higher-rate access.

Common Commands

bash
# Fetch one work by OpenAlex ID
python3 scripts/query_openalex.py works --entity-id W2741809807 --select "id,display_name,publication_year,cited_by_count"

# Search works and save first 200 records
python3 scripts/query_openalex.py works \
  --search "political polarization" \
  --filter "from_publication_date:2020-01-01" \
  --sort "cited_by_count:desc" \
  --per-page 100 \
  --pages 2 \
  --output polarization_works.json

# Cursor-paginate author records to JSONL
python3 scripts/query_openalex.py authors \
  --filter "last_known_institutions.country_code:US" \
  --cursor "*" \
  --max-results 500 \
  --format jsonl \
  --output us_authors.jsonl

Output Guidance

  • Prefer JSON for full response bundles and JSONL for row-wise pipelines.
  • Keep original IDs (id, ids.openalex, DOI fields) unchanged in exports.
  • When reporting findings, cite exact query parameters used to ensure reproducibility.

Resources

  • Use scripts/query_openalex.py for all API calls.
  • Use references/openalex-query-patterns.md for entity routing, filter templates, and reusable query patterns.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Openalex Api AI skill do?

Access and analyze OpenAlex scholarly metadata through the REST API, including works, authors, institutions, sources, concepts, topics, funders, and publishers. Use when asked to retrieve publication or citation metadata, run OpenAlex searches with filters, map author-institution relationships, or build reproducible bibliometric datasets from OpenAlex.

Why use Openalex Api on TypingMind?

Because you install it once and use it with any model. Openalex Api is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Openalex Api in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Barrios88/barrios-skills/tree/main/skills/research-tools/openalex-api. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Openalex Api?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Openalex Api?

As many as you like. As long as a model supports skills, you can use Openalex Api with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Openalex Api AI skill free?

Yes. It is published on GitHub by Barrios88 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇