Read your first AI visibility result
Check your key, collect answers to a saved question, and read your brand’s mention rate for the collection window.
Check your key
Run the first authenticated request to confirm that your key works. Use the same API origin and key for the requests below. The visibility request requires analytics:read and access to the brand.
Collect answers
- For a new brand, send
POST /v2/brandswith the questions you want to collect inprompts. Savedata.idasBRAND_IDand usedata.prompt_idsfor collection. - For an existing brand, use a saved prompt ID or add a prompt with
POST /v2/promptsandaction=create. - Follow the prompt collection and polling recipe. Continue when the run's
data.stateiscompleted.
Creating a brand requires brands:write. Saving prompts requires prompts:write. Send an Idempotency-Key header with each write.
Use the v2 API reference and OpenAPI contract for brand and prompt request fields.
Read visibility
Set START_AT and END_AT to RFC 3339 timestamps with offsets that bracket the collection. Pass the same brand ID.
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/visibility" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start_at=$START_AT" \
--data-urlencode "end_at=$END_AT"This request returns brand-level visibility for the selected window. It can include answers to other prompts collected for the same brand during that window.
Read mention_rate alongside coverage.valid_answers in each item in data. Keep each value with its collection mode and market. If data is empty or the rate is null, there is no rate to report for that selection. Check that the brand and time window match the collection.