{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk HTTP Request Runner (API Caller)",
    "description": "Send a list of HTTP requests (GET, POST, PUT, PATCH, DELETE, HEAD) to the APIs you choose and get one row per request: status, time, final URL and response body (JSON parsed). Encrypted secret headers are masked in all output. Charged per request that gets any HTTP response (4xx/5xx included).",
    "version": "1.0",
    "x-build-id": "tYURyVpGEODq96nBV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dojito~bulk-http-request-runner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dojito-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/dojito~bulk-http-request-runner/runs": {
      "post": {
        "operationId": "runs-sync-dojito-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/dojito~bulk-http-request-runner/run-sync": {
      "post": {
        "operationId": "run-sync-dojito-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": "Each request is sent once; the first 1,000 by default (raise Max requests per run, up to 10,000). Every item: {\"url\": \"https://…\"} plus optional \"method\" (GET, POST, PUT, PATCH, DELETE, HEAD — default GET), \"headers\" {name: value}, \"query\" {name: value or list} (added to the URL), \"json\" (any JSON except null, sent as application/json) or \"body\" (text, sent as is — set Content-Type in headers; without one it goes as application/x-www-form-urlencoded, like curl -d), \"userData\" (anything, copied to the row so you can match results). A plain URL string is a GET."
          },
          "secretHeaders": {
            "title": "Secret headers (API keys, tokens)",
            "type": "string",
            "description": "Optional JSON object, stored encrypted by Apify. {\"Authorization\": \"Bearer …\", \"X-Api-Key\": \"…\"} is sent with every request; {\"api.example.com\": {\"Authorization\": \"Bearer …\"}} only to that host. The values are replaced by *** in every row, the run report, callbacks and the log — also where an API echoes them back, as is or escaped. They are not sent on after a redirect to another host or port, or from https to http. Values must be at least 4 characters."
          },
          "defaultHeaders": {
            "title": "Headers for every request",
            "type": "object",
            "description": "Optional, e.g. {\"Accept\": \"application/json\"}. A request's own headers win over these; secret headers win over both. Host, Content-Length, Connection, Cookie and similar headers cannot be set (no browser sessions: use the API's key or token header)."
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Give up on a request after this long, redirects and the one retry included. A request that times out gets errorType timeout and is not charged.",
            "default": 30
          },
          "maxResponseKB": {
            "title": "Max response body (KB)",
            "minimum": 1,
            "maximum": 5120,
            "type": "integer",
            "description": "Keep at most this much of each response body (after gzip is unpacked). Longer bodies are cut, truncated is true, and a cut JSON body is given as text.",
            "default": 512
          },
          "includeResponseHeaders": {
            "title": "Include response headers",
            "type": "boolean",
            "description": "Add a responseHeaders object (lower-case names) to every row.",
            "default": false
          },
          "followRedirects": {
            "title": "Follow redirects",
            "type": "boolean",
            "description": "Follow up to 5 redirects (each target is checked again). Off: the 3xx response itself is the row (turn on response headers to see Location).",
            "default": true
          },
          "callbackUrl": {
            "title": "Callback URL",
            "type": "string",
            "description": "Optional, e.g. an n8n / Make / Zapier webhook. Each row is also POSTed there as JSON after it is saved (30 s timeout, one retry after 429/503; failures are listed in the run report). Checked like any request (public address, not on the never-call list). Stored encrypted and masked in the output."
          },
          "maxItems": {
            "title": "Max requests per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Only the first this many requests of the list are sent (protects you from an accidentally huge list). How many were left out is in the run report (overMaxItems) and the status message.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Requests at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Requests in flight at the same time, over all hosts (1-10).",
            "default": 10
          },
          "maxConcurrencyPerHost": {
            "title": "Requests at once per host",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "1 or 2 per host name (http/https and ports of one host count as one). Use 1 for APIs that allow one call at a time.",
            "default": 2
          },
          "delayMsPerHost": {
            "title": "Pause between requests to one host (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional spacing for rate-limited APIs, e.g. 1000 = at most one request per second to each host.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}