{
  "openapi": "3.0.1",
  "info": {
    "title": "DOI Metadata for Crossref: Works & Citation Counts",
    "description": "Search Crossref works by query, author, date and type, or look up DOIs. Get title, abstract, authors, journal, dates, citation count, license, funders and PDF links through the official Crossref REST API. Monitor mode for new works. Pay per paper.",
    "version": "0.1",
    "x-build-id": "09dAKMfgS5bG1ZJXe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/forgeloop~crossref-works/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-forgeloop-crossref-works",
        "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/forgeloop~crossref-works/runs": {
      "post": {
        "operationId": "runs-sync-forgeloop-crossref-works",
        "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/forgeloop~crossref-works/run-sync": {
      "post": {
        "operationId": "run-sync-forgeloop-crossref-works",
        "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": "Words to search in all metadata of a work: title, authors, journal, publisher, funders and more."
          },
          "bibliographic": {
            "title": "Bibliographic query",
            "type": "string",
            "description": "Words to search in the citation data: title, authors, journal, year. Best for topics and for finding a work from a reference string."
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Author or editor name, for example Jennifer Doudna. Crossref matches names loosely, so combine it with a bibliographic query for common names."
          },
          "dois": {
            "title": "DOIs",
            "type": "array",
            "description": "Look up works by DOI instead of, or in addition to, a search. Accepts DOIs (10.1038/nature14539), doi.org URLs and \"doi:\" prefixes. DOIs that Crossref does not know return a free error item. Max results does not apply to this list.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Only works with a date on or after this day (YYYY-MM-DD, also YYYY-MM or YYYY). Which date is set under Date type."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Only works with a date on or before this day (YYYY-MM-DD, also YYYY-MM or YYYY)."
          },
          "dateType": {
            "title": "Date type",
            "enum": [
              "published",
              "created",
              "updated"
            ],
            "type": "string",
            "description": "Date the range applies to. Publication date is the earliest print or online date. DOI created is the day the DOI was registered, the best choice for monitoring. Metadata updated is the last change of the record.",
            "default": "published"
          },
          "types": {
            "title": "Work types",
            "type": "array",
            "description": "Only works of these types. Empty means all types.",
            "items": {
              "type": "string",
              "enum": [
                "journal-article",
                "proceedings-article",
                "posted-content",
                "book-chapter",
                "book",
                "monograph",
                "report",
                "dissertation",
                "dataset",
                "peer-review",
                "reference-entry",
                "standard"
              ],
              "enumTitles": [
                "Journal article",
                "Conference paper",
                "Preprint (posted content)",
                "Book chapter",
                "Book",
                "Monograph",
                "Report",
                "Dissertation",
                "Dataset",
                "Peer review",
                "Reference entry",
                "Standard"
              ]
            }
          },
          "hasAbstract": {
            "title": "Only works with an abstract",
            "type": "boolean",
            "description": "Skip works whose publisher did not deposit an abstract with Crossref.",
            "default": false
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "is-referenced-by-count",
              "published",
              "created",
              "updated",
              "references-count"
            ],
            "type": "string",
            "description": "Order of the search results. Relevance needs a query. Most cited uses the Crossref citation count.",
            "default": "relevance"
          },
          "order": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending returns the most relevant, most cited or newest works first.",
            "default": "desc"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of search results. The Actor pages through the results 200 at a time, at the rate Crossref allows.",
            "default": 50
          },
          "monitorMode": {
            "title": "Only new works (monitor mode)",
            "type": "boolean",
            "description": "Return only works that earlier monitor runs with the same search have not returned. Seen DOIs are kept in the named key-value store \"crossref-works-monitor\" of your account, at most 20,000 per search. Use it with a schedule and sort by DOI created.",
            "default": false
          },
          "filter": {
            "title": "Extra filters",
            "type": "string",
            "description": "More Crossref filters as name:value pairs separated by commas, for example issn:0028-0836, funder:10.13039/100000001, member:78 or has-license:true. See the Crossref REST API documentation for all filters."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}