Free API · No key
Proxy tester API and IP API
Two public endpoints, no key: POST /api/v1/tools/proxy-test runs the same test as the proxy tester and answers JSON or streams NDJSON events, and GET /api/v1/ip returns the caller's IP. Both live under https://api.arcproxy.cloud/api/v1. This page lists every field, every error code with a fix, the limits, and examples you can paste.
Reviewed 2 Nov 2026
curl -s https://api.arcproxy.cloud/api/v1/tools/proxy-test \ -H "Content-Type: application/json" \ -d '{"proxy": "USERNAME:PASSWORD@203.0.113.10:8080", "samples": 5}'Reference
Reference
Request: POST /api/v1/tools/proxy-test
A JSON body. Only proxy is required. The test opens fresh connections from ARC's server through the proxy to a fixed ARC test endpoint and measures them; the password is never logged, stored or echoed back.
| Field | Type | Default | Notes |
|---|---|---|---|
proxy | string | required | host:port, host:port:user:pass or user:pass@host:port, optionally with http://, socks5:// or socks5h:// in front |
protocol | auto · http · socks5 | auto | A scheme inside proxy wins. auto tries HTTP CONNECT, then SOCKS5 |
samples | integer 1–10 | 5 | Sequential fresh connections. Three or more are needed to call a proxy sticky |
speed | boolean | false | Also run a download test |
speed_mb | number 0.1–10 | 5 | Megabytes to download, within a budget of about 10 seconds. Below 1 gives a quick, rough figure |
ping | boolean | false | The cheap mode for long lists: one connection, latency only, no direct baseline, far less than 1 MB. Forces samples: 1 and speed: false, and has its own, larger rate budget |
stream | boolean | false | true answers application/x-ndjson: one JSON event per line |
Result fields
With stream: false the response is this object. With stream: true it arrives in the final done event. Every geo field can be null when the database has no answer.
| Field | Type | Meaning |
|---|---|---|
ok | boolean | At least one sample went through |
error | object · null | {code, message} when ok is false; codes below |
proxy | object | host, port, scheme actually used (http or socks5), auto_detected, auth (credentials were supplied, never the credentials), resolved_ip |
exit | object · null | From the first successful sample: ip, ip_version, country (ISO code), country_name, city, asn, org |
latency | object · null | samples, ok, failed, success_rate, min_ms, median_ms, avg_ms, p95_ms, max_ms, jitter_ms (standard deviation), phases_median_ms, rating |
latency.phases_median_ms | object | Median dns, tcp, tunnel, tls, ttfb of a fresh connection, in ms |
latency.rating | string | On the median total: excellent under 800 ms, good under 1,500, fair under 3,000, else poor |
samples[] | array | One per attempt, in order: index, ok, ip, total_ms, the five *_ms phases, error |
rotation | object | distinct_ips and mode: rotating (two or more IPs), sticky (one IP over three or more samples) or unknown |
headers | object | anonymity (elite, anonymous, transparent, unknown), revealing (header names seen, e.g. via), x_forwarded_for_observable |
baseline | object · null | direct_ms: our own direct request; overhead_ms: the proxy's median minus that |
speed | object · null | When speed was requested: ok, mbps, megabytes, seconds, ttfb_ms, peak_mbps, rating (excellent from 50 Mbps, good from 20, fair from 5, else poor), error |
ping | boolean | true when the test ran in ping mode; baseline and speed are then null and headers.x_forwarded_for_observable is false |
target | object | The fixed test endpoint and a note on where the measurement runs |
tested_at, duration_ms | string, integer | ISO 8601 time of the test and how long it took |
Streaming events
With stream: true the response is NDJSON: one JSON object per line, flushed as the test runs. Split on newlines and keep any unfinished line for the next chunk. The last event is always done.
| Event | Fields | When |
|---|---|---|
start | proxy (as in the result; resolved_ip may still be null) | Once, first |
baseline | direct_ms | After our direct request; omitted if it failed, and in ping mode |
detected | scheme | Once, only with protocol: auto, right before the first sample |
sample | index, sample | After each sample |
speed_progress | bytes, seconds, mbps (running average) | About every 250 ms during the download |
done | result | Last, on every normal run |
error | error (code, message) | Only if the server itself fails mid-run; no done follows |
A test stops early when retrying cannot help: after an authentication, DNS, blocked-address or protocol failure, after 2 consecutive connect failures, or after 3 consecutive failures of any other kind. samples can therefore hold fewer entries than requested; latency.samples is the number actually attempted.
Error codes in a result
A proxy that does not work is not an HTTP error: the answer is 200 with ok: false and one of these codes in error.code. The same codes appear on individual samples, so a proxy can work with some samples failing.
| Code | Meaning | Fix |
|---|---|---|
dns_failed | The proxy's hostname did not resolve to an address. | Check the spelling of the host, or use the IP address your provider lists. |
connect_timeout | Nothing accepted a connection on that host and port in time. The server may be down, or a firewall drops the packets. | Check the port, and whether your provider requires your IP to be allow-listed before it accepts connections. |
connect_failed | The host answered but refused the connection on that port, so no proxy is listening there. | Check the port number. Many providers use different ports for HTTP and SOCKS5. |
connection_reset | The proxy closed the connection in the middle of the exchange. | Run the test again. If it repeats, the proxy or its upstream exit is overloaded or dropping clients. |
auth_required | The proxy answered 407 Proxy Authentication Required and no credentials were sent. | Add them as host:port:user:pass or user:pass@host:port. |
auth_failed | The proxy answered 407 to the username and password that were sent. | Copy the username and password again from your provider. Check for a trailing space, and for an expired plan or used-up balance. |
proxy_refused | The proxy accepted the login but answered the CONNECT request with an error status, so it would not open a tunnel to the test endpoint. | Some proxies only allow certain destinations or ports. Check your provider's allow-list and plan settings. |
protocol_mismatch | Something answered on that port, but it spoke neither HTTP proxy nor SOCKS5. | Check the port. If it is a SOCKS4 or HTTPS-only proxy, the tester cannot use it. |
tls_failed | The tunnel opened, but the TLS handshake with the test endpoint through it did not complete. Some proxies intercept HTTPS. | Try SOCKS5 if the provider offers it. A proxy that breaks TLS will break HTTPS sites for you too. |
timeout | The proxy accepted the connection but did not finish the request in time. | Run again with more samples. A proxy that times out now and then is overloaded or its exit is unstable. |
bad_response | The request went through but what came back was not the test endpoint's answer, for example an error page inserted by the proxy. | The proxy is altering traffic. Check its settings or ask the provider. |
HTTP errors
Errors share the envelope of the rest of /api/v1/: {"error": {"type": "...", "message": "...", "param": "proxy", "docs_url": "..."}}. param names the field when one is at fault.
| Status | `error.type` | Cause | What to do |
|---|---|---|---|
| 400 | invalid_request_error | Unparseable proxy, a field out of range, or a private, loopback, link-local or reserved address, or a port that is never a proxy | Fix the field named in param; the message says what is wrong |
| 429 | rate_limit_error | Over a per-IP limit | Wait the seconds in Retry-After, then retry |
| 503 | upstream_error | All test slots are busy | Wait the seconds in Retry-After, then retry |
Limits
Per client IP. Pings have a separate budget and slot pool from full tests, so a list of about 1,000 proxies fits into a few minutes of pings. The numbers can change: read Retry-After (exposed to browsers through CORS) and error.message rather than hard-coding them.
| Request | Per minute | Per hour | At once |
|---|---|---|---|
| Full test | 10 | 60 | 3 |
Speed test (speed: true) | – | 20, counted separately | – |
Ping (ping: true) | 300 | 1,500 | 8 |
GET /api/v1/ip | 120 | – | – |
What the test deliberately cannot do
- It cannot be pointed at a target. The destination is a fixed ARC endpoint; only the proxy is yours.
- It refuses proxies on private, loopback, link-local and reserved addresses, and a short list of ports that are never a proxy, such as SSH, SMTP and databases.
- Latency and speed are measured from ARC's servers, so they describe the proxy's path to the test endpoint, not to your target site.
GET /api/v1/ip: the IP endpoint
Returns the caller's public IP. Plain text by default (198.51.100.23 and a newline). With ?format=json: ip, version, country, country_name, city, asn, org; geo fields are null when the lookup has no answer. CORS is open to every origin. Examples in four languages are on what is my IP.
Geolocation is by DB-IP under CC BY 4.0: a page that shows these fields must link to db-ip.com.
Examples
Test a proxy from code
One request, the whole result as JSON. Replace the placeholder proxy with yours; a proxy that fails comes back as ok: false, not as an exception.
curl -s https://api.arcproxy.cloud/api/v1/tools/proxy-test \ -H "Content-Type: application/json" \ -d '{"proxy": "USERNAME:PASSWORD@203.0.113.10:8080", "samples": 5}'Ping a list
Check hundreds of proxies for latency
ping: true is one connection per proxy, far less than 1 MB, on its own rate budget. Keep a few requests in flight and honour Retry-After; the result has the same shape, with median_ms as the one sample's total time.
# proxies.txt: one proxy per line. Needs jq. One ping at a time;# prints line number, ok/fail, total ms and the error code.n=0while IFS= read -r proxy; do n=$((n + 1)); [ -z "$proxy" ] && continue curl -s https://api.arcproxy.cloud/api/v1/tools/proxy-test \ -H "Content-Type: application/json" \ -d "$(jq -nc --arg p "$proxy" '{proxy: $p, ping: true}')" | jq -r --arg n "$n" 'if .error.type then "\($n)\tlimited\t\(.error.message)" else [$n, (if .ok then "ok" else "fail" end), (.latency.median_ms // "-"), (.error.code // "")] | @tsv end'done < proxies.txtStreaming
Read the test as it runs
Add stream: true and read the body line by line. This is what the tester on this site does; it is how a long speed test can show progress.
{"event":"start","proxy":{"host":"203.0.113.10","port":8080,"scheme":null,"auto_detected":false,"auth":true,"resolved_ip":null}}{"event":"baseline","direct_ms":61}{"event":"detected","scheme":"http"}{"event":"sample","index":0,"sample":{"index":0,"ok":true,"ip":"198.51.100.23","total_ms":455,"dns_ms":0,"tcp_ms":21,"tunnel_ms":160,"tls_ms":120,"ttfb_ms":154,"error":null}}{"event":"sample","index":1,"sample":{"index":1,"ok":false,"ip":null,"total_ms":null,"error":{"code":"timeout","message":"..."}}}{"event":"speed_progress","bytes":1048576,"seconds":0.31,"mbps":27.1}{"event":"done","result":{"ok":true, ...}}# -N prints each event as it arrivescurl -sN https://api.arcproxy.cloud/api/v1/tools/proxy-test \ -H "Content-Type: application/json" \ -d '{"proxy": "USERNAME:PASSWORD@203.0.113.10:8080", "samples": 5, "speed": true, "stream": true}'FAQ
Questions
Something not covered? Write to contact@arcproxies.io.
Do I need an API key for the proxy tester API?
No. Both endpoints are public and need no key or account. They are limited per client IP instead: 10 tests a minute, 60 an hour and 3 at once for the proxy test, and 120 a minute for the IP endpoint.
Is a proxy that does not work an HTTP error?
No. The answer is 200 with ok set to false and a code in error.code, such as auth_failed or connect_timeout. HTTP errors are reserved for bad input (400), rate limits (429) and a full service (503).
Can I choose the URL the proxy is tested against?
No. The destination is a fixed ARC test endpoint, so the API cannot be used to send traffic to third-party sites. Test your target site yourself once you know the proxy works.
Should I use the JSON or the streaming response?
Use JSON from scripts that only need the verdict. Use stream: true when a person is watching, or when you want to stop early: the samples arrive one by one and the final done event carries the same result object as the JSON response.
How do I check a long proxy list through the API?
Send each proxy with ping: true. A ping is one connection that costs far less than 1 MB, and pings have their own budget of 300 a minute, 1,500 an hour and 8 at once per client IP. Keep a few requests in flight, and when a 429 arrives wait the seconds in Retry-After and carry on.
What should my code do on a 429?
Wait the number of seconds in the Retry-After header, then send the request again. Do not retry in a tight loop: each attempt counts against the same per-IP limit.
Are proxy credentials stored when I call the API?
No. The proxy password is never logged, stored or echoed. The result says only whether credentials were supplied (proxy.auth). Send requests over HTTPS.
Where it is measured
Latency and speed are measured from ARC's test servers to your proxy and back; they describe the proxy's own path, not your target site.
Geolocation
IP geolocation by DB-IP, licensed under CC BY 4.0. Country, city and network are estimates from that database.
From ARC
ARC sells residential, ISP and mobile proxies by the gigabyte, with no subscription, and the bandwidth never expires. The tools work the same for every provider's proxies, ours included. See pricing
Sources & review
Last reviewed by the ARC Proxies team. Ratings and limits are the ones the test service applies.
- [1]IETF: RFC 9110: HTTP Semantics (CONNECT, 407, Retry-After)
- [2]IETF: RFC 1928: SOCKS Protocol Version 5
- [3]NDJSON: Newline delimited JSON
- [4]DB-IP: IP geolocation databases (CC BY 4.0)
Related