{
  "openapi": "3.0.1",
  "info": {
    "title": "Research Paper Search — OpenAlex & arXiv with AI Summaries",
    "description": "Search scholarly papers on OpenAlex and arXiv. Input: search phrases, or DOIs and arXiv ids, with year, citation and open-access filters. Output: one row per paper with title, authors, abstract, citations, DOI and PDF link, plus an optional AI summary and relevance score.",
    "version": "0.1",
    "x-build-id": "kdjqTmKb0aIgaxJ9v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/istmobot~research-paper-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-istmobot-research-paper-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/istmobot~research-paper-search/runs": {
      "post": {
        "operationId": "runs-sync-istmobot-research-paper-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/istmobot~research-paper-search/run-sync": {
      "post": {
        "operationId": "run-sync-istmobot-research-paper-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": {
          "queries": {
            "title": "🔎 Search phrases",
            "type": "array",
            "description": "Topics to search, one per line, e.g. \"retrieval augmented generation\" or \"CRISPR off-target effects\". Every word must appear in the title, abstract or keywords. Use \"double quotes\" for an exact phrase, and upper-case OR / NOT between words. Each phrase returns its own list of papers.",
            "items": {
              "type": "string"
            }
          },
          "paperIds": {
            "title": "Paper ids to look up",
            "type": "array",
            "description": "Optional. DOIs (10.1038/s41586-021-03819-2), arXiv ids (2005.11401) or OpenAlex work ids (W2741809807), bare or as links, one per line. Each id returns one paper. Fill this, the search phrases, or both.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to search, e.g. [\"openalex\", \"arxiv\"]. OpenAlex: papers of every field and publisher, with citation counts. arXiv: preprints in physics, mathematics, computer science and related fields, often days old. A paper found on both comes back once. Lookups by id always use both.",
            "items": {
              "type": "string",
              "enum": [
                "openalex",
                "arxiv"
              ],
              "enumTitles": [
                "OpenAlex",
                "arXiv"
              ]
            },
            "default": [
              "openalex",
              "arxiv"
            ]
          },
          "maxResultsPerQuery": {
            "title": "Max papers per search phrase",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Papers returned for each search phrase after the sources are merged, e.g. 25. You pay per paper.",
            "default": 25
          },
          "fromYear": {
            "title": "From year",
            "minimum": 1000,
            "maximum": 2999,
            "type": "integer",
            "description": "Only papers published in this year or later, e.g. 2020. On arXiv this is the year of the first submission."
          },
          "toYear": {
            "title": "To year",
            "minimum": 1000,
            "maximum": 2999,
            "type": "integer",
            "description": "Only papers published in this year or earlier, e.g. 2024."
          },
          "minCitations": {
            "title": "Minimum citations",
            "minimum": 0,
            "type": "integer",
            "description": "Only papers cited at least this many times, e.g. 50. Citation counts come from OpenAlex, so this needs the OpenAlex source: papers found only on arXiv have no count and are left out.",
            "default": 0
          },
          "openAccessOnly": {
            "title": "Open access only",
            "type": "boolean",
            "description": "Only papers that can be read for free, e.g. true. Every arXiv paper is open access.",
            "default": false
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "relevance",
              "citations",
              "newest"
            ],
            "type": "string",
            "description": "\"relevance\": best match first, taking papers from each source in turn. \"citations\": most cited first (papers found only on arXiv have no count and come last). \"newest\": latest publication date first.",
            "default": "relevance"
          },
          "aiSummary": {
            "title": "Add an AI summary and relevance score",
            "type": "boolean",
            "description": "Adds an \"ai\" block to each paper that has an abstract: a 1-2 sentence summary, methods, up to 4 key findings, limitations and a 0-100 relevance score. Charged per paper summarized, e.g. true. Needs a paid Apify plan; papers with no abstract are not summarized and not charged.",
            "default": false
          },
          "researchQuestion": {
            "title": "Your research question",
            "type": "string",
            "description": "Optional, used with the AI summary. The relevance score says how useful each paper is for this question, e.g. \"Does RAG reduce hallucinations in medical question answering?\". Without it, the score is the relevance to the search phrase."
          },
          "openalexApiKey": {
            "title": "Your OpenAlex API key",
            "type": "string",
            "description": "Optional. Without a key, OpenAlex gives every server a small daily allowance that is shared by all its users, and it can run out. A free key from openalex.org/settings/api has its own allowance (about 1,000 search requests a day), e.g. \"abc123…\". Lookups by id and arXiv need no key."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}