{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAlex Research Papers: Abstracts & Citations",
    "description": "Search 250M+ academic papers and scholarly works via OpenAlex: abstracts, citations, open-access links, topics. Citing-paper lookup, DOI batches and topic landscape counts. Unofficial; bring your own free OpenAlex key.",
    "version": "0.1",
    "x-build-id": "n0ik3Qfy3hjeuGtEe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/praised_tumbler~openalex-research-papers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-praised_tumbler-openalex-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/praised_tumbler~openalex-research-papers/runs": {
      "post": {
        "operationId": "runs-sync-praised_tumbler-openalex-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/praised_tumbler~openalex-research-papers/run-sync": {
      "post": {
        "operationId": "run-sync-praised_tumbler-openalex-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": {
          "openAlexApiKey": {
            "title": "OpenAlex API key",
            "type": "string",
            "description": "Your own free OpenAlex API key. It is sent only to api.openalex.org and is never stored, logged or returned in results. Without a key the Actor can only use OpenAlex's small shared no-key budget and returns at most 25 items."
          },
          "mode": {
            "title": "What do you want?",
            "enum": [
              "search",
              "dois",
              "citing",
              "landscape"
            ],
            "type": "string",
            "description": "Search: find works by keywords. DOIs: look up works by DOI or OpenAlex ID. Citing: list the works that cite given papers. Landscape: count works per year, topic, institution, country, type and open-access status for a search.",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Used by Search and Landscape. Plain words or phrases in quotes, for example \"retrieval augmented generation\" or \"graphene battery\". OpenAlex searches titles, abstracts and full text."
          },
          "dois": {
            "title": "DOIs or OpenAlex IDs",
            "type": "array",
            "description": "Used by Look up DOIs and Papers citing a work. One per line: 10.1038/nature12373, https://doi.org/10.1038/nature12373 or W2741809807.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "Published from year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Only works published in or after this year. Leave empty for no limit."
          },
          "yearTo": {
            "title": "Published up to year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Only works published in or before this year. Leave empty for no limit."
          },
          "types": {
            "title": "Work types",
            "type": "array",
            "description": "Limit to these work types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "article",
                "review",
                "preprint",
                "book",
                "book-chapter",
                "dissertation",
                "report",
                "dataset",
                "conference-paper"
              ],
              "enumTitles": [
                "Journal article",
                "Review",
                "Preprint",
                "Book",
                "Book chapter",
                "Dissertation",
                "Report",
                "Dataset",
                "Conference paper"
              ]
            },
            "default": []
          },
          "openAccessOnly": {
            "title": "Open access only",
            "type": "boolean",
            "description": "Only works with a free full text (gold, green, hybrid, bronze or diamond open access).",
            "default": false
          },
          "minCitations": {
            "title": "Minimum citations",
            "minimum": 0,
            "type": "integer",
            "description": "Only works cited at least this many times.",
            "default": 0
          },
          "language": {
            "title": "Language (2-letter code)",
            "type": "string",
            "description": "Optional language of the work, for example en, de, bg, fr."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "citations",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of results. Relevance applies to searches; Papers citing a work uses most-cited first when relevance is chosen.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Maximum papers",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit of papers returned (you pay per paper returned). Also limited by \"Max cost per run\".",
            "default": 50
          },
          "includeAbstract": {
            "title": "Include abstracts",
            "type": "boolean",
            "description": "Rebuild the abstract text for each paper when OpenAlex has one.",
            "default": true
          },
          "includeAuthors": {
            "title": "Include author names and affiliations",
            "type": "boolean",
            "description": "Author names, positions, institutions and countries as printed on the paper. No ORCID, e-mail or profile data is ever returned. Switch off to get papers only.",
            "default": true
          },
          "landscapeFacets": {
            "title": "Landscape: what to count",
            "type": "array",
            "description": "Used by Topic landscape only.",
            "items": {
              "type": "string",
              "enum": [
                "year",
                "institution",
                "country",
                "topic",
                "type",
                "openAccessStatus"
              ],
              "enumTitles": [
                "Works per year",
                "Top institutions",
                "Top countries",
                "Top topics",
                "Work types",
                "Open-access status"
              ]
            },
            "default": [
              "year",
              "topic",
              "institution",
              "country",
              "type",
              "openAccessStatus"
            ]
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}