{
  "openapi": "3.0.1",
  "info": {
    "title": "PubMed Scraper: Abstracts, Authors, MeSH, DOIs, Citations",
    "description": "Search PubMed through the official NCBI E-utilities API or look up PMIDs, PMCIDs and DOIs. Get titles, abstracts, authors, affiliations, journals, MeSH terms, DOIs, PMC links and NIH iCite citation counts. No login. Failed or empty inputs are free.",
    "version": "1.0",
    "x-build-id": "LFRA7AfW9GOPFiGjw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/joesimo~pubmed-articles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-joesimo-pubmed-articles",
        "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/joesimo~pubmed-articles/runs": {
      "post": {
        "operationId": "runs-sync-joesimo-pubmed-articles",
        "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/joesimo~pubmed-articles/run-sync": {
      "post": {
        "operationId": "run-sync-joesimo-pubmed-articles",
        "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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "PubMed searches, one per line. Plain keywords work, and so does full PubMed syntax (AND, OR, NOT, \"phrases\", field tags such as [ti], [tiab], [au], [mh], [journal]). Leave this and PMIDs empty for a demo of 20 recent CRISPR therapy reviews.",
            "items": {
              "type": "string"
            }
          },
          "pmids": {
            "title": "PMIDs, PMCIDs or DOIs",
            "type": "array",
            "description": "Look up specific articles: PMIDs (33283989), PubMed URLs, PMCIDs (PMC7279235) or DOIs (10.1056/NEJMoa2031054).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publicationTypes": {
            "title": "Publication types",
            "type": "array",
            "description": "Only keep these PubMed publication types, matched with OR. Examples: Review, Systematic Review, Meta-Analysis, Randomized Controlled Trial, Clinical Trial, Case Reports, Guideline.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Published on or after",
            "type": "string",
            "description": "YYYY, YYYY-MM or YYYY-MM-DD. Applies to searches, not to PMID lookups."
          },
          "dateTo": {
            "title": "Published on or before",
            "type": "string",
            "description": "YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "dateType": {
            "title": "Date field",
            "enum": [
              "pdat",
              "edat",
              "mdat"
            ],
            "type": "string",
            "description": "Which date the range filters on. Publication date is what most people want; Entrez date is when the record was added to PubMed (best for monitoring new articles).",
            "default": "pdat"
          },
          "freeFullTextOnly": {
            "title": "Free full text only",
            "type": "boolean",
            "description": "Only articles with a free full text link (PubMed filter \"free full text\").",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional article language in English words, for example english, spanish, german."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "pub_date",
              "most_recent"
            ],
            "type": "string",
            "description": "Best match is PubMed's relevance ranking. Publication date gives newest first. Most recent gives the newest additions to PubMed first.",
            "default": "relevance"
          },
          "maxResultsPerQuery": {
            "title": "Max articles per search",
            "minimum": 1,
            "maximum": 9999,
            "type": "integer",
            "description": "Stop each search after this many articles. PubMed pages through at most the first 10,000 matches of a search; split large searches by date range.",
            "default": 100
          },
          "maxItems": {
            "title": "Max articles in total",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on paid articles for the whole run. 0 means no cap (the run still stops at your maximum cost per run).",
            "default": 0
          },
          "includeCitationMetrics": {
            "title": "Add citation counts (NIH iCite)",
            "type": "boolean",
            "description": "Adds citationCount, relativeCitationRatio, nihPercentile and isClinical from the NIH iCite API. Very new articles may have no metrics yet. No extra charge.",
            "default": true
          },
          "includeAuthorDetails": {
            "title": "Include author details",
            "type": "boolean",
            "description": "Adds authorDetails: last name, fore name, initials, ORCID and affiliations per author. Turn off for smaller rows.",
            "default": true
          },
          "ncbiApiKey": {
            "title": "NCBI API key (optional)",
            "type": "string",
            "description": "Your own free NCBI API key raises the request limit from 3 to 10 per second, which speeds up very large runs. Not needed for normal use."
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Timeout for one NCBI request.",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}