{
  "openapi": "3.0.1",
  "info": {
    "title": "Academic Papers Search & MCP – arXiv, PubMed, OpenAlex",
    "description": "Search 150M+ scholarly papers, arXiv preprints and PubMed in one tool: abstracts, citation counts, DOIs, free PDF links, citation graphs. Run as a batch export (CSV/JSON) or connect it as an MCP server to Claude, Cursor or any AI agent. No API key needed.",
    "version": "1.0",
    "x-build-id": "AJj7yEahIcmULJOZD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleardata-labs~academic-papers-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleardata-labs-academic-papers-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/cleardata-labs~academic-papers-mcp/runs": {
      "post": {
        "operationId": "runs-sync-cleardata-labs-academic-papers-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/cleardata-labs~academic-papers-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-cleardata-labs-academic-papers-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to do",
            "enum": [
              "search",
              "lookup",
              "citations"
            ],
            "type": "string",
            "description": "Search = find papers by keywords. Lookup = full records for a list of DOIs, arXiv IDs, PubMed IDs or titles. Citations = papers that cite (or are cited by) one paper.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "One topic per line, e.g. \"CRISPR base editing\". Each query is searched in every selected source. Up to 200 queries per run.",
            "default": [
              "large language models in clinical medicine"
            ],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "papers = all disciplines (Crossref, enriched with OpenAlex abstracts, citations and free PDF links); preprints = arXiv; pubmed = PubMed biomedical records (via Europe PMC).",
            "items": {
              "type": "string",
              "enum": [
                "papers",
                "preprints",
                "pubmed"
              ],
              "enumTitles": [
                "Papers – all disciplines (Crossref + OpenAlex)",
                "Preprints (arXiv)",
                "PubMed (biomedical)"
              ]
            },
            "default": [
              "papers",
              "preprints",
              "pubmed"
            ]
          },
          "maxResultsPerQuery": {
            "title": "Max results per query and source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many papers to collect from each source for each query (1–1,000). In citations mode: max papers per direction.",
            "default": 20
          },
          "yearFrom": {
            "title": "Published from (year)",
            "minimum": 1600,
            "maximum": 2100,
            "type": "integer",
            "description": "Only papers published in or after this year, e.g. 2020. Leave empty for no limit."
          },
          "yearTo": {
            "title": "Published until (year)",
            "minimum": 1600,
            "maximum": 2100,
            "type": "integer",
            "description": "Only papers published in or before this year. Leave empty for no limit."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "citations",
              "newest"
            ],
            "type": "string",
            "description": "Relevance to the query, most cited first, or newest first (arXiv has no citation counts and stays by relevance).",
            "default": "relevance"
          },
          "openAccessOnly": {
            "title": "Only papers with a free full text",
            "type": "boolean",
            "description": "Keep only open-access papers (a free PDF or full-text link is included).",
            "default": false
          },
          "arxivCategory": {
            "title": "arXiv category (optional)",
            "type": "string",
            "description": "Restrict preprints to an arXiv category, e.g. cs.CL, cs.LG, q-bio.GN, astro-ph."
          },
          "includeMedrxivPreprints": {
            "title": "PubMed: also include bioRxiv/medRxiv preprints",
            "type": "boolean",
            "description": "Adds life-science preprints indexed by Europe PMC to the PubMed source.",
            "default": false
          },
          "dedupeAcrossSources": {
            "title": "Remove duplicates across sources",
            "type": "boolean",
            "description": "When the same paper is found in several sources (same DOI or title), keep only the first, richest record. You only pay once.",
            "default": true
          },
          "ids": {
            "title": "Paper IDs (lookup mode)",
            "type": "array",
            "description": "DOIs (10.1038/nature14539 or https://doi.org/...), arXiv IDs (1706.03762), PubMed IDs (PMID:31452104), PMCIDs, OpenAlex IDs (W2919115771) or exact titles. Up to 5,000. Not-found IDs are free.",
            "items": {
              "type": "string"
            }
          },
          "paperId": {
            "title": "Paper (citations mode)",
            "type": "string",
            "description": "DOI, PubMed ID, arXiv ID or OpenAlex ID of the paper whose citation graph you want."
          },
          "direction": {
            "title": "Citation direction",
            "enum": [
              "citing",
              "references",
              "both"
            ],
            "type": "string",
            "description": "citing = papers that cite it (most cited first); references = papers it cites; both.",
            "default": "citing"
          },
          "includeAbstracts": {
            "title": "Include abstracts",
            "type": "boolean",
            "description": "Abstracts make rows larger; turn off for lighter CSV exports.",
            "default": true
          },
          "maxTotalResults": {
            "title": "Max papers in total",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the number of papers (and cost) for the whole run. Leave empty for no cap."
          },
          "openAlexApiKey": {
            "title": "Your OpenAlex API key (optional)",
            "type": "string",
            "description": "Not needed. OpenAlex gives every network a small free daily budget for abstracts and citation data; if you run very large jobs, a free personal key from openalex.org/settings/api lifts it."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}