📈 Analytics
List Queries
This endpoint retrieves a list of queries related to a specific index, sorted by time and limited to the last 100 queries.
GET
/
v1
/
indexes
/
{id}
/
queries
Header
Path
curl --location --request GET 'https://api.getmetal.io/v1/indexes/{id}/queries' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
{
"data": [
{
"t": "2023-08-30T11:34:35.128Z",
"d": 0.176956892014,
"q": "Who is the best drummer of all time?"
},
{
"t": "2023-08-29T11:34:18.099Z",
"d": 0.156819581985,
"q": "Which band is represented by the iconic mascot Eddie?"
}
// ... up to 100 items
]
}
Auth Headers
x-metal-api-key
string
requiredAn API key for your organization.
x-metal-client-id
string
requiredA Client ID for your organization.
Params
id
string
requiredThe Index ID
Response
data
QueryData Array
Request Example
curl --location --request GET 'https://api.getmetal.io/v1/indexes/{id}/queries' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
{
"data": [
{
"t": "2023-08-30T11:34:35.128Z",
"d": 0.176956892014,
"q": "Who is the best drummer of all time?"
},
{
"t": "2023-08-29T11:34:18.099Z",
"d": 0.156819581985,
"q": "Which band is represented by the iconic mascot Eddie?"
}
// ... up to 100 items
]
}