{
  "openapi": "3.0.1",
  "info": {
    "title": "Internet Archive Scraper: Items and Metadata | $1/1K",
    "description": "$1 per 1,000 results, platform usage included. Items from archive.org (books, video, audio, images, software, web) via its official search and metadata APIs: title, creator, dates, downloads, size, formats, files. Search, filter or list by identifier. No key.",
    "version": "0.1",
    "x-build-id": "Dt0QpszpjjdJQ1pCS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~internet-archive-items-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-internet-archive-items-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/one_dollar_store~internet-archive-items-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-internet-archive-items-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/one_dollar_store~internet-archive-items-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-internet-archive-items-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": {
          "searchQuery": {
            "title": "Search words",
            "maxLength": 500,
            "type": "string",
            "description": "Optional. Words to look for, for example moon landing. You can also use the Internet Archive search syntax, for example title:(apollo) AND subject:nasa. Leave empty and use the filters below, or leave everything empty to list the most downloaded items."
          },
          "identifiers": {
            "title": "Item identifiers",
            "maxItems": 500,
            "type": "array",
            "description": "Optional. One item identifier per line, the last part of an item address (archive.org/details/IDENTIFIER). Up to 500 identifiers.",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "title": "Collections",
            "maxItems": 20,
            "type": "array",
            "description": "Optional. One collection identifier per line, for example nasa or prelinger. An item is kept when it belongs to any of them.",
            "items": {
              "type": "string"
            }
          },
          "mediatypes": {
            "title": "Media types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional. Keep only these kinds of items. Leave empty for all kinds.",
            "items": {
              "type": "string",
              "enum": [
                "texts",
                "movies",
                "audio",
                "image",
                "software",
                "data",
                "web",
                "etree",
                "collection"
              ],
              "enumTitles": [
                "Texts and books",
                "Video",
                "Audio",
                "Images",
                "Software",
                "Data",
                "Web archives",
                "Live music (Etree)",
                "Collections"
              ]
            }
          },
          "creator": {
            "title": "Creator",
            "maxLength": 200,
            "type": "string",
            "description": "Optional. Name of the author, artist or uploader credited on the item, for example NASA."
          },
          "dateField": {
            "title": "Date to filter on",
            "enum": [
              "date",
              "publicdate"
            ],
            "type": "string",
            "description": "Which date the two date fields below use. Item date is the date the item itself carries (for example the year of a book). Added date is when the item was added to the Internet Archive.",
            "default": "date"
          },
          "dateFrom": {
            "title": "Date from",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "maxLength": 10,
            "type": "string",
            "description": "Optional. Earliest date, written 2020-01-31."
          },
          "dateTo": {
            "title": "Date until",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "maxLength": 10,
            "type": "string",
            "description": "Optional. Latest date, written 2020-12-31."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "downloads",
              "relevance",
              "newest-added",
              "oldest-added",
              "newest-item",
              "oldest-item",
              "title",
              "largest"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "downloads"
          },
          "includeFileList": {
            "title": "Add the file list of each item",
            "type": "boolean",
            "description": "Adds the files inside each item (name, format, size, download link; the first 100 files) and the time it last changed. It costs one extra request per item, at one request per second, so 50 items take about a minute.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many items. Minimum 10, maximum 10,000. The site is read at about one request per second, and each search page holds up to 200 items.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}