Apify Proxy avatar
Apify Proxy

Pricing

$9.00/month + usage

Go to Store
Apify Proxy

Apify Proxy

Developed by

Maged

Maged

Maintained by Community

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:

ParameterTypeDescriptionRequiredDefault
api_urlstringThe URL of the API to callYes-
methodstringHTTP method (GET, POST, PUT, DELETE, PATCH)YesGET
headersobjectHTTP headers for the requestNo{}
bodyobjectRequest body for POST/PUT/PATCH requestsNonull
use_apify_proxybooleanWhether to use Apify proxyNotrue
proxy_groupsarrayProxy groups to use (RESIDENTIAL, DATACENTER)No["RESIDENTIAL"]
country_codestringCountry code for proxyNo"US"
custom_proxystringCustom proxy URL if not using Apify proxyNonull
max_retriesintegerMaximum number of retry attemptsNo3
timeout_secondsintegerRequest timeout in secondsNo30

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:

FieldTypeDescription
statusintegerHTTP status code of the response
resultobject/stringResponse body (parsed JSON or raw text)
errorstringError 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"
}