Check a product page
POST
/mc4p/page-checks
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”Media typeapplication/json
PageCheckRequest
object
url
required
Url
string
freshness
Freshness
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
PageCheckResponse
The full report for one page check.
object
id
required
Id
string format: uuid
url
required
Url
string
fetched_at
required
Fetched At
string format: date-time
platform_detected
required
Platform Detected
string
verdict
required
Verdict
string
facts
required
ProductFactsResponse
Every fact the page stated, each with where it was read.
A null field means the page did not state it.
object
name
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
description
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
price
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
currency
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
availability
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
sku
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
brand
Any of:
ProductFactResponse
object
value
required
Value
string
source
required
Source
string
field
required
Field
string
null
images
Images
Array<object>
ProductFactResponseobject
value
required
Value
string
source
required
Source
string
field
required
Field
string
mc4p
required
Mc4pPresenceResponse
object
present
Present
boolean
findings
Findings
Array<string>
warnings
Warnings
Array<string>
errors
Errors
Array<string>
Example
{ "platform_detected": "shopify", "facts": { "images": [] }, "mc4p": { "present": false, "status": "verified" }, "findings": [], "warnings": [], "errors": []}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}Fresh page check rate limit reached.
The page check failed.