{
  "openapi": "3.0.1",
  "info": {
    "title": "PubMed Scraper: Biomedical Papers, Abstracts, Authors & MeSH",
    "description": "Export PubMed articles via NCBI's official API: titles, structured abstracts, authors with affiliations and ORCID, DOI, PMC free full-text links, MeSH, grants and citing articles. PubMed query syntax or PMIDs. $0.75 per 1,000.",
    "version": "0.1",
    "x-build-id": "4DgvqB5Hv4NLhxQlc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~pubmed-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-pubmed-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/plotpointtech~pubmed-scraper/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-pubmed-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/plotpointtech~pubmed-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-pubmed-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": {
          "query": {
            "title": "PubMed search query",
            "type": "string",
            "description": "Anything you would type in the PubMed search box, including full PubMed syntax: field tags such as [ti], [tiab], [au], [mh], [pt], [dp], Boolean AND/OR/NOT and quotes. Example: \"breast neoplasms\"[mh] AND trastuzumab[tiab] AND 2020:2026[dp]. Leave empty to use only the simple fields below."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Simple keyword search (all fields, PubMed's automatic term mapping), ANDed with the query, e.g. semaglutide obesity."
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Author name as PubMed indexes it, e.g. Doudna JA or Zhang Feng. Separate several authors with ; (any of them matches)."
          },
          "journal": {
            "title": "Journal",
            "type": "string",
            "description": "Journal title or abbreviation, e.g. Nature, N Engl J Med, The Lancet. Separate several with ;."
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Publication date on or after: YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "dateTo": {
            "title": "Published to",
            "type": "string",
            "description": "Publication date on or before: YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "articleTypes": {
            "title": "Article types",
            "type": "array",
            "description": "Keep articles with any of these PubMed publication types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Review",
                "Systematic Review",
                "Meta-Analysis",
                "Randomized Controlled Trial",
                "Clinical Trial",
                "Clinical Trial, Phase I",
                "Clinical Trial, Phase II",
                "Clinical Trial, Phase III",
                "Clinical Trial, Phase IV",
                "Observational Study",
                "Case Reports",
                "Guideline",
                "Practice Guideline",
                "Comparative Study",
                "Multicenter Study",
                "Editorial",
                "Letter",
                "Comment",
                "Preprint",
                "Journal Article",
                "Retracted Publication"
              ]
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Article language, e.g. english, german, chinese. Leave empty for all."
          },
          "freeFullTextOnly": {
            "title": "Free full text only",
            "type": "boolean",
            "description": "Keep only articles PubMed marks as free full text (PMC or free at the publisher).",
            "default": false
          },
          "hasAbstract": {
            "title": "Only articles with an abstract",
            "type": "boolean",
            "description": "Skip records without an abstract (letters, comments, many older papers).",
            "default": false
          },
          "pmids": {
            "title": "PMIDs",
            "type": "array",
            "description": "Fetch these PubMed IDs directly, e.g. 33301246. PubMed URLs work too. If a query is also given, its results are added after these.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "firstAuthor",
              "journal"
            ],
            "type": "string",
            "description": "Order of search results. Above 9,999 results the search is split into publication-date windows, newest first, and the order applies inside each window.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Stop after this many articles. You pay per article. 0 = no limit (all matching records).",
            "default": 50
          },
          "includeCitedBy": {
            "title": "Include citing articles",
            "type": "boolean",
            "description": "Add citedByCount and the PMIDs of articles that cite each paper (NCBI elink 'cited in'; counts only citations from PMC full-text articles, so they are lower than Google Scholar or OpenAlex). One extra request per 100 articles.",
            "default": false
          },
          "maxCitedByPmids": {
            "title": "Max citing PMIDs per article",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap the citedByPmids list per article (the count is always complete). 0 = no cap.",
            "default": 100
          },
          "apiKey": {
            "title": "Your NCBI API key (optional)",
            "type": "string",
            "description": "Free key from your NCBI account (Account settings > API Key Management). Raises the NCBI limit from 3 to 10 requests per second, which makes large runs about 3x faster. Not needed for normal runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}