# HTTP Request (`parsebird/http-request-actor`) Actor

Send HTTP requests (GET, POST, PUT, PATCH, DELETE) to any API endpoint with customizable headers, parameters, and body data. Forward responses via callback URL. Perfect for Clay users and no-code API integrations.

- **URL**: https://apify.com/parsebird/http-request-actor.md
- **Developed by:** [ParseBird](https://apify.com/parsebird) (community)
- **Categories:** Agents, AI, Developer tools
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 http request sents

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### HTTP Request

Send HTTP requests (GET, POST, PUT, PATCH, DELETE) to any API endpoint from the Apify platform. Customize headers, query parameters, and request body. Forward responses to a callback URL for Clay and no-code integrations.

<table><tr>
<td style="border-left:4px solid #2563EB;padding:12px 16px;font-weight:600">Send any HTTP request from the cloud — GET, POST, PUT, PATCH, DELETE — with custom headers, query params, and JSON body. Forward responses to webhook URLs for Clay, Make, or Zapier.</td>
</tr></table>

<br>

<table>
<tr>
<td colspan="3" style="padding:10px 14px;background:#2563EB;border:none;border-radius:4px 4px 0 0">
<span style="color:#FFFFFF;font-size:14px;font-weight:700;letter-spacing:0.5px">ParseBird Infra Suite</span>
<span style="color:#BFDBFE;font-size:13px">&nbsp;&nbsp;&bull;&nbsp;&nbsp;Utility tools for data pipelines</span>
</td>
</tr>
<tr>
<td style="padding:10px 14px;border:1px solid #E7E5E4;border-radius:0 0 0 4px;border-right:none;border-top:none;vertical-align:top;width:33%;background:#DBEAFE">
&#128279; &nbsp;<a href="https://apify.com/parsebird/http-request-actor" style="color:#2563EB;text-decoration:none;font-weight:700;font-size:13px">HTTP Request</a><br>
<span style="color:#2563EB;font-size:11px;font-weight:600">&#10148; You are here</span>
</td>
<td style="padding:10px 14px;border:1px solid #E7E5E4;border-right:none;border-top:none;vertical-align:top;width:33%">
&#128218; &nbsp;<a href="https://apify.com/parsebird/dataset-deduplicator" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Data Deduplicator</a><br>
<span style="color:#78716C;font-size:11px">Merge & deduplicate datasets by any field</span>
</td>
<td style="padding:10px 14px;border:1px solid #E7E5E4;border-radius:0 0 4px 0;border-top:none;vertical-align:top;width:33%">
&#128481; &nbsp;<a href="https://apify.com/parsebird/data-cleaner" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Data Cleaner</a><br>
<span style="color:#78716C;font-size:11px">Clean nulls, normalize case, format phones & emails</span>
</td>
</tr>
</table>

##### Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

````

parsebird/http-request-actor on Apify. Call: ApifyClient("TOKEN").actor("parsebird/http-request-actor").call(run\_input={...}), then client.dataset(run\["defaultDatasetId"]).list\_items().items for results. Key inputs: method (string, "GET"/"POST"/"PUT"/"PATCH"/"DELETE", default "GET"), url (string, required), headers (object, optional), params (object, optional), data (object, optional — request body for POST/PUT/PATCH), callbackUrl (string, optional — forwards response as POST), lookupKey (string, optional — identifier for Clay row matching). Full actor spec: fetch build via GET https://api.apify.com/v2/acts/parsebird~http-request-actor (Bearer TOKEN). Get token: https://console.apify.com/account/integrations

````

### What does HTTP Request do?

This Actor sends an HTTP request to any API endpoint and returns the full response — status code, headers, and parsed body — as structured data in an Apify dataset. It supports all common HTTP methods: GET, POST, PUT, PATCH, and DELETE.

Key features:

- **Any HTTP method** — GET for fetching data, POST for creating resources, PUT/PATCH for updates, DELETE for removal
- **Custom headers** — pass Authorization tokens, API keys, Content-Type, or any custom header
- **Query parameters** — append URL query parameters without manually building the URL string
- **JSON request body** — send structured data with POST, PUT, and PATCH requests
- **Callback URL** — forward the full response to a webhook endpoint (Clay, Make, Zapier, n8n)
- **Lookup key** — tag each response with an identifier for row-level matching in Clay tables

### Why use this instead of Clay's built-in HTTP?

Clay's Explorer plan limits you to 25 credits/month for HTTP requests. At scale this means:

| Scenario | Clay Explorer | This Actor |
|----------|--------------|------------|
| 1,000 API calls/month | $200+/mo plan required | **$5.00 total** |
| 10,000 API calls/month | $800+/mo plan required | **$50.00 total** |
| 50,000 API calls/month | Custom enterprise pricing | **$250.00 total** |

By offloading HTTP requests to this Actor, you can stay on Clay's cheaper plan and save hundreds of dollars per month.

### Input parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `method` | string | No | `GET` | HTTP method: GET, POST, PUT, PATCH, or DELETE |
| `url` | string | **Yes** | — | Full URL to send the request to |
| `headers` | object | No | `{}` | Custom request headers (e.g. `{"Authorization": "Bearer ..."}`) |
| `params` | object | No | `{}` | URL query parameters (e.g. `{"page": "1", "limit": "50"}`) |
| `data` | object | No | — | JSON request body for POST, PUT, and PATCH |
| `callbackUrl` | string | No | — | Webhook URL to forward the full response as a POST |
| `lookupKey` | string | No | — | Identifier to include in the response for row matching |

### Output example

```json
{
    "data": {
        "id": 12345,
        "name": "John Doe",
        "email": "john@example.com"
    },
    "status": 200,
    "statusText": "OK",
    "headers": {
        "content-type": "application/json",
        "x-request-id": "abc-123"
    },
    "lookupKey": "row-42"
}
````

### How to use with Clay

1. In your Clay table, add a new column → **Run Actor**
2. Select **parsebird/http-request-actor**
3. Map your API URL column to the `url` input
4. Set `method` to `POST` and map your request body to `data`
5. Optionally set `lookupKey` to your row ID column for matching
6. Run the enrichment — responses appear as structured JSON in your table

### How to use via API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("parsebird/http-request-actor").call(run_input={
    "method": "GET",
    "url": "https://api.example.com/users",
    "headers": {"Authorization": "Bearer YOUR_TOKEN"},
    "params": {"limit": "100"},
})

results = client.dataset(run["defaultDatasetId"]).list_items().items
print(results[0]["data"])
```

**cURL**

```bash
curl -X POST "https://api.apify.com/v2/acts/parsebird~http-request-actor/runs?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "POST",
    "url": "https://api.example.com/leads",
    "headers": {"Authorization": "Bearer API_KEY"},
    "data": {"name": "Jane", "email": "jane@co.com"}
  }'
```

### How it works

1. Reads input configuration (method, URL, headers, params, body)
2. Sends the HTTP request using `httpx` with a 120-second timeout
3. Parses the response — JSON bodies are parsed automatically, text bodies are stored as strings
4. Saves the full result (data, status, statusText, headers, lookupKey) to the dataset
5. If a callback URL is provided, forwards the result as a POST request

### Pricing

This Actor uses a pay-per-event pricing model.

| Event | Price per event | Price per 1,000 |
|-------|----------------|-----------------|
| `http-request-sent` | $0.005 | **$5.00** |

Each HTTP request sent counts as one billable event. Platform compute costs are additional.

### Integrations

This Actor works with any system that can trigger Apify runs: Clay, Make (Integromat), Zapier, n8n, custom scripts, and the Apify API.

# Actor input Schema

## `method` (type: `string`):

HTTP method to use for the request.

## `url` (type: `string`):

The full URL to send the request to (e.g. https://api.example.com/data).

## `headers` (type: `object`):

Custom HTTP headers to include in the request (e.g. Authorization, Content-Type).

## `params` (type: `object`):

URL query parameters to append to the request URL.

## `data` (type: `object`):

Data to send as the JSON request body. Used with POST, PUT, and PATCH methods.

## `callbackUrl` (type: `string`):

A URL to which the full API response will be forwarded as a POST request. Useful for Clay webhook integrations.

## `lookupKey` (type: `string`):

Optional identifier for matching the response to the original row in a Clay workflow or other external system.

## Actor input object example

```json
{
  "method": "GET",
  "url": "https://httpbin.org/get",
  "headers": {},
  "params": {}
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://httpbin.org/get"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parsebird/http-request-actor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "url": "https://httpbin.org/get" }

# Run the Actor and wait for it to finish
run = client.actor("parsebird/http-request-actor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://httpbin.org/get"
}' |
apify call parsebird/http-request-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parsebird/http-request-actor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "HTTP Request",
        "description": "Send HTTP requests (GET, POST, PUT, PATCH, DELETE) to any API endpoint with customizable headers, parameters, and body data. Forward responses via callback URL. Perfect for Clay users and no-code API integrations.",
        "version": "1.1",
        "x-build-id": "kF0SVw0GgbMcPbegj"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parsebird~http-request-actor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parsebird-http-request-actor",
                "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/parsebird~http-request-actor/runs": {
            "post": {
                "operationId": "runs-sync-parsebird-http-request-actor",
                "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/parsebird~http-request-actor/run-sync": {
            "post": {
                "operationId": "run-sync-parsebird-http-request-actor",
                "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": [
                    "url"
                ],
                "properties": {
                    "method": {
                        "title": "HTTP Method",
                        "enum": [
                            "GET",
                            "POST",
                            "PUT",
                            "PATCH",
                            "DELETE"
                        ],
                        "type": "string",
                        "description": "HTTP method to use for the request.",
                        "default": "GET"
                    },
                    "url": {
                        "title": "URL",
                        "type": "string",
                        "description": "The full URL to send the request to (e.g. https://api.example.com/data)."
                    },
                    "headers": {
                        "title": "Headers",
                        "type": "object",
                        "description": "Custom HTTP headers to include in the request (e.g. Authorization, Content-Type).",
                        "default": {}
                    },
                    "params": {
                        "title": "Query Parameters",
                        "type": "object",
                        "description": "URL query parameters to append to the request URL.",
                        "default": {}
                    },
                    "data": {
                        "title": "Request Body",
                        "type": "object",
                        "description": "Data to send as the JSON request body. Used with POST, PUT, and PATCH methods."
                    },
                    "callbackUrl": {
                        "title": "Callback URL",
                        "type": "string",
                        "description": "A URL to which the full API response will be forwarded as a POST request. Useful for Clay webhook integrations."
                    },
                    "lookupKey": {
                        "title": "Lookup Key",
                        "type": "string",
                        "description": "Optional identifier for matching the response to the original row in a Clay workflow or other external system."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
