---
title: "Integrations for AI Search and Analytics Data | AEO API"
description: "Connect authorized analytics data, review customer questions, and send prompt lists and report events to your own tools with AEO API."
url: "https://aeoapi.dev/platform/integrations"
canonical: "https://aeoapi.dev/platform/integrations"
last_updated: "2026-11-29"
---

# Integrations for AI search and analytics data

Use data from accounts you authorize and systems you already run. Read the results through the API, receive managed report updates, or export your prompt list.

[Home](https://aeoapi.dev/) / [Resources](https://aeoapi.dev/platform/ai-coverage) / Integrations for AI search and analytics data

## Choose the data your report needs

Agencies can review search performance alongside the answers they collect for a client. Product teams can show recorded referrals and conversions in their own reports. SEO and content teams can review customer questions before adding them to a brand’s prompt list. A prompt is a question you save for tracking.

Each integration serves a specific part of that work. Start with the brand ID you use in AEO API and the property, website, or inbox you have permission to use. A property identifies a site or app in an analytics account. Search and attribution results come through the API. The account portal handles API keys, usage, and billing. To request access, use the contact form and accept the invitation by email.

## Read totals from Google Analytics 4

On Optimizer, ask our team to help connect your Google Analytics 4 (GA4) property with your authorization. The property needs to record the activity you want to report. After the first import, read the totals with [`GET /v2/analytics/{dataset}`](https://aeoapi.dev/docs/api-reference#get-v2-analytics-dataset), using `attribution` and `model=ga4_reported`.

The attribution response can include referral and conversion counts, revenue in the smallest unit of the currency, and a coverage note. A referral records where a visit came from. A conversion is an outcome such as a lead or purchase. For daily results, the dates for this model follow the property’s time zone. These totals have no brand location breakdown. Keep them in their own view so readers can tell which figures came from the GA4 property.

## Send consented events from your server

Optimizer also accepts activity from systems you already use. Your system records the visits and conversions. Send those records from your server using [`POST /v2/attribution/events`](https://aeoapi.dev/docs/api-reference#post-v2-attribution-events) and a key with `attribution:write`. Each event needs the brand, event ID, kind, source, event time, session identifier, and a reference to the permission to share it. For a conversion or refund, include the conversion ID, currency, and amount in the currency’s smallest unit, such as cents. A lead with no monetary value can use zero.

The request accepts 1 to 1,000 events and requires `max_units`, your credit cap. Send the required request key shown in the operation reference. If you retry, send the same key and body. Incoming events can use credits. Read the `attribution` dataset with `model=same_session` to review referrals and conversions linked within the same visit session. Missing referral or session evidence limits what can be linked. An estimate of influence cannot establish that an AI answer caused a sale.

## Read Google and Bing search performance

For your Google Search Console property, submit the signed daily export with [`PUT /v2/brands/{brand_id}/evidence/{kind}/{key}`](https://aeoapi.dev/docs/api-reference#put-v2-brands-brand_id-evidence-kind-key) and `kind=google_import`. Use the brand named in the signed export. The key identifies the exact signed property and day. Send the original encoded payload and signature, which the API checks against the export. See the import variant for the key format and request fields.

For Bing Webmaster Tools, start with an existing authorized website or property. Check the connection with [`GET /v2/brands/{brand_id}`](https://aeoapi.dev/docs/api-reference#get-v2-brands-brand_id) using `view=connection` and `provider=bing`. This operation reads the connection state. Read `bing_insights` for the website or property with [`GET /v2/analytics/{dataset}`](https://aeoapi.dev/docs/api-reference#get-v2-analytics-dataset).

Both plans include these reads and the Google import. To review changes over time, read `search_performance` with your brand ID, `start`, and `end`. Choose date, search query, or page as the grouping. Ask for Google, Bing, or a split by engine. These results describe search performance for the selected property. Use [Citation intelligence](https://aeoapi.dev/products/citation-intelligence) to see which pages the collected AI answers cited.

## Find business categories for your brand

Look up the categories that apply to your business with [`GET /v2/brands`](https://aeoapi.dev/docs/api-reference#get-v2-brands) and `view=categories`. The shared catalog identifies Google Business Profile as a source for category entries. Read each entry’s ID, name, source, and country eligibility. The eligibility field can say yes, no, or unknown. Use `q` and `country` to narrow the lookup.

Save the chosen IDs in `category_ids` when you create a brand with [`POST /v2/brands`](https://aeoapi.dev/docs/api-reference#post-v2-brands). Both plans include the catalog and brand setup. The catalog gives you category labels and IDs. It works independently of your listing access and makes no changes to a business listing. See [AI search topics](https://aeoapi.dev/products/ai-search-topics) for ways to use categories in topic research.

## Review questions from your HubSpot CRM inbox

1. Use an account owner’s key with `brands:write` and account-wide access. Call [`PATCH /v2/brands/{brand_id}`](https://aeoapi.dev/docs/api-reference#patch-v2-brands-brand_id) with `section=connection`, `provider=hubspot`, `state=enabled`, and the inbox ID. Send your HubSpot credential with `conversations.read` in `X-HubSpot-Access-Token`.
2. Call [`POST /v2/prompts`](https://aeoapi.dev/docs/api-reference#post-v2-prompts) with `action=preview`, `source=hubspot`, the brand ID, and the inbox ID. Send the HubSpot credential again. Specify up to eight conversation threads you have permission to use, with a permission expiry for each thread.
3. Review the draft questions, counts of skipped items, and thread details. Choose which questions to keep and send them to [`POST /v2/prompts`](https://aeoapi.dev/docs/api-reference#post-v2-prompts) with `action=import`. Use the import request fields to supply the selected question text.

Analyzer and Optimizer both include this workflow. A support team can review questions from an inbox it manages, edit them for tracking, and choose a small set for a first collection. Previewing a thread leaves the draft questions unsaved until your team imports or creates them.

## Receive an update when a managed report run finishes

A webhook is a notification the API sends to your server. On either plan, use an owner key with `brands:write` to register a public HTTPS URL on port 443 or 8443. Call [`PATCH /v2/brands/{brand_id}`](https://aeoapi.dev/docs/api-reference#patch-v2-brands-brand_id) with `section=connection` and `provider=webhook`. Choose completed events, failed events, or both. Save the returned signing secret and use it to verify the event signature with the timestamp and exact request body.

For a recurring managed report, configure `section=schedule` and `kind=managed` on the brand. Call [`GET /v2/account`](https://aeoapi.dev/docs/api-reference#get-v2-account) with `include=webhooks` to review webhook configurations across the account. The notification gives you a brand ID, run ID, status, and timestamp. When it includes a report ID, read the report with [`GET /v2/reports`](https://aeoapi.dev/docs/api-reference#get-v2-reports). If the run fails, check its failure reason before refreshing your customer’s report. See [Reports and webhooks](https://aeoapi.dev/products/reports-webhooks) for delivery and reporting details.

## Export a prompt list for a spreadsheet

Analyzer and Optimizer can export saved prompts as comma-separated values (CSV), a format spreadsheet tools can open. Call [`GET /v2/prompts`](https://aeoapi.dev/docs/api-reference#get-v2-prompts) with `view=export` and `format=csv`. Use that file to review the questions a client tracks or to prepare a list for an editor. Read saved visibility results through the reports API.

Set `AEO_API_BASE_URL` to `https://api.aeoapi.dev`, set `BRAND_ID` to the brand ID, and use a key with `prompts:read` from your server. This read uses zero credits. If the response headers include `X-Next-Cursor`, send that value as `cursor` to read the next page with the same filters.

```
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode "view=export" \
  --data-urlencode "brand_id=$BRAND_ID" \
  --data-urlencode "format=csv" \
  --output prompts.csv
```

## Questions

### How do I connect a Google Analytics 4 property?

Ask our team to help connect the property with your authorization. Optimizer includes the attribution read for imported totals from a property that already records the activity. [Read the Google Analytics 4 setup notes.](https://aeoapi.dev/docs/api-reference#get-v2-analytics-dataset)

### Can I send referrals and conversions from our own system?

Yes. On Optimizer, send records from your server with the required event fields and consent reference. Use the attribution dataset to read linked activity. [Check the attribution event requirements.](https://aeoapi.dev/docs/api-reference#post-v2-attribution-events)

### Can I compare Google and Bing search performance?

Yes. The search performance dataset accepts a split by engine. It can group results by date, search query, or page for the selected period. [Read the search performance parameters.](https://aeoapi.dev/docs/api-reference#get-v2-analytics-dataset)

### Do I need to sign into Google Business Profile to find category IDs?

You can look up category IDs without signing in to Google Business Profile. Use the country filter and check the entry’s country eligibility when choosing an ID for your brand. [Read the category lookup parameters.](https://aeoapi.dev/docs/api-reference#get-v2-brands)

### When do HubSpot questions become tracked prompts?

The preview returns draft questions for review. Save the questions you choose through the prompt import operation before using them for collection. [See the preview and prompt import operations.](https://aeoapi.dev/docs/api-reference#post-v2-prompts)

### Does a webhook send a copy of the report?

The event tells you the status of the managed run. When it includes a report ID, use that ID to read the saved report through the API. [See how to read a saved report.](https://aeoapi.dev/docs/api-reference#get-v2-reports)

### Can I open my tracked prompt list in a spreadsheet?

Yes. Both plans export prompt lists as CSV. If the response includes a next cursor, pass it in another request to get the next page. [Read the prompt export options.](https://aeoapi.dev/docs/api-reference#get-v2-prompts)

## Next

- [Read AI referrals and linked conversions](https://aeoapi.dev/products/analytics-attribution)
- [Read and share visibility reports](https://aeoapi.dev/products/reports-webhooks)
- [Compare API plans](https://aeoapi.dev/pricing)
- [Request API access](https://aeoapi.dev/contact)
