BlocksAPI & Network
Send API Request
Send an HTTP request to an external API through a rotating proxy.
Send API Request
The Send API Request block allows you to make HTTP requests (GET, POST, PUT, DELETE, etc.) to external APIs. All requests are securely routed through a rotating proxy to avoid rate limits and IP blocking.
Configuration
| Field | Required | Description |
|---|---|---|
| Request Configuration | ✅ | Configuration object containing URL, HTTP Method, Headers, Query Parameters, and Body. |
| Output Variable | ✅ | The variable name to store the response object. |
Request Details
- URL: The full destination URL (must include
http://orhttps://). - Method: The HTTP method (e.g.,
GET,POST,PUT,DELETE). - Headers: Custom HTTP headers.
- Query Parameters: Custom query string parameters.
- Body: Used for
POST,PUT, andPATCH. Can be JSON, Key-Value Form Data, or plain text. - Timeout: The maximum duration to wait for a response (up to 120 seconds).
Output Variable
The specified variable will store an object containing the response:
{
"status_code": 200,
"response_body": { ... },
"response_headers": { "content-type": "application/json" },
"response_cookies": [
{ "name": "session", "value": "xyz123", "secure": true }
]
}Error Handling
MISSING_CONFIG— Triggered when request configuration is not provided.MISSING_URL— Triggered when the request URL is not provided.MISSING_OUTPUT_VAR— Triggered when no output variable is specified.INVALID_METHOD— Triggered if an unsupported HTTP method is used.INVALID_URL— Triggered if the provided URL format is invalid.INVALID_JSON_BODY— Triggered if the JSON body could not be parsed.REQUEST_TIMEOUT— Triggered if the request exceeds the timeout limit.RESPONSE_TOO_LARGE— Triggered if the response size exceeds the 10 MB limit.REQUEST_FAILED— Triggered if an unexpected error occurs during execution.
