{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAlex & arXiv Scraper – Academic Papers",
    "description": "Search academic papers in OpenAlex and arXiv by keyword, date, open access, type or arXiv category, or look up DOIs and arXiv IDs. Get title, abstract, authors, venue, citation count, open-access link and topics, merged and de-duplicated by DOI and arXiv ID. Official APIs, no login.",
    "version": "0.1",
    "x-build-id": "qCyw6Dfryj7my3S85"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/justaduck~openalex-arxiv-papers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-justaduck-openalex-arxiv-papers",
        "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/justaduck~openalex-arxiv-papers/runs": {
      "post": {
        "operationId": "runs-sync-justaduck-openalex-arxiv-papers",
        "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/justaduck~openalex-arxiv-papers/run-sync": {
      "post": {
        "operationId": "run-sync-justaduck-openalex-arxiv-papers",
        "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": "One search per line. Words are combined with AND; put an exact phrase in double quotes, e.g. \"retrieval augmented generation\". Boolean operators and parentheses are not supported: add one line per alternative instead.",
            "items": {
              "type": "string"
            }
          },
          "searchIn": {
            "title": "Search in",
            "enum": [
              "all",
              "title"
            ],
            "type": "string",
            "description": "all = title, abstract and (OpenAlex) full text and keywords; arXiv: all fields. title = titles only.",
            "default": "all"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to search. With both, OpenAlex results come first and arXiv papers already found in OpenAlex (same DOI or arXiv ID) are dropped. DOI and arXiv ID lookups below ignore this setting.",
            "items": {
              "type": "string",
              "enum": [
                "openalex",
                "arxiv"
              ],
              "enumTitles": [
                "OpenAlex",
                "arXiv"
              ]
            },
            "default": [
              "openalex",
              "arxiv"
            ]
          },
          "dois": {
            "title": "DOIs to look up",
            "type": "array",
            "description": "Look up these works in OpenAlex directly (10.1234/abcd or https://doi.org/10.1234/abcd). Filters do not apply. DOIs not found are listed in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "arxivIds": {
            "title": "arXiv IDs to look up",
            "type": "array",
            "description": "Look up these papers on arXiv directly (2403.01698, 2403.01698v2, hep-th/9901001 or an arxiv.org/abs/ link). Filters do not apply.",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "YYYY-MM-DD. OpenAlex: publication date. arXiv: date the first version was submitted (GMT)."
          },
          "publishedTo": {
            "title": "Published to",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "YYYY-MM-DD (inclusive)."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1000,
            "maximum": 2999,
            "type": "integer",
            "description": "First publication year (instead of exact dates)."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1000,
            "maximum": 2999,
            "type": "integer",
            "description": "Last publication year (inclusive)."
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Relative window for scheduled runs: today (UTC) and the N-1 days before. Use instead of the dates or years above."
          },
          "openAccess": {
            "title": "Open access",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "OpenAlex only (arXiv has no such field; with this set, arXiv is skipped for searches).",
            "default": "any"
          },
          "types": {
            "title": "Work types",
            "type": "array",
            "description": "OpenAlex work types, e.g. article, preprint, review. OpenAlex only (arXiv is skipped for searches when set).",
            "items": {
              "type": "string",
              "enum": [
                "article",
                "book",
                "book-chapter",
                "book-review",
                "conference-abstract",
                "conference-paper",
                "data-paper",
                "dataset",
                "dissertation",
                "editorial",
                "erratum",
                "letter",
                "other",
                "paratext",
                "peer-review",
                "preprint",
                "reference-entry",
                "report",
                "retraction",
                "review",
                "software",
                "software-paper",
                "standard",
                "study-registration",
                "supplementary-materials"
              ]
            }
          },
          "arxivCategories": {
            "title": "arXiv categories",
            "type": "array",
            "description": "arXiv subject categories such as cs.CL, cs.LG, hep-th, math.CO (any of them). arXiv only (OpenAlex is skipped for searches when set). Can be used without a query.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "citations"
            ],
            "type": "string",
            "description": "relevance (both sources), newest (OpenAlex publication date / arXiv submission date) or citations (OpenAlex only; arXiv is skipped for searches).",
            "default": "relevance"
          },
          "includeAuthors": {
            "title": "Include author names",
            "type": "boolean",
            "description": "Author bylines as published on each paper, with ORCID iDs where known, plus the affiliation text arXiv authors typed in. This is public bibliographic data from OpenAlex/arXiv; you are responsible for how you use it. Off = authors is null, and institutions is null for arXiv records.",
            "default": true
          },
          "openAlexApiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Free key from https://openalex.org/settings/api . Without a key, OpenAlex shares one small daily budget per IP address (US$0.10 a day, about 100 searches), which other users on the same IP may already have used. Stored encrypted; never written to the log or output."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of papers to return in this run (default 1,000, up to 10,000). With both sources, OpenAlex results are taken first. You pay only for papers returned.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}