{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAlex Scraper: Research Papers, Authors & Citations",
    "description": "Scrape OpenAlex, the open catalog of 250M+ research papers: titles, DOIs, citations, FWCI, abstracts and open access links, plus author h-index and institution records. Filter by keyword, year and open access. Export CSV, Excel, JSON. No login or API key.",
    "version": "0.1",
    "x-build-id": "M63qSp4VD8GkhfY0a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~openalex-research-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-openalex-research-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/recordsdata~openalex-research-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-openalex-research-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/recordsdata~openalex-research-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-openalex-research-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": {
          "worksQuery": {
            "title": "What papers are you looking for?",
            "type": "string",
            "description": "Keywords, one search per line. Example: crispr, or two lines: large language models and graph neural networks. Each row is tagged with the search that found it. Type * to list papers using only the filters below. Leave empty to skip papers.",
            "default": "crispr"
          },
          "searchIn": {
            "title": "Where to look for the words",
            "enum": [
              "title",
              "titleAndAbstract"
            ],
            "type": "string",
            "description": "Title only is the original behaviour. Title and abstract finds more papers. Example: pick Title and abstract for broad topics.",
            "default": "title"
          },
          "sortBy": {
            "title": "Sort papers by",
            "enum": [
              "cited_by_count",
              "publication_date",
              "relevance"
            ],
            "type": "string",
            "description": "Most cited first is the default. Relevance only works when you typed a search above.",
            "default": "cited_by_count"
          },
          "yearFrom": {
            "title": "Published from year (optional)",
            "minimum": 1800,
            "type": "integer",
            "description": "Only papers published in this year or later. Example: 2020."
          },
          "yearTo": {
            "title": "Published up to year (optional)",
            "minimum": 1800,
            "type": "integer",
            "description": "Only papers published in this year or earlier. Example: 2024."
          },
          "minCitations": {
            "title": "Minimum citations (count)",
            "minimum": 0,
            "type": "integer",
            "description": "Only papers cited at least this many times. Example: 100. 0 means no limit.",
            "default": 0
          },
          "workType": {
            "title": "Paper type",
            "enum": [
              "any",
              "article",
              "review",
              "preprint",
              "book",
              "book-chapter",
              "dissertation",
              "dataset",
              "report",
              "editorial",
              "letter",
              "conference-paper",
              "peer-review",
              "retraction",
              "erratum",
              "standard",
              "other"
            ],
            "type": "string",
            "description": "Only papers of this type. Any type keeps everything. For a type not in the list, use the advanced filter below (type:...).",
            "default": "any"
          },
          "onlyOpenAccess": {
            "title": "Only papers with a free full text",
            "type": "boolean",
            "description": "Turn on to keep only open access papers (a free full-text link exists).",
            "default": false
          },
          "filter": {
            "title": "Advanced paper filter (OpenAlex syntax, optional)",
            "type": "string",
            "description": "For power users. key:value pairs separated by commas or new lines. Example: language:en,is_retracted:false,open_access.oa_status:gold. Combined with the options above. An unknown key returns a clear error row and nothing is charged.",
            "default": ""
          },
          "authorsQuery": {
            "title": "Authors (optional)",
            "type": "string",
            "description": "Researcher names, one per line. Example: Geoffrey Hinton. Returns h-index, citations and affiliation.",
            "default": ""
          },
          "institutionsQuery": {
            "title": "Universities and institutions (optional)",
            "type": "string",
            "description": "Names, one per line. Example: Stanford University.",
            "default": ""
          },
          "sourcesQuery": {
            "title": "Journals, repositories and conferences (optional)",
            "type": "string",
            "description": "Names, one per line. Example: Nature. Returns ISSN, publisher, open access flags and citation metrics.",
            "default": ""
          },
          "topicsQuery": {
            "title": "Research topics (optional)",
            "type": "string",
            "description": "Topic names, one per line. Example: machine learning. Returns field, subfield, domain and related topics.",
            "default": ""
          },
          "fundersQuery": {
            "title": "Research funders (optional)",
            "type": "string",
            "description": "Funder names, one per line. Example: National Institutes of Health.",
            "default": ""
          },
          "publishersQuery": {
            "title": "Publishers (optional)",
            "type": "string",
            "description": "Publisher names, one per line. Example: Elsevier.",
            "default": ""
          },
          "entityFilter": {
            "title": "Advanced filter for the lists above (optional)",
            "type": "string",
            "description": "Applies to every authors, institutions, journals, topics, funders and publishers search. Example: country_code:CO,type:education for institutions or is_oa:true,type:journal for journals. Unknown keys return a clear error row and nothing is charged.",
            "default": ""
          },
          "maxItems": {
            "title": "Max results (rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total rows over all searches, shared between several searches of the same kind. Free plan runs are capped at 10. Paid plans: up to 1,000,000. You are only charged for rows delivered.",
            "default": 10
          },
          "omitMissing": {
            "title": "Leave out empty fields",
            "type": "boolean",
            "description": "Off: a missing value is written as the text Not Available. On: the field is left out of the row so numbers stay numbers and nothing needs cleaning.",
            "default": false
          },
          "openalexApiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Free key from openalex.org/settings/api. Without a key OpenAlex gives about 100 free searches a day per network address; a key gives a budget 10 times larger. Needed only if you see a daily budget message."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}