Skip to Content
APIEndpointsGet competitor

Get competitor

A single competitor’s identity record. Use it when you already hold a competitor_id and need its details, rather than fetching and filtering the whole list.

Share of voice numbers are not here — those live on Competitor rankings.

GET /v1/brands/{brand_id}/competitors/{competitor_id}

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands
competitor_iduuidrequiredFrom List competitors

Query parameters

None.

Any parameter you pass returns 400 invalid_request naming the offending key, rather than being ignored silently.

Request

curl --request GET \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/competitors/b7c3e910-4482-4f5a-bb2e-7d1e0a93c684' \ --header 'Authorization: Bearer <api-key>'

Response

{ "data": { "id": "b7c3e910-4482-4f5a-bb2e-7d1e0a93c684", "name": "Peec AI", "primary_url": "https://peec.ai", "domain": "peec.ai", "relation": "direct_competitor", "aliases": ["Peec"], "favicon_url": null, "is_active": true, "is_manual": false, "created_at": "2026-02-19T11:04:33.219Z" }, "request_id": "req_88ac410f2de7495db6c3" }

Response fields

FieldTypeDescription
data.iduuidrequired
data.namestringrequired
data.primary_urlstring | null
data.domainstring | nullRegistrable apex domain
data.relationstringrequired
data.aliasesstring[]required
data.favicon_urlstring | null
data.is_activebooleanrequired
data.is_manualbooleanrequired
data.created_attimestamptzrequired
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

A competitor id belonging to another brand returns 404 not_found, identical to one that does not exist.

Last updated on