{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk HTTP Request API – any method, JSON out – $1/1k",
    "description": "Send many HTTP requests (GET, POST, PUT, PATCH, DELETE) with headers, query params and JSON body in one run. Get status code, timing, key headers and parsed JSON back. Optional Apify Proxy. Works with AI agents via Apify MCP. $1 per 1,000 requests; network errors are free.",
    "version": "0.1",
    "x-build-id": "lszgt9CMEIHN1aehL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/henrycrawl~http-request-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-henrycrawl-http-request-api",
        "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/henrycrawl~http-request-api/runs": {
      "post": {
        "operationId": "runs-sync-henrycrawl-http-request-api",
        "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/henrycrawl~http-request-api/run-sync": {
      "post": {
        "operationId": "run-sync-henrycrawl-http-request-api",
        "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": {
          "requests": {
            "title": "Requests",
            "type": "array",
            "description": "List of requests. Each item is a URL string or an object: {\"url\": \"https://...\", \"method\": \"GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS\", \"headers\": {...}, \"params\": {query parameters}, \"json\": {JSON body} or \"body\": \"raw text body\", \"name\": \"your label\"}. Only public internet addresses are allowed."
          },
          "urls": {
            "title": "Simple GET URLs",
            "type": "array",
            "description": "Optional shortcut: plain GET requests, one URL per line. Added after `requests`.",
            "items": {
              "type": "string"
            }
          },
          "defaultHeaders": {
            "title": "Headers for every request",
            "type": "object",
            "description": "Headers added to every request, e.g. {\"Authorization\": \"Bearer ...\"}. A header set on a single request wins. Values are sent as-is and are not stored in the output."
          },
          "timeoutSecs": {
            "title": "Timeout per request (s)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Seconds to wait for each response (1-120).",
            "default": 30
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retries (0-3, 2-8 s back-off). GET/HEAD/OPTIONS/PUT/DELETE are retried on timeouts, network errors and HTTP 429/502/503/504. POST/PATCH are only retried when the connection never opened or on HTTP 429, so a request the server may have processed is not sent twice (see retryNonIdempotent).",
            "default": 1
          },
          "retryNonIdempotent": {
            "title": "Also retry POST/PATCH on timeouts and 5xx",
            "type": "boolean",
            "description": "Only turn on for APIs where sending the same POST/PATCH twice is harmless (idempotency keys). Off by default to avoid duplicate orders, payments or messages.",
            "default": false
          },
          "maxBodyKb": {
            "title": "Max body size (KB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Response bodies longer than this are cut (truncated=true) and returned as text (1-2000 KB). Reading stops at the limit.",
            "default": 500
          },
          "concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests run at the same time (1-20); at most 5 at once go to the same host. Keep it low for APIs with rate limits.",
            "default": 5
          },
          "forwardHeadersOnRedirect": {
            "title": "Send my headers to redirect targets on other hosts",
            "type": "boolean",
            "description": "Off (default): when a response redirects to a different host, your headers (Authorization, API keys, cookies) are NOT sent there. Turn on only if you trust every redirect target.",
            "default": false
          },
          "includeHeaders": {
            "title": "Return all response headers",
            "type": "boolean",
            "description": "Off: only useful headers (content-type, location, rate-limit, etag, cache-control...). On: every response header.",
            "default": false
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Send requests through Apify Proxy (proxy traffic is billed to your Apify account by Apify). Off = direct from Apify servers.",
            "default": false
          },
          "proxyGroup": {
            "title": "Proxy group",
            "enum": [
              "",
              "RESIDENTIAL"
            ],
            "type": "string",
            "description": "Apify Proxy group when Use Apify Proxy is on."
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Two-letter country code for the proxy exit IP (e.g. US, DE), when Use Apify Proxy is on."
          },
          "maxResults": {
            "title": "Max charged requests",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many requests got a response (each one is a charged result). Error rows are free.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}