POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

EverySolve's Temu CAPTCHA API returns click positions for your challenge workflow.The Temu task matches an ordered parts array against a main challenge image. It returns coordinates in the same order as the candidate images in parts. It is not the single-image coordinate task and does not return a site token.

Send POST https://api.everyinfra.com/api/v1/captcha with type set to temu. 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 "Temu CAPTCHA" 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 temu and put the parameters next to it at the same level.
- Required parameters:
  - body: The challenge payload itself. Its media type follows this page's task: image data for visual tasks and audio data for the audio task.
  - parts: The ordered candidate images that must be matched against the main image in the request body.
- Example request body:
{
  "type": "temu",
  "body": "<body>",
  "parts": "<parts>"
}
- 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.
typebodystringYestemuCAPTCHA type, fixed value.
bodybodystringYes-The challenge payload itself. Its media type follows this page's task: image data for visual tasks and audio data for the audio task.
partsbodyobjectYes-The ordered candidate images that must be matched against the main image in the request body.

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": "temu",
  "body": "<body>",
  "parts": "<parts>"
}'

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": "temu",  "solution": {    "coordinates": "…"  },  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Where the Temu CAPTCHA parameters come from

#

The body field contains the main image, and parts contains the candidate images in their original order.

Code to find these values on the page

temu-1.js
[ typeof window.challenge,                                    // 'function' means this is the challenge
  [...document.scripts].map(s=>s.src)
    .filter(s=>/kwcdn\.com\/upload-static\/assets\/chl\//.test(s)),
  document.cookie.match(/__cf_bm=[^;]+/) ]                    // This only shows a CDN in front. It is not the challenge.
temu-2.js
const toB64 = u => fetch(u).then(r=>r.blob()).then(b=>new Promise(s=>{
  const f=new FileReader(); f.onload=()=>s(String(f.result).split(',')[1]); f.readAsDataURL(b);}));
const imgs=[...document.querySelectorAll('img')]
  .filter(i=>i.naturalWidth>20&&i.naturalHeight>20)
  .sort((a,b)=>b.naturalWidth*b.naturalHeight-a.naturalWidth*a.naturalHeight);   // the largest image is the main image
Promise.all(imgs.map(i=>toB64(i.currentSrc||i.src))).then(a=>{
  window.__body=a[0]; window.__parts=a.slice(1);
  console.log('body',a[0].length,'parts',a.length-1);});

How to recognize Temu CAPTCHA

#

The Temu task matches an ordered parts array against a main challenge image.

What makes Temu CAPTCHA different

It returns coordinates in the same order as the candidate images in parts. It is not the single-image coordinate task and does not return a site token.

How to use the Temu CAPTCHA API

#

The Temu CAPTCHA API returns click positions in coordinates. Its solution format is points. Apply the returned pixel positions to the source image or click workflow, in the order given.

  1. 01Read GET /api/v1/captcha/types and select the temu entry.
  2. 02Send type: "temu" and the required parameters to POST /api/v1/captcha.
  3. 03Read click positions from coordinates.
  4. 04Apply the returned pixel positions to the source image or click workflow, in the order given.

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.

Temu CAPTCHA integration questions

#

How can I identify Temu CAPTCHA before choosing a type?

The Temu task matches an ordered parts array against a main challenge image. Use temu only after those signals match the target challenge.

Which target-page values belong in Temu CAPTCHA requests?

The body field contains the main image, and parts contains the candidate images in their original order. Provide body and parts. This type does not declare optional parameters.

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

The Temu CAPTCHA API returns click positions in coordinates. Its solution format is points. It returns coordinates in the same order as the candidate images in parts. It is not the single-image coordinate task and does not return a site token.

Which external source explains the Temu CAPTCHA integration?

The linked Temu page is first-party deployment context, not a public solver specification. [Open the Temu CAPTCHA reference](https://www.temu.com/). EverySolve-specific fields and live availability still come from the type catalog.

Reference for Temu CAPTCHA

#
#

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