Content Management API > Search indexing activity
Retrieve a search indexing event
Returns
Returns a resource object of type search_index_event
Examples
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const searchIndexEventId = "34";
const searchIndexEvent = await client.searchIndexEvents.find(searchIndexEventId);
// Check the 'Returned output' tab for the result ☝️ console.log(searchIndexEvent);}
run();{ id: "34", 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", search_index: { type: "search_index", id: "1822" },}