{
  "openapi": "3.0.1",
  "info": {
    "title": "Academic Papers Scraper: arXiv, PubMed, Crossref and OpenAlex",
    "description": "Search research papers across arXiv, PubMed, Crossref and OpenAlex in one run. Titles, abstracts, authors, affiliations, DOIs, PDF links, citation counts and MeSH terms in one clean schema, deduplicated across sources.",
    "version": "1.0",
    "x-build-id": "IPmTvwIWLMrC1bJh4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datagrovehq~academic-papers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datagrovehq-academic-papers-scraper",
        "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/datagrovehq~academic-papers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datagrovehq-academic-papers-scraper",
        "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/datagrovehq~academic-papers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datagrovehq-academic-papers-scraper",
        "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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Topics, titles or keywords. Each query is searched in every selected source. Source syntax works too: arXiv field prefixes (ti:, au:, abs:, cat:) and PubMed tags such as smith j[au] or cancer[mh].",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "arXiv (preprints in physics, math, CS, biology, economics), PubMed (biomedical and life-science literature with MeSH terms), Crossref (journal articles, books and proceedings from every publisher that registers DOIs), OpenAlex (250M+ works with citations; works best with your free API key).",
            "items": {
              "type": "string",
              "enum": [
                "arxiv",
                "pubmed",
                "crossref",
                "openalex"
              ],
              "enumTitles": [
                "arXiv",
                "PubMed",
                "Crossref",
                "OpenAlex"
              ]
            },
            "default": [
              "arxiv",
              "pubmed",
              "crossref"
            ]
          },
          "maxResultsPerSource": {
            "title": "Max papers per query per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit for each query in each source. PubMed can return up to 9,999 per query; arXiv, Crossref and OpenAlex up to 10,000.",
            "default": 50
          },
          "maxResults": {
            "title": "Max papers in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many papers across all queries and sources. 0 = no total limit.",
            "default": 0
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest"
            ],
            "type": "string",
            "description": "Best match first, or newest first.",
            "default": "relevance"
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only papers published on or after this date: 2025-01-01, 2025, or a period back from today such as 30 days or 1 year."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Only papers published on or before this date: 2025-12-31 or 2025."
          },
          "arxivCategories": {
            "title": "arXiv categories",
            "type": "array",
            "description": "Limit arXiv results to these categories, for example cs.CL, cs.LG, q-bio.GN, astro-ph. Other sources ignore this.",
            "items": {
              "type": "string"
            }
          },
          "dois": {
            "title": "Look up DOIs",
            "type": "array",
            "description": "Fetch metadata for these DOIs from Crossref (10.1038/nature12373 or https://doi.org/...).",
            "items": {
              "type": "string"
            }
          },
          "arxivIds": {
            "title": "Look up arXiv IDs",
            "type": "array",
            "description": "Fetch these arXiv papers, for example 1706.03762 or https://arxiv.org/abs/2005.14165.",
            "items": {
              "type": "string"
            }
          },
          "pubmedIds": {
            "title": "Look up PubMed IDs (PMIDs)",
            "type": "array",
            "description": "Fetch these PubMed records, for example 33301246.",
            "items": {
              "type": "string"
            }
          },
          "includeAbstracts": {
            "title": "Include abstracts",
            "type": "boolean",
            "description": "Turn off for smaller rows when you only need titles and metadata.",
            "default": true
          },
          "dedupe": {
            "title": "Skip duplicates across sources",
            "type": "boolean",
            "description": "A paper found in several sources (same DOI, arXiv ID, PMID or title) is returned once, from the first source that found it. Skipped duplicates are free.",
            "default": true
          },
          "openAlexApiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Free key from openalex.org/settings/api. Without it, OpenAlex shares a small daily budget per IP address and may stop answering."
          },
          "ncbiApiKey": {
            "title": "NCBI API key (optional)",
            "type": "string",
            "description": "Free key from your NCBI account settings. Raises PubMed's limit from 3 to 10 requests per second for big PubMed runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}