Skip to Content
APIEndpointsList engines

List engines

The engines this brand has data for, such as ChatGPT, Perplexity and Google AI Overviews. Each engine comes back as an object with an id and a display label.

The id values are the accepted values for the engine filter everywhere else. A value not from this list matches nothing rather than erroring, so resolve engines here first rather than guessing at spelling or casing.

GET /v1/brands/{brand_id}/models

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands

Query parameters

ParameterTypeRequiredDescription
limitintegeroptionalRows per page, 1 to 100. Defaults to 20.
cursorstringoptionalOpaque cursor from the previous response. Treat it as a token, never construct one.

Request

curl --request GET \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/models' \ --header 'Authorization: Bearer <api-key>'

Response

{ "data": [ { "id": "chatgpt", "label": "ChatGPT" }, { "id": "perplexity", "label": "Perplexity" }, { "id": "aio", "label": "Google AIO" }, { "id": "gemini", "label": "Gemini" }, { "id": "copilot", "label": "Microsoft Copilot" } ], "pagination": { "limit": 20, "has_more": false, "next_cursor": null }, "request_id": "req_7e5901ba3cf84d20b8a6" }

Response fields

FieldTypeDescription
data[].idstringrequired. The engine’s id, exactly as the engine filter expects it. An engine Asky does not recognise yet keeps its raw name as the id
data[].labelstringrequired. The engine’s display name
paginationobjectrequired. See pagination
request_idstringrequired. Also returned as the x-request-id header. Quote it when contacting support

Errors

StatusCodeWhen
400invalid_requestA parameter is unknown or malformed. The message names it
401invalid_tokenThe key is missing, malformed, or does not exist
401token_expiredThe key passed its expiry date
401token_revokedThe key was revoked
404not_foundThe brand does not exist, or this key is not allowed to reach it. The two are deliberately indistinguishable
429rate_limitedOver 300 requests per minute. See the Retry-After header

Notes

The list reflects engines this brand has actually been executed against, not everything the platform supports. A newly added brand may return fewer engines until its first run completes.

Last updated on