Skip to content

Instantly share code, notes, and snippets.

@nshumoogum
Last active October 29, 2020 09:32
Show Gist options
  • Save nshumoogum/27b70536f6b525573f7c3f5f8b209d99 to your computer and use it in GitHub Desktop.
Save nshumoogum/27b70536f6b525573f7c3f5f8b209d99 to your computer and use it in GitHub Desktop.
Search Query API (/search) - Content resource example
{
"count": 80,
"took": 530,
"content_types": [
{
"type": "string",
"count": 0
}
],
"items": [
{
"description": {
"contact": {
"email": "string",
"name": "string",
"telephone": "string"
},
"dataset_id": "string",
"edition": "string",
"headline1": "string",
"headline2": "string",
"headline3": "string",
"keywords": [
"string"
],
"latest_release": true,
"language": "English",
"meta_description": "string",
"national_statistic": true,
"next_release": "14 August 2015",
"pre_unit": "string",
"release_date": "2020-10-29T09:25:53.307Z",
"source": "string",
"summary": "string",
"title": "string",
"unit": "string"
},
"matches": {
"description": {
"dataset_id": [
{
"value": "string", /* e.g. "This article looks at how the UK <strong>economy</strong>
has changed since the 1970s, looking at the main macroeconomic variables including
changes in output and the labour market." */
}
],
"edition": [
{
"value": "string",
}
],
"keywords": [
{
"value": "string",
}
],
"meta_description": [
{
"value": "string",
}
],
"summary": [
{
"value": "string",
}
],
"title": [
{
"value": "string",
}
]
}
},
"type": "string",
"uri": "string"
}
],
"suggestions": [
"string"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment