{
  "openapi": "3.0.1",
  "info": {
    "title": "Academic Paper Search: OpenAlex, Crossref & arXiv",
    "description": "Search scholarly papers and look up DOIs or arXiv ids across OpenAlex and Crossref (arXiv optional). One deduplicated record per paper: title, authors, venue, year, abstract, citations, open-access PDF link.",
    "version": "1.0",
    "x-build-id": "SPFWQlU9C2IT7dY6c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thriving_adder~academic-research-papers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thriving_adder-academic-research-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/thriving_adder~academic-research-papers/runs": {
      "post": {
        "operationId": "runs-sync-thriving_adder-academic-research-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/thriving_adder~academic-research-papers/run-sync": {
      "post": {
        "operationId": "run-sync-thriving_adder-academic-research-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": "Keyword searches (title, abstract and full-text where the source supports it), e.g. \"retrieval augmented generation\". Max 100 per run.",
            "items": {
              "type": "string"
            }
          },
          "dois": {
            "title": "DOIs to look up",
            "type": "array",
            "description": "DOIs (10.1038/nature14539 or https://doi.org/...). Max 10,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "arxivIds": {
            "title": "arXiv ids to look up",
            "type": "array",
            "description": "arXiv ids such as 1706.03762 or 2005.11401v4 (the version is ignored).",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which open APIs to query. arXiv is opt-in: its API allows only 1 request every 3 s, so it is slower; arXiv papers are also found through OpenAlex.",
            "items": {
              "type": "string",
              "enum": [
                "openalex",
                "crossref",
                "arxiv"
              ],
              "enumTitles": [
                "OpenAlex (CC0)",
                "Crossref",
                "arXiv"
              ]
            },
            "default": [
              "openalex",
              "crossref"
            ]
          },
          "maxResultsPerQuery": {
            "title": "Max results per query and source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Up to this many results from EACH selected source; duplicates across sources are merged and charged once.",
            "default": 25
          },
          "yearFrom": {
            "title": "Published from (year)",
            "minimum": 1500,
            "maximum": 2100,
            "type": "integer",
            "description": "Only papers published in or after this year."
          },
          "yearTo": {
            "title": "Published to (year)",
            "minimum": 1500,
            "maximum": 2100,
            "type": "integer",
            "description": "Only papers published in or before this year."
          },
          "openAccessOnly": {
            "title": "Open access only",
            "type": "boolean",
            "description": "Only free-to-read papers (OpenAlex is_oa; Crossref: Creative Commons licence; arXiv is always open).",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "cited",
              "newest"
            ],
            "type": "string",
            "description": "Order of search results within each source.",
            "default": "relevance"
          },
          "includeAbstract": {
            "title": "Include abstracts",
            "type": "boolean",
            "description": "Return abstracts when the source has them. Abstracts can be under the publisher's copyright: fine for research and search, check before republishing.",
            "default": true
          },
          "includeAuthorNames": {
            "title": "Include author names",
            "type": "boolean",
            "description": "Return author names as published (public bibliographic data). Off: only authorCount. ORCIDs, e-mails and raw affiliation strings are never returned.",
            "default": true
          },
          "contactEmail": {
            "title": "Contact e-mail (polite pools, recommended)",
            "type": "string",
            "description": "Sent as mailto to Crossref and OpenAlex so they can contact you about heavy use (Crossref's faster 'polite' pool). Not stored in the output."
          },
          "openalexApiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Your free OpenAlex key (openalex.org/settings/api) gives you your own $1/day budget (about 1,000 searches). Without it, OpenAlex shares a small daily budget per IP and may answer 429; Crossref then covers the search."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}