{
  "openapi": "3.0.1",
  "info": {
    "title": "Semantic Scholar & Academic Paper Scraper (MCP)",
    "description": "Search Semantic Scholar's 200M+ paper database and get clean JSON with titles, abstracts, authors, citations, DOIs, and open-access PDF links. Optional API key for higher rate limits.",
    "version": "2.0",
    "x-build-id": "hxCUVKiHBYcqapEnF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/forlex~semantic-scholar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-forlex-semantic-scholar-scraper",
        "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/forlex~semantic-scholar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-forlex-semantic-scholar-scraper",
        "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/forlex~semantic-scholar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-forlex-semantic-scholar-scraper",
        "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": {
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keywords to search for papers (e.g. 'large language models', 'attention is all you need'). Required unless startUrl, authorName, searchQueries, or paperIds is provided."
          },
          "searchQueries": {
            "title": "Search Queries (Batch)",
            "type": "array",
            "description": "Optional list of multiple search queries to run and deduplicate together.",
            "items": {
              "type": "string"
            }
          },
          "paperIds": {
            "title": "Direct Paper IDs / DOIs / arXiv IDs",
            "type": "array",
            "description": "Look up specific papers by DOI (e.g. '10.48550/arXiv.1706.03762'), arXiv ID ('1706.03762'), OpenAlex ID ('W2626778328'), or Semantic Scholar URL/ID.",
            "items": {
              "type": "string"
            }
          },
          "startUrl": {
            "title": "Semantic Scholar / Academic URL",
            "type": "string",
            "description": "Direct Semantic Scholar search URL, paper URL, arXiv URL, DOI URL, or OpenAlex URL."
          },
          "authorName": {
            "title": "Author Name",
            "type": "string",
            "description": "Search papers and bibliometric profile (h-index, ORCID, total citations) for a specific researcher (e.g. 'Yann LeCun')."
          },
          "source": {
            "title": "Academic Data Source",
            "enum": [
              "auto",
              "semantic-scholar",
              "openalex",
              "crossref",
              "arxiv",
              "all"
            ],
            "type": "string",
            "description": "Select primary data source. 'auto' tries Semantic Scholar and seamlessly fails over to OpenAlex -> CrossRef -> arXiv on 429 rate limits.",
            "default": "auto"
          },
          "yearMin": {
            "title": "Minimum Year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Filter papers published on or after this year (e.g. 2020)."
          },
          "yearMax": {
            "title": "Maximum Year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Filter papers published on or before this year (e.g. 2026)."
          },
          "hasPdf": {
            "title": "Only Papers with Open-Access PDF",
            "type": "boolean",
            "description": "Only return papers with a freely accessible open-access URL or PDF link.",
            "default": false
          },
          "minCitations": {
            "title": "Minimum Citation Count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only papers with at least this many citations (e.g. 10)."
          },
          "venues": {
            "title": "Venues (comma-separated)",
            "type": "string",
            "description": "Filter by conference/journal name substring (e.g. 'NeurIPS,ICML,ICLR,Nature')."
          },
          "fieldsOfStudy": {
            "title": "Fields of Study (comma-separated)",
            "type": "string",
            "description": "Filter by topic or discipline (e.g. 'Computer Science,Artificial Intelligence,Medicine')."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "citationCount",
              "publicationDate"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "relevance"
          },
          "includeBibtex": {
            "title": "Generate BibTeX & APA Citations",
            "type": "boolean",
            "description": "Automatically attach valid BibTeX (@article / @inproceedings) and APA 7th citation strings to every paper.",
            "default": true
          },
          "includeCitations": {
            "title": "Expand Citing Papers",
            "type": "boolean",
            "description": "Fetch top citing papers for each result (incurs citation graph expansion event per expanded paper).",
            "default": false
          },
          "includeReferences": {
            "title": "Expand Referenced Papers",
            "type": "boolean",
            "description": "Fetch top papers cited in the bibliography of each result (incurs citation graph expansion event per expanded paper).",
            "default": false
          },
          "maxCitationsPerPaper": {
            "title": "Max Citing / Referenced Papers per Item",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of citing or referenced papers to attach when citation graph expansion is enabled.",
            "default": 5
          },
          "outputMode": {
            "title": "Output Format Mode",
            "enum": [
              "standard",
              "rag"
            ],
            "type": "string",
            "description": "Standard JSON metadata or AI/RAG Markdown mode adding a formatted markdown digest per paper.",
            "default": "standard"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of academic papers to return per run.",
            "default": 20
          },
          "fields": {
            "title": "Semantic Scholar Fields (Advanced)",
            "type": "string",
            "description": "Optional comma-separated fields to request when querying Semantic Scholar directly.",
            "default": "paperId,title,abstract,year,authors,citationCount,influentialCitationCount,referenceCount,externalIds,openAccessPdf,url,venue,publicationTypes,fieldsOfStudy,journal,publicationDate,tldr,isOpenAccess,corpusId"
          },
          "apiKey": {
            "title": "Semantic Scholar API Key (Optional)",
            "type": "string",
            "description": "Optional x-api-key for Semantic Scholar dedicated quotas. Not required — auto-failover to OpenAlex/CrossRef works out of the box."
          },
          "openAlexApiKey": {
            "title": "OpenAlex API Key (Optional)",
            "type": "string",
            "description": "Optional OpenAlex API key ($1/day free tier) for high-volume OpenAlex queries."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}