{
  "openapi": "3.0.1",
  "info": {
    "title": "Internet Archive Search — Wayback Machine Advanced Query Tool",
    "description": "Search the Internet Archive (archive.org) with full advanced filter support — date range, media type, language, subject, and more. Returns metadata from archived web pages, books, audio, and video.",
    "version": "1.0",
    "x-build-id": "9JGBa7woKfifGFdsb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maged120~archive-org-advanced-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maged120-archive-org-advanced-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/maged120~archive-org-advanced-search/runs": {
      "post": {
        "operationId": "runs-sync-maged120-archive-org-advanced-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/maged120~archive-org-advanced-search/run-sync": {
      "post": {
        "operationId": "run-sync-maged120-archive-org-advanced-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": {
          "any_field_value": {
            "title": "Any Field Value",
            "type": "string",
            "description": "Search term to match across all fields."
          },
          "any_field_operator": {
            "title": "Any Field Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the 'Any Field' search term."
          },
          "title_value": {
            "title": "Title Value",
            "type": "string",
            "description": "Search term to match in the title field."
          },
          "title_operator": {
            "title": "Title Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the 'Title' search term."
          },
          "creator_value": {
            "title": "Creator Value",
            "type": "string",
            "description": "Search term to match in the creator field."
          },
          "creator_operator": {
            "title": "Creator Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the 'Creator' search term."
          },
          "description_value": {
            "title": "Description Value",
            "type": "string",
            "description": "Search term to match in the description field."
          },
          "description_operator": {
            "title": "Description Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the 'Description' search term."
          },
          "collection_value": {
            "title": "Collection Value",
            "type": "string",
            "description": "Search term to match in the collection field."
          },
          "collection_operator": {
            "title": "Collection Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the 'Collection' search term."
          },
          "mediatype_value": {
            "title": "Media Type Value",
            "type": "string",
            "description": "Search term to match in the mediatype field."
          },
          "mediatype_operator": {
            "title": "Media Type Operator",
            "enum": [
              "is",
              "not"
            ],
            "type": "string",
            "description": "Operator for the 'Media Type' search term."
          },
          "custom_field_1_name": {
            "title": "Custom Field 1 Name",
            "type": "string",
            "description": "Name of the first custom field to search."
          },
          "custom_field_1_value": {
            "title": "Custom Field 1 Value",
            "type": "string",
            "description": "Value of the first custom field to search."
          },
          "custom_field_1_operator": {
            "title": "Custom Field 1 Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the first custom field search term."
          },
          "custom_field_2_name": {
            "title": "Custom Field 2 Name",
            "type": "string",
            "description": "Name of the second custom field to search."
          },
          "custom_field_2_value": {
            "title": "Custom Field 2 Value",
            "type": "string",
            "description": "Value of the second custom field to search."
          },
          "custom_field_2_operator": {
            "title": "Custom Field 2 Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the second custom field search term."
          },
          "custom_field_3_name": {
            "title": "Custom Field 3 Name",
            "type": "string",
            "description": "Name of the third custom field to search."
          },
          "custom_field_3_value": {
            "title": "Custom Field 3 Value",
            "type": "string",
            "description": "Value of the third custom field to search."
          },
          "custom_field_3_operator": {
            "title": "Custom Field 3 Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the third custom field search term."
          },
          "custom_field_4_name": {
            "title": "Custom Field 4 Name",
            "type": "string",
            "description": "Name of the fourth custom field to search."
          },
          "custom_field_4_value": {
            "title": "Custom Field 4 Value",
            "type": "string",
            "description": "Value of the fourth custom field to search."
          },
          "custom_field_4_operator": {
            "title": "Custom Field 4 Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the fourth custom field search term."
          },
          "custom_field_5_name": {
            "title": "Custom Field 5 Name",
            "type": "string",
            "description": "Name of the fifth custom field to search."
          },
          "custom_field_5_value": {
            "title": "Custom Field 5 Value",
            "type": "string",
            "description": "Value of the fifth custom field to search."
          },
          "custom_field_5_operator": {
            "title": "Custom Field 5 Operator",
            "enum": [
              "contains",
              "not"
            ],
            "type": "string",
            "description": "Operator for the fifth custom field search term."
          },
          "date": {
            "title": "Exact Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Exact date to match (YYYY-MM-DD)."
          },
          "date_range_start": {
            "title": "Date Range Start",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Start date of the range to match (YYYY-MM-DD)."
          },
          "date_range_end": {
            "title": "Date Range End",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "End date of the range to match (YYYY-MM-DD)."
          },
          "hits_per_page": {
            "title": "Items Per Page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Number of items to return per page."
          },
          "page": {
            "title": "Page Number",
            "minimum": 1,
            "type": "integer",
            "description": "Page number to fetch (1-based)."
          },
          "sort_name": {
            "title": "Sort Field",
            "type": "string",
            "description": "Field to sort by (e.g., publicdate, downloads)."
          },
          "sort_value": {
            "title": "Sort Direction",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort direction (ascending or descending)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}