{
  "openapi": "3.0.1",
  "info": {
    "title": "Academic Paper Search API: Citations, BibTeX & Open PDFs",
    "description": "Search and deduplicate academic research papers and citations across OpenAlex, arXiv, PubMed, Crossref, and Europe PMC with structured MCP-ready JSON outputs.",
    "version": "0.0",
    "x-build-id": "y18oRcvKc4dAhInoR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topaz_anemone~academic-research-mcp-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topaz_anemone-academic-research-mcp-pro",
        "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/topaz_anemone~academic-research-mcp-pro/runs": {
      "post": {
        "operationId": "runs-sync-topaz_anemone-academic-research-mcp-pro",
        "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/topaz_anemone~academic-research-mcp-pro/run-sync": {
      "post": {
        "operationId": "run-sync-topaz_anemone-academic-research-mcp-pro",
        "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": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Topic, keywords or title phrase, e.g. 'large language model agents', 'CRISPR base editing' or 'retrieval augmented generation evaluation'. Leave empty only when you use an exact DOI lookup.",
            "default": "large language model agents"
          },
          "doi": {
            "title": "Exact DOI lookup (optional)",
            "type": "string",
            "description": "Fetch one paper by DOI, e.g. '10.1038/s41586-021-03819-2' or 'https://doi.org/10.48550/arXiv.2210.03629'. Returns full metadata, citation count, open-access PDF and citations."
          },
          "sources": {
            "title": "Databases",
            "type": "array",
            "description": "Databases queried in parallel and merged. Europe PMC adds biomedical coverage but is often slow; it is time-boxed like every other source.",
            "items": {
              "type": "string",
              "enum": [
                "openalex",
                "arxiv",
                "pubmed",
                "crossref",
                "europepmc"
              ],
              "enumTitles": [
                "OpenAlex (250M+ works)",
                "arXiv (preprints)",
                "PubMed (biomedical)",
                "Crossref (DOI registry)",
                "Europe PMC (life sciences)"
              ]
            },
            "default": [
              "openalex",
              "arxiv",
              "pubmed",
              "crossref"
            ]
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of deduplicated papers returned (and charged), 1-200.",
            "default": 20
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "citations",
              "newest"
            ],
            "type": "string",
            "description": "'Relevance' fuses the rankings of all databases (papers found by several databases rank higher) with a mild citation-impact prior. 'Most cited' and 'Newest' keep results on-topic by requiring the query terms in the title or abstract.",
            "default": "relevance"
          },
          "yearFrom": {
            "title": "Published from year",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep only papers published in or after this year, e.g. 2023."
          },
          "yearTo": {
            "title": "Published to year",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep only papers published in or before this year."
          },
          "openAccessOnly": {
            "title": "Open access only",
            "type": "boolean",
            "description": "Return only papers that are open access or have a free PDF link.",
            "default": false
          },
          "minCitations": {
            "title": "Minimum citations",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only papers with at least this many citations. 0 keeps brand-new preprints.",
            "default": 0
          },
          "includeCitations": {
            "title": "Add APA and BibTeX citations",
            "type": "boolean",
            "description": "Adds 'citationApa', 'bibtex' and a unique 'citationKey' to every paper, generated locally at zero extra latency.",
            "default": true
          },
          "compactLlmMode": {
            "title": "Compact output for LLMs",
            "type": "boolean",
            "description": "Return only the fields an AI agent needs (title, first 6 authors, year, venue, citations, open-access flag, PDF, DOI, URL, abstract trimmed to 600 characters, APA citation, relevance score).",
            "default": false
          },
          "enrichWithOpenAlex": {
            "title": "Enrich with OpenAlex",
            "type": "boolean",
            "description": "Looks up every non-OpenAlex hit (arXiv, PubMed, Crossref) in OpenAlex to add citation counts, open-access PDF links and missing abstracts. Single-record lookups are free and run in parallel inside the time budget.",
            "default": true
          },
          "timeBudgetSec": {
            "title": "Time budget (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Hard limit for searching and enrichment. Sources that have not answered in time are skipped and reported in the SUMMARY record, so agents always get a fast answer. Raise it (e.g. 20) for exhaustive overnight digests.",
            "default": 6
          },
          "openalexApiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Free key from openalex.org/settings/api. Without a key, OpenAlex searches share a small daily budget with everyone on the same cloud IP; when it runs out the Actor falls back to the other databases. A free key gives you your own budget."
          },
          "contactEmail": {
            "title": "Contact email for polite API use (optional)",
            "type": "string",
            "description": "Optional email sent to Crossref and NCBI as the polite-use contact, as both services recommend."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}