Content API
new
When you integrate with our content API, you supply a path to a page or the entities in your taxonomy which lead there. The API returns the content on the page which can be rendered. This might be the:
  • a list of FAQ questions and answers
  • the related searches anchor text and links
  • the breadcrumb anchor text and links
  • the title, H1 and description for the page.
An example call returning an error:
curl --location --request POST '<content-endpoint>' \
-header 'Content-Type: application/json' \
-header 'X-API-KEY: secret-value' \
-data-raw '{
"keyword": "",
"location": "UK",
"category": "bars",
"attributes": {
"vehicle_make": "ford",
"vehicle_model": "focus"
}
}
which would return
{"errors": [{"message": "category 'bars' is invalid", "code": "invalid-category"}]}
An example call with ok response:
curl --location --request POST '<content-endpoint>' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: secret-value' \
--data-raw '{
"keyword": "",
"location": "UK",
"category": "cars",
"attributes": {
"vehicle_make": "ford",
"vehicle_model": "focus"
}
}