Get latest schema for a domain + page type
GET
/api/v1/extraction/schemas/{domain}/{pageType}
const url = 'https://api.justcrawl.io/api/v1/extraction/schemas/example/product';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.justcrawl.io/api/v1/extraction/schemas/example/product \ --header 'Authorization: Bearer <token>'Returns the highest-version platform-discovered schema for the (domain, pageType)
pair, or 404 if the platform has not yet discovered one. New schemas land asynchronously
when the extraction worker runs an LLM-driven XPath discovery on a fresh page — there’s
no synchronous “create schema” endpoint, by design.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
pageType
required
string
Responses
Section titled “Responses”Latest extraction schema for the requested pair.
Media typeapplication/json
object
id
string
domain
string
pageType
string
version
integer
attributes
Array<object>
object
name
required
string
xpaths
required
Array<string>
type
required
string
description
string
antiPatterns
Array<string>
semanticType
string
validation
object
minLength
integer
maxLength
integer
min
number
max
number
pattern
string
confidence
number
discoveredBy
string
sampleCount
integer
lastValidatedAt
string format: date-time
expiresAt
string format: date-time
createdAt
string format: date-time
Example
{ "pageType": "product", "attributes": [ { "type": "text", "semanticType": "brand_name" } ], "discoveredBy": "llm"}Missing or invalid authentication token
Media typeapplication/json
object
error
string
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
Media typeapplication/json
object
error
string
Example
{ "error": "No organization. Complete onboarding first."}Resource not found
Media typeapplication/json
object
error
string
Example
{ "error": "Workflow not found"}Unexpected server error. Logs and PostHog $exception capture
Media typeapplication/json
object
error
string
Example
{ "error": "Something went wrong"}