Show examples in:
Javascript HTTP
Endpoint info
Available examples
Content Management API > Search indexing activity

Retrieve a search indexing event

Returns

Returns a resource object of type search_index_event.

Examples

GET https://site-api.datocms.com/search-index-events/:search_index_event_id HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/search-index-events/:search_index_event_id' \
\
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch(
"https://site-api.datocms.com/search-index-events/:search_index_event_id",
{
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
},
);
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "search_index_event",
"id": "34",
"attributes": {
"event_type": "indexing_success",
"data": {
"pages": [
"https://www.example.com/ (language: en)",
"https://www.example.com/about (language: en)"
]
},
"created_at": "2016-09-20T18:50:24.914Z"
},
"relationships": {
"search_index": {
"data": {
"type": "search_index",
"id": "1822"
}
}
}
}
}