{
  "openapi": "3.0.1",
  "info": {
    "title": "HTTP Request Runner – Bulk API Calls for n8n, Make & Zapier",
    "description": "Send bulk HTTP/API requests (GET, POST, PUT, PATCH, DELETE) from a list or a URL/JSON template filled from a dataset, CSV or Google Sheet. Concurrency, rate limits, retries, pagination, JSON pick. $0.50 per 1,000 successful requests; failed ones are free.",
    "version": "0.1",
    "x-build-id": "ddWawPIzb39MsA1fc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~http-request-runner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-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/gazidev~http-request-runner/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-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/gazidev~http-request-runner/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-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",
        "properties": {
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "One request per URL, using the shared method, headers and body below. Use `{{field}}` placeholders to fill URLs from template rows (values are URL-encoded; `{{{field}}}` inserts raw).",
            "items": {
              "type": "string"
            }
          },
          "requests": {
            "title": "Requests (advanced)",
            "type": "array",
            "description": "Full request objects: `{\"url\", \"method\", \"headers\", \"query\", \"json\" or \"body\", \"label\"}`. Missing fields fall back to the shared settings below. Placeholders work in every field."
          },
          "method": {
            "title": "Method (shared)",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE",
              "HEAD",
              "OPTIONS"
            ],
            "type": "string",
            "description": "Used for `urls` and for request objects without a method.",
            "default": "GET"
          },
          "headers": {
            "title": "Headers (shared)",
            "type": "object",
            "description": "E.g. `{\"Authorization\": \"Bearer YOUR_TOKEN\", \"Accept\": \"application/json\"}`. Values can use `{{field}}`."
          },
          "queryParams": {
            "title": "Query parameters (shared)",
            "type": "object",
            "description": "Added to every URL, e.g. `{\"page\": 1, \"q\": \"{{keyword}}\"}`."
          },
          "jsonBody": {
            "title": "JSON body (shared)",
            "type": "object",
            "description": "Sent as `application/json`. A string that is exactly `\"{{field}}\"` becomes the row's native value (number, list, object)."
          },
          "body": {
            "title": "Raw body (shared)",
            "type": "string",
            "description": "Raw text body (form data, XML, GraphQL...) used when no JSON body is set. Set the Content-Type header yourself; defaults to JSON if it starts with `{`/`[`, else text/plain."
          },
          "datasetId": {
            "title": "Template rows: Apify dataset",
            "type": "string",
            "description": "Send one request per dataset item, filling `{{field}}` placeholders (dot paths like `{{address.city}}` work). Several IDs can be comma-separated."
          },
          "csvUrl": {
            "title": "Template rows: CSV / Google Sheet URL",
            "type": "string",
            "description": "Public CSV link or a Google Sheets link (shared as 'anyone with the link'). Column names become `{{placeholders}}`."
          },
          "templateRows": {
            "title": "Template rows: inline JSON",
            "type": "array",
            "description": "E.g. `[{\"id\": 1}, {\"id\": 2}]`. Every row x every request = one call."
          },
          "pick": {
            "title": "Pick fields from JSON responses",
            "type": "object",
            "description": "`{\"outputName\": \"$.path\"}`. Paths: `$.data.id`, `items[0].name`, `items[*].id` (list). Saved in the `picked` column."
          },
          "saveBodyTo": {
            "title": "Save response body to",
            "enum": [
              "dataset",
              "kv",
              "none"
            ],
            "type": "string",
            "description": "Use the key-value store for large, HTML or binary responses.",
            "default": "dataset"
          },
          "maxBodyChars": {
            "title": "Max body characters in dataset",
            "minimum": 0,
            "type": "integer",
            "description": "Longer bodies are truncated (`bodyTruncated: true`). JSON is kept parsed only if it fits.",
            "default": 20000
          },
          "includeResponseHeaders": {
            "title": "Include response headers",
            "type": "boolean",
            "description": "Adds a `responseHeaders` object.",
            "default": true
          },
          "includeInputRow": {
            "title": "Include template row",
            "type": "boolean",
            "description": "Copies the template row into an `input` column so you can join results back.",
            "default": true
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Requests in flight at once.",
            "default": 10
          },
          "maxRequestsPerSecondPerHost": {
            "title": "Max requests per second per host",
            "minimum": 0,
            "type": "number",
            "description": "Rate limit per hostname (0 = unlimited). Respect the API's limits.",
            "default": 5
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries on network errors, timeouts, 408, 425, 429 and 5xx with exponential backoff; `Retry-After` is honored (max 60 s).",
            "default": 3
          },
          "timeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Per attempt.",
            "default": 30
          },
          "followRedirects": {
            "title": "Follow redirects",
            "type": "boolean",
            "description": "Up to 10 redirects. Every hop is checked by the SSRF protection.",
            "default": true
          },
          "maxResponseBytes": {
            "title": "Max response size (bytes)",
            "minimum": 1000,
            "maximum": 50000000,
            "type": "integer",
            "description": "Reading stops at this size (`responseTruncated: true`).",
            "default": 5000000
          },
          "maxRequests": {
            "title": "Max requests",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit on requests (rows x request templates). Pages from pagination are extra.",
            "default": 1000
          },
          "maxPagesPerRequest": {
            "title": "Max pages per request",
            "minimum": 1,
            "type": "integer",
            "description": "> 1 turns on pagination. Each page is its own row and its own charge.",
            "default": 1
          },
          "paginationNextPath": {
            "title": "Next page path (JSON)",
            "type": "string",
            "description": "Path to the next-page URL or cursor in the JSON response, e.g. `$.next`, `$.links.next`, `$.meta.next_cursor`."
          },
          "paginationCursorParam": {
            "title": "Cursor query parameter",
            "type": "string",
            "description": "If set, the value found at the path is sent in this query parameter (e.g. `cursor`, `page_token`) instead of being used as a URL."
          },
          "followLinkHeader": {
            "title": "Follow Link: rel=\"next\" header",
            "type": "boolean",
            "description": "GitHub-style pagination.",
            "default": false
          },
          "forwardWebhookUrl": {
            "title": "Forward each result to webhook",
            "type": "string",
            "description": "Optional. Every result row is POSTed as JSON to this URL (e.g. an n8n / Make / Zapier webhook). Best effort, not retried."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}