
Apify Proxy
Pricing
$9.00/month + usage
Go to Store

Apify Proxy
wraps your api with apify proxy to avoid detection and any rate limits, making any api unlimited rate
5.0 (1)
Pricing
$9.00/month + usage
0
Total users
1
Monthly users
1
Runs succeeded
>99%
Last modified
7 days ago
API Proxy Actor
wraps your api with apify proxy to avoid detection and any rate limits, making any api unlimited
Input Schema
The actor accepts the following input parameters:
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
api_url | string | The URL of the API to call | Yes | - |
method | string | HTTP method (GET, POST, PUT, DELETE, PATCH) | Yes | GET |
headers | object | HTTP headers for the request | No | {} |
body | object | Request body for POST/PUT/PATCH requests | No | null |
use_apify_proxy | boolean | Whether to use Apify proxy | No | true |
proxy_groups | array | Proxy groups to use (RESIDENTIAL, DATACENTER) | No | ["RESIDENTIAL"] |
country_code | string | Country code for proxy | No | "US" |
custom_proxy | string | Custom proxy URL if not using Apify proxy | No | null |
max_retries | integer | Maximum number of retry attempts | No | 3 |
timeout_seconds | integer | Request timeout in seconds | No | 30 |
Example Input
{"api_url": "https://v2.jokeapi.dev/joke/Any","method": "GET","headers": {"Accept": "application/json"},"use_apify_proxy": true,"proxy_groups": ["RESIDENTIAL"],"country_code": "US","max_retries": 3,"timeout_seconds": 30}
Output Schema
The actor returns the following output structure:
Field | Type | Description |
---|---|---|
status | integer | HTTP status code of the response |
result | object/string | Response body (parsed JSON or raw text) |
error | string | Error message if request failed |
Example Output
Successful response:
{"status": 200,"result": {"setup": "Why don't scientists trust atoms?","delivery": "Because they make up everything!","type": "twopart"},"error": null}
Error response:
{"status": null,"result": null,"error": "Failed to connect to the API after 3 attempts"}