{
  "openapi": "3.0.1",
  "info": {
    "title": "arXiv Paper Scraper: Search, Daily New Papers & Full Text",
    "description": "Search arXiv by keyword, category, author and date, get today's new papers, or look up papers by id: title, authors, abstract, categories, dates, PDF, plus Hugging Face upvotes, GitHub repo and stars, AI summary, and the full text split into sections for RAG.",
    "version": "1.0",
    "x-build-id": "zTjrXncnQdhKilj9l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sheshinmcfly~arxiv-paper-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sheshinmcfly-arxiv-paper-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/sheshinmcfly~arxiv-paper-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sheshinmcfly-arxiv-paper-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/sheshinmcfly~arxiv-paper-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sheshinmcfly-arxiv-paper-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "search",
              "category",
              "new",
              "id"
            ],
            "type": "string",
            "description": "Keyword search, newest papers in categories, today's new listings (the daily announcement), or specific papers by id.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords; each line is a separate search. Use quotes for exact phrases, e.g. \"mixture of experts\" routing.",
            "items": {
              "type": "string"
            }
          },
          "searchField": {
            "title": "Search in",
            "enum": [
              "all",
              "title",
              "abstract",
              "author"
            ],
            "type": "string",
            "description": "Where the keywords must appear.",
            "default": "all"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "arXiv categories, e.g. cs.AI, cs.LG, cs.CL, stat.ML, q-fin.ST, physics.optics. With a search they narrow it down; in category and daily modes they are what you browse.",
            "items": {
              "type": "string"
            }
          },
          "authors": {
            "title": "Authors",
            "type": "array",
            "description": "Only papers by these authors (surname or full name).",
            "items": {
              "type": "string"
            }
          },
          "idList": {
            "title": "Paper ids",
            "type": "array",
            "description": "arXiv ids or links, e.g. 2303.08774, arXiv:1706.03762, hep-th/9711200 or https://arxiv.org/abs/2312.00752.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "arXiv URLs",
            "type": "array",
            "description": "Paper pages, daily listings (https://arxiv.org/list/cs.AI/new) or search pages (https://arxiv.org/search/?query=...).",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Submitted from",
            "type": "string",
            "description": "YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "dateTo": {
            "title": "Submitted until",
            "type": "string",
            "description": "YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "submittedDate",
              "lastUpdatedDate"
            ],
            "type": "string",
            "description": "Searches default to relevance; category browsing to newest."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "descending",
              "ascending"
            ],
            "type": "string",
            "description": "Descending (newest / most relevant first) or ascending."
          },
          "newTypes": {
            "title": "Daily listing: include",
            "type": "array",
            "description": "For today's new papers: new submissions, cross-listings from other categories, and/or replacements (new versions).",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "cross",
                "replace"
              ],
              "enumTitles": [
                "New submissions",
                "Cross-listings",
                "Replacements"
              ]
            }
          },
          "maxResults": {
            "title": "Max papers per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For each search, category browse or daily listing."
          },
          "includeHuggingFace": {
            "title": "Add Hugging Face signals",
            "type": "boolean",
            "description": "Community upvotes, GitHub repo and stars, project page, AI summary and keywords, and the number of linked models, datasets and spaces (for papers on Hugging Face).",
            "default": true
          },
          "includeFullText": {
            "title": "Include full text",
            "type": "boolean",
            "description": "The paper's text split into sections, plus reference, figure and table counts (papers with an HTML version on arXiv, most since late 2023). About 1 second per paper.",
            "default": false
          },
          "maxFullTextChars": {
            "title": "Max full-text characters per paper",
            "minimum": 1000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Longest text kept per paper."
          },
          "semanticScholarApiKey": {
            "title": "Semantic Scholar API key (optional)",
            "type": "string",
            "description": "Adds citation counts, influential citations, references and TLDR. Get a free key at semanticscholar.org/product/api."
          },
          "onlyNew": {
            "title": "Only papers not returned before",
            "type": "boolean",
            "description": "For scheduled runs: return only papers that previous runs of the same search did not return (the first run returns everything and sets the starting point).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}