Check a product page
const url = 'https://api.mintall.ai/api/v1/mc4p/page-checks';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"url":"example","freshness":"cached"}'};
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.mintall.ai/api/v1/mc4p/page-checks \ --header 'Content-Type: application/json' \ --data '{ "url": "example", "freshness": "cached" }'Fetch a public product page, extract the commercial facts, and report whether an MC4P document is present on it.
freshness: cached serves a recent observation of the page.
freshness: fresh refetches it. Fresh checks are rate limited per
caller and return 429 once the limit is reached.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Successful Response
The full report for one page check.
object
Every fact the page stated, each with where it was read.
A null field means the page did not state it.
object
object
object
object
object
object
object
object
object
object
One image the registry certified for the product the page’s document names.
Registry data, not a page observation: it says what Mintall issued for the
listing, not whether the bytes the page serves are this image. Observed
page images stay in facts.images.
Example
{ "report_schema_version": 1, "platform_detected": "shopify", "facts": { "images": [] }, "mc4p": { "present": false, "status": "verified" }, "findings": [], "warnings": [], "errors": []}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}Fresh page check rate limit reached.
The page check failed.