POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

EverySolve's ALTCHA API returns a token for your challenge workflow.ALTCHA is a proof-of-work widget, usually exposed as an altcha-widget element rather than an image grid. It returns a form token produced from the proof-of-work challenge, not a visual answer or a page-access cookie.

Send POST https://api.everyinfra.com/api/v1/captcha with type set to altcha. Put the parameters in the request body, at the same level as type. $1.53 per 1,000 successful solutions ($0.001528 per successful solve). Failed calls and empty results are not charged.

AI prompt

#
Help me write a script that calls the EveryInfra "ALTCHA" 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 altcha and put the parameters next to it at the same level.
- No required parameters.
- Optional parameters:
  - challenge: The inline challenge value issued by the target widget.
  - challenge_url: The URL from which this widget obtains its challenge payload.
  - website_url: The exact page where this challenge appears, including the relevant path rather than only the site home page.
- Example request body:
{
  "type": "altcha"
}
- Billing: $1.53 per 1,000 successful solutions ($0.001528 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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
typebodystringYesaltchaCAPTCHA type, fixed value.
challengebodyobjectNo-The inline challenge value issued by the target widget.
challenge_urlbodystringNo-The URL from which this widget obtains its challenge payload.
website_urlbodystringNo-The exact page where this challenge appears, including the relevant path rather than only the site home page.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/captcha' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "altcha"
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "id": "req_…",  "type": "altcha",  "solution": {    "token": "…"  },  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Where the ALTCHA parameters come from

#

Use either an inline challenge value or challenge_url when available; website_url is only the declared optional page context.

Code to find these values on the page

altcha-1.html
<altcha-widget auto="off" challenge="https://api.example.com/challenge"
  name="altcha" type="checkbox" workers="4"></altcha-widget>

How to recognize ALTCHA

#

ALTCHA is a proof-of-work widget, usually exposed as an altcha-widget element rather than an image grid.

What makes ALTCHA different

It returns a form token produced from the proof-of-work challenge, not a visual answer or a page-access cookie.

How to use the ALTCHA API

#

The ALTCHA API returns a token in token. Its solution format is token. Submit the token in the field or verification request expected by the target workflow.

  1. 01Read GET /api/v1/captcha/types and select the altcha entry.
  2. 02Send type: "altcha" and any applicable optional parameters to POST /api/v1/captcha.
  3. 03Read a token from token.
  4. 04Submit the token in the field or verification request expected by the target 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.

ALTCHA integration questions

#

How can I identify ALTCHA before choosing a type?

ALTCHA is a proof-of-work widget, usually exposed as an altcha-widget element rather than an image grid. Use altcha only after those signals match the target challenge.

Which target-page values belong in ALTCHA requests?

Use either an inline challenge value or challenge_url when available; website_url is only the declared optional page context. This type does not declare required parameters. Optional parameters are challenge, challenge_url, and website_url.

What does ALTCHA return, and what is easy to confuse it with?

The ALTCHA API returns a token in token. Its solution format is token. It returns a form token produced from the proof-of-work challenge, not a visual answer or a page-access cookie.

Which external source explains the ALTCHA integration?

ALTCHA publishes its widget and proof-of-work documentation. [Open the ALTCHA reference](https://altcha.org/). EverySolve-specific fields and live availability still come from the type catalog.

Reference for ALTCHA

#
#

All CAPTCHA types

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.

Errors

Google Analytics needs consent. Privacy