v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465566486.4 KB

Retrieves search metrics data. The data provides a snapshot of how your users interact with your search application and how effective the application is.

post/#X-Amz-Target=AWSKendraFrontendService.GetSnapshots

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AWSKendraFrontendService.GetSnapshots' required

Request body

IndexIdstring required

The identifier of the index to get search metrics data.

Interval'THIS_MONTH' | 'THIS_WEEK' | 'ONE_WEEK_AGO' | 'TWO_WEEKS_AGO' | 'ONE_MONTH_AGO' | 'TWO_MONTHS_AGO' required
<p>The time interval or time window to get search metrics data. The time interval uses the time zone of your index. You can view data in the following time windows:</p> <ul> <li> <p> <code>THIS_WEEK</code>: The current week, starting on the Sunday and ending on the day before the current date.</p> </li> <li> <p> <code>ONE_WEEK_AGO</code>: The previous week, starting on the Sunday and ending on the following Saturday.</p> </li> <li> <p> <code>TWO_WEEKS_AGO</code>: The week before the previous week, starting on the Sunday and ending on the following Saturday.</p> </li> <li> <p> <code>THIS_MONTH</code>: The current month, starting on the first day of the month and ending on the day before the current date.</p> </li> <li> <p> <code>ONE_MONTH_AGO</code>: The previous month, starting on the first day of the month and ending on the last day of the month.</p> </li> <li> <p> <code>TWO_MONTHS_AGO</code>: The month before the previous month, starting on the first day of the month and ending on last day of the month.</p> </li> </ul>
MetricType'QUERIES_BY_COUNT' | 'QUERIES_BY_ZERO_CLICK_RATE' | 'QUERIES_BY_ZERO_RESULT_RATE' | 'DOCS_BY_CLICK_COUNT' | 'AGG_QUERY_DOC_METRICS' | 'TREND_QUERY_DOC_METRICS' required
<p>The metric you want to retrieve. You can specify only one metric per call.</p> <p>For more information about the metrics you can view, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/search-analytics.html">Gaining insights with search analytics</a>.</p>
NextTokenstring

If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of search metrics data.

MaxResultsinteger

The maximum number of returned data for the metric.

Response

Success

SnapshotsDataHeaderString[]

The column headers for the search metrics data.

NextTokenstring

If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of search metrics data.