{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk HTTP Request Runner: Batch API Calls",
    "description": "Bulk HTTP request runner for batch API calls: send a list of requests in one run and get one row per unique request with status, headers and body. Per-host rate limits, safe retries and restart, secret headers kept out of the output. For endpoints you own or may use.",
    "version": "0.1",
    "x-build-id": "15KKKMeah7HrQZcww"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~bulk-http-request-runner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-bulk-http-request-runner",
        "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/bardach_technologies~bulk-http-request-runner/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-bulk-http-request-runner",
        "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/bardach_technologies~bulk-http-request-runner/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-bulk-http-request-runner",
        "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",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "title": "Requests",
            "type": "array",
            "description": "Up to 20,000 entries. Each is a URL, or an object with url and optional method, headers, body and label. Requests are never generated or expanded, and an exact repeat runs once. Do not put credentials here: use Secret headers."
          },
          "secretHeaders": {
            "title": "Secret headers",
            "type": "string",
            "description": "Your own credentials, as a JSON object or as lines of Name: value. They are stored encrypted, sent only to the hosts listed below on the origin each request started on, and removed from all output."
          },
          "secretHeaderHosts": {
            "title": "Hosts that may receive secret headers",
            "type": "array",
            "description": "Exact host names, such as api.example.com. Required when Secret headers is set.",
            "items": {
              "type": "string"
            }
          },
          "allowWriteMethods": {
            "title": "Allow write methods",
            "type": "boolean",
            "description": "Allows POST, PUT, PATCH and DELETE, and method-override headers such as X-HTTP-Method-Override, which make a request a write. A write is sent at most once: no retry, no redirect, and no resend after a restart.",
            "default": false
          },
          "allowCredentialUrls": {
            "title": "Allow credentials inside URLs",
            "type": "boolean",
            "description": "Off: a URL with a token in its path or query (bot tokens, webhook secrets, API keys, credential-named parameters) is refused. On: it is sent, and every row shows those parts as REDACTED. A user name and password in a URL are always refused. Prefer Secret headers.",
            "default": false
          },
          "maxRetries": {
            "title": "Retries for read requests",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Extra attempts for GET, HEAD and OPTIONS after a timeout, a dropped connection, or a 502, 503 or 504 answer.",
            "default": 1
          },
          "maxRedirects": {
            "title": "Redirects to follow",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Read requests only. Every target is checked again. Set 0 to return the redirect itself.",
            "default": 3
          },
          "timeoutSeconds": {
            "title": "Timeout per request",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Time limit for one HTTP request.",
            "default": 20
          },
          "requestsPerMinutePerHost": {
            "title": "Requests per minute per host",
            "minimum": 6,
            "maximum": 120,
            "type": "integer",
            "description": "Most requests one host receives per minute. Subdomains of a site count as one host.",
            "default": 30
          },
          "maxConcurrencyPerHost": {
            "title": "Parallel requests per host",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Most requests in progress at once on one host.",
            "default": 1
          },
          "maxRequestsPerHost": {
            "title": "Request cap per host",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most HTTP requests sent to one host in this run, counting retries and redirects.",
            "default": 200
          },
          "maxTotalRequests": {
            "title": "Total request cap",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Most HTTP requests sent in this run, counting retries and redirects.",
            "default": 1000
          },
          "maxHosts": {
            "title": "Host cap",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Most different hosts contacted in this run.",
            "default": 25
          },
          "responseBody": {
            "title": "Response body",
            "enum": [
              "inline",
              "keyValueStore",
              "none"
            ],
            "type": "string",
            "description": "Where the cleaned text or JSON body goes. Binary bodies are described by size and hash and are not stored.",
            "default": "inline"
          },
          "maxBodyKb": {
            "title": "Largest response body",
            "minimum": 1,
            "maximum": 1024,
            "type": "integer",
            "description": "A larger body gives a free body_too_large row. At most 256 KB in the dataset row or 1,024 KB in the key-value store.",
            "default": 128
          },
          "pickJsonFields": {
            "title": "JSON fields to pick",
            "type": "array",
            "description": "Dot paths such as data.items.0.id. Their values appear in pickedFields.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}