{
  "openapi": "3.0.1",
  "info": {
    "title": "Academic Reference Checker and Paper Search API",
    "description": "Check reference lists against Crossref and OpenAlex: does each cited paper exist, which fields match or differ, is it retracted. Search papers with filters and look up DOIs. Batch runs or an MCP server. Failed lookups are free.",
    "version": "0.1",
    "x-build-id": "DKayzGDkprrGpUo0z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/magicfingers~academic-paper-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-magicfingers-academic-paper-search",
        "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/magicfingers~academic-paper-search/runs": {
      "post": {
        "operationId": "runs-sync-magicfingers-academic-paper-search",
        "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/magicfingers~academic-paper-search/run-sync": {
      "post": {
        "operationId": "run-sync-magicfingers-academic-paper-search",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "references",
              "search",
              "dois"
            ],
            "type": "string",
            "description": "references: check citation strings (does the paper exist, which fields match). search: find papers by search phrase. dois: look up DOIs.",
            "default": "references"
          },
          "references": {
            "title": "References (references mode)",
            "maxItems": 1000,
            "type": "array",
            "description": "One citation per line in any common style (APA, Harvard, IEEE, Vancouver, MLA, Chicago), or a bare DOI. Up to 1,000 per run. Identical lines are checked once.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search phrases (search mode)",
            "maxItems": 100,
            "type": "array",
            "description": "One search phrase per line, for example web scraping or graph neural networks drug discovery. Up to 100 per run. A paper found by an earlier phrase of the same run is saved and charged once.",
            "items": {
              "type": "string"
            }
          },
          "dois": {
            "title": "DOIs (dois mode)",
            "maxItems": 1000,
            "type": "array",
            "description": "One DOI per line, with or without https://doi.org/, for example 10.1038/nature14539. Up to 1,000 per run. DOIs that do not exist go to the FAILED record and are not charged.",
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "From year (search)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Search mode: keep papers published in this year or later (unit: year). Leave empty for no lower limit."
          },
          "yearTo": {
            "title": "To year (search)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Search mode: keep papers published in this year or earlier (unit: year). Leave empty for no upper limit."
          },
          "openAccessOnly": {
            "title": "Open access only (search)",
            "type": "boolean",
            "description": "Search mode: keep only papers with a free full text, as OpenAlex records it (the same data as Unpaywall).",
            "default": false
          },
          "peerReviewedOnly": {
            "title": "Peer-reviewed venues only (search)",
            "type": "boolean",
            "description": "Search mode: keep only journal articles, reviews, letters and conference papers whose venue is a journal or a conference. This is based on the record type and venue, not on a check of the review process.",
            "default": false
          },
          "excludePreprints": {
            "title": "Exclude preprints (search)",
            "type": "boolean",
            "description": "Search mode: leave out preprints and repository copies (arXiv, bioRxiv, SSRN and others).",
            "default": false
          },
          "excludeReviews": {
            "title": "Exclude reviews and surveys (search)",
            "type": "boolean",
            "description": "Search mode: leave out works that OpenAlex classes as reviews and works whose title says survey, systematic review, literature review, scoping review or meta-analysis.",
            "default": false
          },
          "language": {
            "title": "Language (search)",
            "pattern": "^([a-zA-Z]{2})?$",
            "maxLength": 2,
            "type": "string",
            "description": "Search mode: two-letter language code of the work, for example en or de. Works with no known language are left out when this is set. Leave empty for every language."
          },
          "sortBy": {
            "title": "Sort by (search)",
            "enum": [
              "relevance",
              "cited",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Search mode: order of the results of each phrase.",
            "default": "relevance"
          },
          "maxResultsPerQuery": {
            "title": "Max papers per phrase (search)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Search mode: most papers saved for one search phrase, after the filters (unit: papers).",
            "default": 25
          },
          "includeAbstracts": {
            "title": "Include abstracts",
            "type": "boolean",
            "description": "Add the abstract when the work carries a Creative Commons or public-domain licence. Other abstracts belong to their publishers or authors and are left out.",
            "default": true
          },
          "contactEmail": {
            "title": "Contact email for Crossref (optional)",
            "pattern": "^([^@\\s]+@[^@\\s]+\\.[^@\\s]+)?$",
            "maxLength": 200,
            "type": "string",
            "description": "Your own email, sent to Crossref as the mailto contact. Crossref then serves the run from its polite pool (10 requests per second instead of 5, 3 at a time instead of 1), which makes large reference lists faster. Leave empty to send no email."
          },
          "openAlexApiKey": {
            "title": "OpenAlex API key (optional)",
            "type": "string",
            "description": "Your own free OpenAlex API key (openalex.org/settings/api). It gives OpenAlex searches your own daily budget. Leave empty to use the Actor's key."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}