{
  "openapi": "3.0.1",
  "info": {
    "title": "Crossref Scraper - Scholarly Works, DOIs & Funders",
    "description": "Search Crossref (160M+ scholarly works) or look up DOIs and get clean rows: title, authors, affiliation, publisher, journal, year, citation count, funders with award numbers, license, ISSN/ISBN and abstract. Search, filter, or paste DOIs. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "75TqkMt3ehVZbU3R3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~crossref-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-crossref-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/scrapesage~crossref-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-crossref-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/scrapesage~crossref-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-crossref-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What to search Crossref for, one per line - e.g. <code>machine learning</code>, <code>climate policy</code>. Searches titles, authors, abstracts and metadata. <b>Leave empty and the run returns a small free sample.</b>",
            "items": {
              "type": "string"
            }
          },
          "dois": {
            "title": "DOIs (exact lookup)",
            "type": "array",
            "description": "Specific DOIs to look up exactly, one per line - e.g. <code>10.1038/nature14539</code> or a full <code>https://doi.org/...</code> URL.",
            "items": {
              "type": "string"
            }
          },
          "filter": {
            "title": "Filter (optional, advanced)",
            "type": "string",
            "description": "A Crossref filter expression, combined with the search - e.g. <code>from-pub-date:2024-01-01,type:journal-article</code> or <code>has-funder:true,funder:10.13039/100000001</code>. See the Crossref REST API docs."
          },
          "searchQueriesFromFile": {
            "title": "Import queries or DOIs from a file",
            "type": "string",
            "description": "Bulk-load search queries or DOIs (auto-detected). Either <b>paste the whole list</b> (one per line), or give <b>a single link</b> to a public <code>.txt</code>/<code>.csv</code>, a Google Sheet/Drive link, or an Apify key-value-store record. A file that cannot be read says so and charges nothing."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "published",
              "cited",
              "updated"
            ],
            "type": "string",
            "description": "How to order search results (DOI lookups are always exact).",
            "default": "relevance"
          },
          "maxItemsPerQuery": {
            "title": "Max works per query",
            "minimum": 1,
            "type": "integer",
            "description": "How many works to collect for each search query.",
            "default": 50
          },
          "maxItems": {
            "title": "Max works (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Overall cap across all queries, DOIs and the filter. You are only charged for works actually saved.",
            "default": 1000
          },
          "outputFields": {
            "title": "Output fields (leave empty for all)",
            "type": "array",
            "description": "Pick the fields you want and every record is trimmed to exactly those - handy for lean CSV/Sheets exports.",
            "items": {
              "type": "string",
              "enum": [
                "type",
                "doi",
                "doiUrl",
                "title",
                "subtitle",
                "workType",
                "authors",
                "authorCount",
                "firstAuthorAffiliation",
                "publisher",
                "containerTitle",
                "volume",
                "issue",
                "page",
                "publishedYear",
                "publishedDate",
                "issn",
                "isbn",
                "referenceCount",
                "citedByCount",
                "funders",
                "funderNames",
                "licenseUrls",
                "isOpenAccess",
                "language",
                "subjects",
                "abstract",
                "url",
                "crossrefUrl",
                "scrapedAt"
              ],
              "enumTitles": [
                "Record type (type)",
                "DOI (doi)",
                "DOI URL (doiUrl)",
                "Title (title)",
                "Subtitle (subtitle)",
                "Work type (workType)",
                "Authors (authors)",
                "Author count (authorCount)",
                "First-author affiliation (firstAuthorAffiliation)",
                "Publisher (publisher)",
                "Journal / container (containerTitle)",
                "Volume (volume)",
                "Issue (issue)",
                "Page (page)",
                "Published year (publishedYear)",
                "Published date (publishedDate)",
                "ISSN (issn)",
                "ISBN (isbn)",
                "Reference count (referenceCount)",
                "Cited-by count (citedByCount)",
                "Funders (funders)",
                "Funder names (funderNames)",
                "License URLs (licenseUrls)",
                "Open access (isOpenAccess)",
                "Language (language)",
                "Subjects (subjects)",
                "Abstract (abstract)",
                "Resource URL (url)",
                "Crossref URL (crossrefUrl)",
                "Scraped at (scrapedAt)"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}