{
  "openapi": "3.0.1",
  "info": {
    "title": "$3/1K | Internet Archive Scraper - Search & Wayback",
    "description": "Scrape archive.org: search books, films, audio and software with title, creators, year, subjects, collections, downloads and links; read any item with its files and download links; look up Wayback Machine snapshots of any web page. Made by ScraperCompany.",
    "version": "1.0",
    "x-build-id": "1Fr1w9PoNAcMyrET6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapercompany~internet-archive-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapercompany-internet-archive-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/scrapercompany~internet-archive-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapercompany-internet-archive-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/scrapercompany~internet-archive-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapercompany-internet-archive-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "item",
              "wayback",
              "snapshots"
            ],
            "type": "string",
            "description": "Search archive.org items, read items in full, or look up web pages in the Wayback Machine.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries (Search)",
            "type": "array",
            "description": "One search per line: free text such as <code>apollo 11</code>, or archive.org query syntax such as <code>title:(moby dick) AND creator:(melville)</code>.",
            "default": [
              "apollo 11"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Pages per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many pages to fetch for each search (up to 100). Each page is a separate request and is charged separately; paging stops at the last page.",
            "default": 1
          },
          "mediatype": {
            "title": "Media type",
            "enum": [
              "texts",
              "movies",
              "audio",
              "software",
              "image",
              "data",
              "collection",
              "web",
              "opensource"
            ],
            "type": "string",
            "description": "Keep one media type."
          },
          "collection": {
            "title": "Collection",
            "type": "string",
            "description": "Keep one collection, by its id: <code>nasa</code>, <code>gutenberg</code>, <code>prelinger</code>."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code, e.g. <code>eng</code>, <code>fre</code>, <code>ger</code>."
          },
          "year_from": {
            "title": "Year from",
            "minimum": 0,
            "maximum": 9999,
            "type": "integer",
            "description": "Earliest year (inclusive)."
          },
          "year_to": {
            "title": "Year to",
            "minimum": 0,
            "maximum": 9999,
            "type": "integer",
            "description": "Latest year (inclusive)."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "downloads_desc",
              "downloads_asc",
              "date_desc",
              "date_asc",
              "title_asc",
              "title_desc",
              "creator_asc",
              "rating_desc"
            ],
            "type": "string",
            "description": "Result order.",
            "default": "relevance"
          },
          "rows": {
            "title": "Items per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Items per page (1-100). The price is per page.",
            "default": 100
          },
          "items": {
            "title": "Items (Item details)",
            "type": "array",
            "description": "One item per line: its identifier such as <code>mobydickorwhale01melvuoft</code> (the <code>identifier</code> from a search) or an archive.org details link.",
            "default": [
              "mobydickorwhale01melvuoft"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeFiles": {
            "title": "Include files",
            "type": "boolean",
            "description": "Also return the item's files with direct download links.",
            "default": false
          },
          "fileFormats": {
            "title": "File formats",
            "type": "array",
            "description": "With Include files, keep only these formats or extensions, e.g. <code>EPUB</code>, <code>Text PDF</code>, <code>mp3</code>.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Web pages (Wayback Machine)",
            "type": "array",
            "description": "One web page per line, such as <code>example.com</code> or <code>https://example.com/about</code>.",
            "default": [
              "example.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "timestamp": {
            "title": "Near this time (closest snapshot)",
            "type": "string",
            "description": "Prefer the snapshot nearest this time, as <code>YYYYMMDDhhmmss</code> or a prefix such as <code>2015</code> or <code>20150601</code>."
          },
          "captureLimit": {
            "title": "Most captures (all captures)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most captures to return for each URL (1-1000).",
            "default": 100
          },
          "captureYearFrom": {
            "title": "Captures from year",
            "type": "integer",
            "description": "With all captures, the first year to include."
          },
          "captureYearTo": {
            "title": "Captures to year",
            "type": "integer",
            "description": "With all captures, the last year to include."
          },
          "customRequests": {
            "title": "Custom requests (advanced)",
            "type": "array",
            "description": "Optional list of JSON objects, one request each, using the field names shown above. Each object is merged over the options above, so you only need to give what differs. Add <code>\"mode\": \"item\"</code> with an <code>identifier</code>, or <code>\"mode\": \"wayback\"</code> with a <code>url</code>, to mix in other lookups. Example: <code>{\"query\":\"moby dick\",\"mediatype\":\"texts\"}</code>"
          },
          "includeErrors": {
            "title": "Include failed requests in the dataset",
            "type": "boolean",
            "description": "When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many requests run at the same time (1-8). Parallel runs share one limit, so extra requests wait for a free slot instead of failing.",
            "default": 3
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many times a request that failed for a temporary reason is tried again right away. A request still failing then gets one more try at the end of the run, after a 30-second pause. Invalid input is never retried.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}