Analyse one URL now (Instant Analysis)
const url = 'https://api.traaker.ai/api/public/v1/instant-analysis';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"brandId":"example","url":"https://example.com","contentType":"product","rewrite":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.traaker.ai/api/public/v1/instant-analysis \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "brandId": "example", "url": "https://example.com", "contentType": "product", "rewrite": false }'Synchronous, about 25 s, nothing stored. 1 credit (+2 with rewrite), charged only on success. Its own hourly rate limit (10 000 per hour per account), separate from the 1000/hour of the other routes. Unlike every other route, the 200 body is the PageResult itself and errors are { error } objects. Pages that need the slowest fetch step time out (504 analysis_timeout, not charged): use the batch API for those.
Authorizations
Section titled “ Authorizations ”Request Bodyrequired
Section titled “ Request Bodyrequired ”object
Also rewrite the page (+2 credits).
Responses
Section titled “ Responses ”The page result
object
First 16 hex of sha256(url).
The type the page was analysed as; auto only on a failed page whose type was never decided.
The Output Template the page was evaluated against.
Each section of the template: present, partial or missing on the page.
object
How an auto type was decided.
object
The page’s rel=canonical.
Share of the type’s weights that was measured; absent dimensions are rescaled out.
object
Why the dimension is left out of the score (never 0).
2–3 sentences, in the brand’s working language.
object
Rewritten sections keyed by the template’s section keys (when asked).
object
Example
{ "contentType": "auto", "platform": "own_site", "structure": [ { "status": "present" } ], "detectedType": { "type": "product", "source": "structured_data" }, "status": "analysed", "failureReason": "not_found", "fetchStep": "plain", "dimensions": [ { "absentReason": "not_actionable" } ], "recommendations": [ { "impact": "low" } ]}Invalid body.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}Missing, malformed or revoked API key.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}Not enough credits (insufficient_credits), or the subscription is not active.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}API access is not enabled for this account.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}No such brand on this account.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}The page could not be analysed (blocked, not_found, not_html, too_little_text). Not charged.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}Hourly Instant Analysis limit exhausted (rate_limited, with retryAfterMs).
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}The analysis did not fit its budget (analysis_timeout). Not charged.
object
E.g. insufficient_credits, rate_limited, analysis_timeout, blocked.
Example generated
{ "error": "example", "message": "example", "needed": 1, "available": 1, "retryAfterMs": 1}