{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAlex Scholarly Works Search: Papers, Citations, Abstracts",
    "description": "Search 300M+ scholarly works in OpenAlex (CC0 metadata) by keywords, year, type and open access, or look up a DOI list. Title, DOI, year, citations, open-access link, authors, institutions, abstract and topics. Unofficial.",
    "version": "0.2",
    "x-build-id": "CscZsaAWXSE15CE8I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fecklesspleb~openalex-works-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fecklesspleb-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/fecklesspleb~openalex-works-search/runs": {
      "post": {
        "operationId": "runs-sync-fecklesspleb-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/fecklesspleb~openalex-works-search/run-sync": {
      "post": {
        "operationId": "run-sync-fecklesspleb-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": {
          "search": {
            "title": "Search text",
            "type": "string",
            "description": "Keywords matched against titles, abstracts and full text by OpenAlex. Leave empty to list works by filters only, or when you give a DOI list.",
            "default": "large language models"
          },
          "dois": {
            "title": "DOI list (batch lookup)",
            "type": "array",
            "description": "Optional. Look up these works by DOI (10.1234/abc, doi:10.1234/abc or https://doi.org/10.1234/abc), up to 1,000 per run. When set, the search text is ignored; the year, type and open-access filters still apply. DOIs not in OpenAlex are listed in one free status row.",
            "items": {
              "type": "string"
            }
          },
          "fromYear": {
            "title": "From year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional. Only works published in or after this year."
          },
          "toYear": {
            "title": "To year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional. Only works published in or before this year."
          },
          "types": {
            "title": "Work types",
            "type": "array",
            "description": "Optional. Only these OpenAlex work types. Empty means all types.",
            "items": {
              "type": "string",
              "enum": [
                "article",
                "review",
                "preprint",
                "book",
                "book-chapter",
                "dataset",
                "dissertation",
                "editorial",
                "letter",
                "erratum",
                "report",
                "standard",
                "peer-review",
                "paratext",
                "libguides",
                "supplementary-materials",
                "other"
              ]
            }
          },
          "openAccessOnly": {
            "title": "Open access only",
            "type": "boolean",
            "description": "Only works that are free to read somewhere (OpenAlex is_oa).",
            "default": false
          },
          "oaStatus": {
            "title": "Open-access status",
            "enum": [
              "any",
              "diamond",
              "gold",
              "green",
              "hybrid",
              "bronze",
              "closed"
            ],
            "type": "string",
            "description": "Optional. Only works with this OpenAlex open-access status.",
            "default": "any"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "mostCited",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Empty means relevance when there is search text, otherwise newest first."
          },
          "includeAbstract": {
            "title": "Include abstract",
            "type": "boolean",
            "description": "Rebuild the abstract text from OpenAlex's abstract index when OpenAlex has one. Off by default. Abstracts may be copyrighted by their authors or publishers; check reuse rights before republishing them.",
            "default": false
          },
          "maxItems": {
            "title": "Max works",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many works are saved (up to 10,000, OpenAlex's paging limit). With a DOI list, the cap rises to the number of DOIs (each DOI found is one work; use the maximum cost per run to cap spend).",
            "default": 9
          },
          "apiKey": {
            "title": "OpenAlex API key (optional, recommended)",
            "type": "string",
            "description": "Your own free OpenAlex API key (openalex.org/settings/api). Without it, OpenAlex gives one free budget of $0.10 a day shared by everyone on the same IP address, which on Apify can run out. With it you get your own $1 a day of free OpenAlex usage (about 1,000 searches or 10,000 filter requests). Stored encrypted, sent only in the Authorization header, never logged or saved."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}