PerimeterX challenge solver API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
EverySolve's PerimeterX challenge API returns cookie values for your challenge workflow.PerimeterX, now part of HUMAN Security, is a page-level application-protection flow rather than an embedded checkbox. It returns cookie passage for the protected session, not a form token or a property listing from a protected site.
Send POST https://api.everyinfra.com/api/v1/captcha with type set to perimeterx. Put the parameters in the request body, at the same level as type. $3.06 per 1,000 successful solutions ($0.003056 per successful solve). Failed calls and empty results are not charged.
AI prompt
#Help me write a script that calls the EveryInfra "PerimeterX challenge" API.
API contract:
- Request: POST https://api.everyinfra.com/api/v1/captcha with the header Authorization: Bearer <API Key>. Read the key from the EVERYINFRA_API_KEY environment variable; do not put it in the code.
- In the request body, set type to perimeterx and put the parameters next to it at the same level.
- Required parameters:
- website_url: The exact page where this challenge appears, including the relevant path rather than only the site home page.
- proxy: The proxy for the solve session; when a result is network-bound, use the same exit for the subsequent target request.
- Optional parameters:
- user_agent: The browser user agent for this challenge session; keep it consistent when the returned result is bound to that session.
- website_key: The public site or widget key copied from this exact target integration; it is not a secret key.
- Example request body:
{
"type": "perimeterx",
"website_url": "<website_url>",
"proxy": "<proxy>"
}
- Billing: $3.06 per 1,000 successful solutions ($0.003056 per successful solve). Failed calls and empty results are not charged.
- On 422, fix the parameters using the suggestions and allowed values in the error. On 429 or 503, wait for Retry-After and try again.
Before writing code, ask me how many items I need to process and what format to save the results in, then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
type | body | string | Yes | perimeterx | CAPTCHA type, fixed value. |
website_url | body | string | Yes | - | The exact page where this challenge appears, including the relevant path rather than only the site home page. |
proxy | body | string | Yes | - | The proxy for the solve session; when a result is network-bound, use the same exit for the subsequent target request. |
user_agent | body | string | No | - | The browser user agent for this challenge session; keep it consistent when the returned result is bound to that session. |
website_key | body | string | No | - | The public site or widget key copied from this exact target integration; it is not a secret key. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/captcha' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "perimeterx",
"website_url": "<website_url>",
"proxy": "<proxy>"
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "type": "perimeterx", "solution": { "cookie": "…" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Where the PerimeterX challenge parameters come from
#Use website_url with the same proxy that will consume the result; user_agent and website_key apply only when the target exposes them.
Code to find these values on the page
({appId: window._pxAppId, vid: window._pxVid, uuid: window._pxUuid, host: window._pxHostUrl, jsClient: window._pxJsClientSrc, firstParty: window._pxFirstPartyEnabled, mobile: window._pxMobile})
appId: "PXHYx10rg3" hostUrl: "/HYx10rg3/xhr" jsClient: "/HYx10rg3/init.js" firstParty: true uuid: "cce30591-a3d2-11f1-8eac-300ab9bc7c1b"
window._pxAppId || (document.documentElement.innerHTML.match(/PX[A-Za-z0-9]{8,10}/) || [])[0] || [...document.scripts].map(s=>s.src).find(s=>/perimeterx\.net|px-cdn\.net/.test(s))
How to recognize PerimeterX challenge
#PerimeterX, now part of HUMAN Security, is a page-level application-protection flow rather than an embedded checkbox.
What makes PerimeterX challenge different
It returns cookie passage for the protected session, not a form token or a property listing from a protected site.
How to use the PerimeterX challenge API
#The PerimeterX challenge API returns cookie values in cookie. Its solution format is cookie. Attach the returned cookie fields to subsequent requests for the same workflow.
- 01Read GET /api/v1/captcha/types and select the
perimeterxentry. - 02Send
type: "perimeterx"and the required parameters to POST /api/v1/captcha. - 03Read cookie values from
cookie. - 04Attach the returned cookie fields to subsequent requests for the same workflow.
Billing and availability EverySolve charges only when a solution is delivered successfully. An unsuccessful attempt is not charged, and any held amount goes back to your balance automatically. Read available and the price fields from GET /api/v1/captcha/types at request time rather than treating them as static page content.
PerimeterX challenge integration questions
#How can I identify PerimeterX challenge before choosing a type?
PerimeterX, now part of HUMAN Security, is a page-level application-protection flow rather than an embedded checkbox. Use perimeterx only after those signals match the target challenge.
Which target-page values belong in PerimeterX challenge requests?
Use website_url with the same proxy that will consume the result; user_agent and website_key apply only when the target exposes them. Provide website_url and proxy. Optional parameters are user_agent and website_key.
What does PerimeterX challenge return, and what is easy to confuse it with?
The PerimeterX challenge API returns cookie values in cookie. Its solution format is cookie. It returns cookie passage for the protected session, not a form token or a property listing from a protected site.
Which external source explains the PerimeterX challenge integration?
HUMAN Security's first-party documentation identifies the PerimeterX application-protection family. [Open the PerimeterX challenge reference](https://www.humansecurity.com/). EverySolve-specific fields and live availability still come from the type catalog.
Reference for PerimeterX challenge
#Related CAPTCHA types
#- Anubis
anubis$0.14 per 1,000 successful solutions - Cloudflare challenge page
cloudflare_challenge$1.81 per 1,000 successful solutions - DataDome interstitial
datadome_interstitial$3.06 per 1,000 successful solutions - F5 Shape
f5_shape$3.06 per 1,000 successful solutions - F5 TS protection
f5_tspd$3.75 per 1,000 successful solutions - Imperva challenge
imperva$3.06 per 1,000 successful solutions
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.