agentsclimarketplace

Core api guide

Skill brycewang-stanford/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/literature/fulltext/core-api-guide

Search and retrieve open access research papers via CORE aggregatorFrom its SKILL.md

Install
npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill core-api-guide

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

5.3 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

CORE API Guide

Overview

CORE (COnnecting REpositories) is the world's largest aggregator of open access research papers, providing access to over 130 million articles harvested from thousands of data providers worldwide. The CORE API enables programmatic search, retrieval, and analysis of scholarly full-text content across repositories, journals, and preprint servers.

The API is particularly valuable for researchers conducting systematic reviews, bibliometric analyses, and literature mining tasks. Unlike many scholarly APIs that only provide metadata, CORE specializes in delivering full-text content, making it essential for text mining and natural language processing workflows in academic research.

CORE's v3 API provides a RESTful interface with JSON responses, supporting complex search queries with Boolean operators, field-specific filtering, and batch operations. It is free for non-commercial academic use, though an API key is required to access the service.

Authentication

CORE requires a free API key for all requests. Register at https://core.ac.uk/services/api to obtain one.

Always store your API key in an environment variable and reference it in requests:

export CORE_API_KEY=$CORE_API_KEY

Pass the key via the Authorization header:

curl -H "Authorization: Bearer $CORE_API_KEY" \
  "https://api.core.ac.uk/v3/search/works?q=machine+learning"

Core Endpoints

Search Works

Search across the entire CORE corpus with full-text and metadata queries.

GET https://api.core.ac.uk/v3/search/works?q={query}&limit={n}&offset={n}

Parameters:

  • q (required): Search query string, supports Boolean operators (AND, OR, NOT)
  • limit: Number of results (default 10, max 100)
  • offset: Pagination offset
  • entity_type: Filter by type (e.g., journal-article, preprint)

Example: Search for climate change papers with full text:

curl -s -H "Authorization: Bearer $CORE_API_KEY" \
  "https://api.core.ac.uk/v3/search/works?q=climate+change+adaptation&limit=5" \
  | python3 -m json.tool

Python example:

import requests
import os

headers = {"Authorization": f"Bearer {os.environ['CORE_API_KEY']}"}
params = {
    "q": "deep learning AND medical imaging",
    "limit": 20,
    "offset": 0
}
resp = requests.get("https://api.core.ac.uk/v3/search/works", headers=headers, params=params)
data = resp.json()

for result in data.get("results", []):
    print(f"Title: {result.get('title')}")
    print(f"DOI: {result.get('doi')}")
    print(f"Year: {result.get('yearPublished')}")
    print(f"Full text length: {len(result.get('fullText', ''))}")
    print("---")

Get Work by ID

Retrieve a specific paper by its CORE ID or DOI.

GET https://api.core.ac.uk/v3/works/{core_id}
curl -s -H "Authorization: Bearer $CORE_API_KEY" \
  "https://api.core.ac.uk/v3/works/doi:10.1234/example.doi" \
  | python3 -m json.tool

Batch Retrieval

Retrieve multiple works in a single request using POST with a list of IDs.

curl -s -X POST -H "Authorization: Bearer $CORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[12345, 67890, 11111]' \
  "https://api.core.ac.uk/v3/works"

Search Data Providers

List or search CORE's data providers (repositories, journals).

GET https://api.core.ac.uk/v3/data-providers?q={query}

Common Research Patterns

Systematic Literature Review: Use Boolean queries to replicate a search strategy across the full-text corpus. Combine with date filters to identify papers within a specific time window, then export results for screening in tools like Rayyan or Covidence.

Full-Text Mining: Retrieve full-text content programmatically for NLP pipelines. Extract named entities, key phrases, or citation contexts at scale across thousands of papers.

Repository Coverage Analysis: Query data providers to understand which institutional repositories contribute to a specific field, useful for bibliometric and open-access policy research.

Trend Detection: Run time-series queries for specific terms and track publication volume over years to identify emerging research fronts.

Rate Limits and Best Practices

  • Free tier: 150 requests per 15-minute window (10 req/min effective)
  • Batch endpoints: Use batch retrieval for multiple IDs to minimize request count
  • Pagination: Always use offset and limit for large result sets; do not fetch all results in one call
  • Caching: Cache responses locally for repeat queries, especially for static metadata
  • Respect robots.txt: When downloading full texts, add delays between requests
  • Error handling: The API returns standard HTTP status codes; implement exponential backoff for 429 (rate limit) responses

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.