{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAlex Works Search – Papers, Citations, Open Access",
    "description": "Search 250M+ scholarly works in OpenAlex (CC0 open data) by keyword, year, open access, type, institution, topic or journal ISSN – or look up a DOI list. Flat rows with DOI, venue, citation count, OA status/URL, topics, authors (name/ORCID) and optional abstract.",
    "version": "0.1",
    "x-build-id": "L3yUw0Hg6Zdj2uJoi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~openalex-works-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-openalex-works-search",
        "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/adamplaenitz~openalex-works-search/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-openalex-works-search",
        "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/adamplaenitz~openalex-works-search/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-openalex-works-search",
        "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": "Mode",
            "enum": [
              "search",
              "ids"
            ],
            "type": "string",
            "description": "search = find works by search term and/or filters. ids = look up a list of DOIs or OpenAlex work IDs.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search term",
            "type": "string",
            "description": "Words to search for, e.g. \"large language models\", \"CRISPR off-target\", \"heat pump efficiency\". Supports AND, OR, NOT and \"quoted phrases\". Leave empty to list works by filters only (cheaper for the OpenAlex budget)."
          },
          "searchIn": {
            "title": "Search in",
            "enum": [
              "all",
              "title",
              "title_and_abstract"
            ],
            "type": "string",
            "description": "all = title, abstract and full text (OpenAlex default). title = title only. title_and_abstract = title and abstract.",
            "default": "all"
          },
          "fromYear": {
            "title": "From year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "First publication year to include, e.g. 2020."
          },
          "toYear": {
            "title": "To year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Last publication year to include. Empty = up to today."
          },
          "openAccessOnly": {
            "title": "Open access only",
            "type": "boolean",
            "description": "Only works with a free-to-read version (any OA status except closed).",
            "default": false
          },
          "oaStatus": {
            "title": "OA status",
            "type": "array",
            "description": "Only works with these open-access statuses: diamond, gold, green, hybrid, bronze, closed. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "diamond",
                "gold",
                "green",
                "hybrid",
                "bronze",
                "closed"
              ],
              "enumTitles": [
                "Diamond",
                "Gold",
                "Green",
                "Hybrid",
                "Bronze",
                "Closed"
              ]
            }
          },
          "types": {
            "title": "Work types",
            "type": "array",
            "description": "Only these OpenAlex work types. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "article",
                "review",
                "preprint",
                "book-chapter",
                "book",
                "dataset",
                "dissertation",
                "editorial",
                "letter",
                "erratum",
                "report",
                "standard",
                "reference-entry",
                "peer-review",
                "other"
              ],
              "enumTitles": [
                "Article",
                "Review",
                "Preprint",
                "Book chapter",
                "Book",
                "Dataset",
                "Dissertation",
                "Editorial",
                "Letter",
                "Erratum",
                "Report",
                "Standard",
                "Reference entry",
                "Peer review",
                "Other"
              ]
            }
          },
          "institutions": {
            "title": "Institutions",
            "type": "array",
            "description": "Only works with at least one author affiliated with one of these institutions. Use OpenAlex institution IDs (I136199984) or ROR IDs / links (042nb2s44, https://ror.org/042nb2s44).",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "OpenAlex topic IDs, e.g. T10181 (Natural Language Processing Techniques). Find IDs on openalex.org or in the `topics` column of a previous run.",
            "items": {
              "type": "string"
            }
          },
          "concepts": {
            "title": "Concepts (legacy)",
            "type": "array",
            "description": "OpenAlex concept IDs, e.g. C41008148 (Computer science). Concepts are OpenAlex' older subject tags; topics are recommended.",
            "items": {
              "type": "string"
            }
          },
          "sourceIssns": {
            "title": "Journal ISSNs",
            "type": "array",
            "description": "Only works published in journals/sources with these ISSNs, e.g. 0028-0836 (Nature).",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Two-letter language codes of the work, e.g. en, de, fr. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "minCitations": {
            "title": "Minimum citations",
            "minimum": 0,
            "type": "integer",
            "description": "Only works cited at least this many times."
          },
          "excludeRetracted": {
            "title": "Exclude retracted works",
            "type": "boolean",
            "description": "Leave out works that OpenAlex marks as retracted.",
            "default": true
          },
          "extraFilter": {
            "title": "Additional OpenAlex filter (advanced)",
            "type": "string",
            "description": "Raw OpenAlex filter syntax added to the filters above, e.g. has_fulltext:true,funders.id:F4320306076 or authorships.countries:DE. See the OpenAlex filter documentation."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "cited",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "relevance (only with a search term), most cited, newest or oldest first."
          },
          "identifiers": {
            "title": "DOIs / OpenAlex work IDs",
            "type": "array",
            "description": "Mode \"Look up DOIs / OpenAlex IDs\": DOIs (10.1038/nature12373, doi:…, https://doi.org/…) or OpenAlex work IDs (W2159974629). Results keep the input order; unknown entries are returned as free rows with an error.",
            "items": {
              "type": "string"
            }
          },
          "includeAbstract": {
            "title": "Include abstract",
            "type": "boolean",
            "description": "Add the abstract as plain text (rebuilt from OpenAlex' inverted index). Abstracts can be subject to the publisher's copyright – check before republishing them.",
            "default": false
          },
          "maxItems": {
            "title": "Max works",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Upper limit of works per run in search mode. Without an API key at most 10,000 (OpenAlex only allows page paging up to 10,000 results without a key).",
            "default": 1000
          },
          "apiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Your free OpenAlex API key (openalex.org/settings/api). Without a key, the Actor uses OpenAlex' keyless access: a small daily budget shared by everyone on the same server IP and at most 10,000 results per search. With a key: your own $1/day free budget and unlimited cursor paging."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}