Automattic Analytics API

The analytics API from Automattic — 25 operation(s) for analytics.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 25

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /wpcom/v2/sites/{wpcom_site}/analytics/options/campaigns List a site's analytics campaigns · GET /wpcom/v2/sites/{wpcom_site}/analytics/options/campaigns #
Ask an LLM
“Which campaigns are tracked for my site's analytics?”
“Can I search the analytics campaigns available to a site?”
Tell an agent
List analytics campaigns for site {wpcom_site}.
Find analytics campaigns on {wpcom_site} matching {search}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/options/channels List a site's analytics traffic channels · GET /wpcom/v2/sites/{wpcom_site}/analytics/options/channels #
Ask an LLM
“What traffic channels does my site's analytics report?”
“Can I search the analytics channels available to a site?”
Tell an agent
List analytics channels for site {wpcom_site}.
Find analytics channels on {wpcom_site} matching {search}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/options/channels-sources List a site's analytics channel sources · GET /wpcom/v2/sites/{wpcom_site}/analytics/options/channels-sources #
Ask an LLM
“Which sources feed each traffic channel on my site?”
“Can I search the analytics channel sources available to a site?”
Tell an agent
List analytics channel sources for site {wpcom_site}.
Find analytics channel sources on {wpcom_site} matching {search}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/options/sources List available source options for a site · GET /wpcom/v2/sites/{wpcom_site}/analytics/options/sources #
Ask an LLM
“Which traffic sources can I break down my site's analytics by?”
“Can I find out what source options a site offers for analytics?”
Tell an agent
List the source options available for site {wpcom_site}.
Show analytics source options on site {wpcom_site} matching {search}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/bookings/by-date Report bookings over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/bookings/by-date #
Ask an LLM
“How many bookings did my site get each day over a period?”
“Can I report bookings by date for a site?”
Tell an agent
Report bookings for site {wpcom_site} from {from} to {to} by {interval}.
Show {date_type} bookings for {wpcom_site} between {from} and {to} by {interval}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/coupons Report coupon usage over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/coupons #
Ask an LLM
“How many coupons were used on my site over a period?”
“Can I report coupon usage by date for a site?”
Tell an agent
Report coupons for site {wpcom_site} from {from} to {to}.
Show {date_type} coupon usage for {wpcom_site} between {from} and {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/coupons/by-date Report coupon redemptions over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/coupons/by-date #
Ask an LLM
“How many coupons did my site redeem each day or week?”
“Can I see coupon redemption trends on my site for a date range?”
Tell an agent
Report daily coupon redemption totals on site {wpcom_site} from {from} to {to} by {interval}.
Show total coupons redeemed by {date_type} on site {wpcom_site} between {from} and {to} at {interval} intervals.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/customers/by-date Report new and returning customers over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/customers/by-date #
Ask an LLM
“How many new and returning customers did my site get each day?”
“Can I report customer growth by date for a site?”
Tell an agent
Report new and returning customers for site {wpcom_site} from {from} to {to} by {interval}.
Show {date_type} customer growth for {wpcom_site} by {interval} between {from} and {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/customers/new-returning Report new vs returning customers · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/customers/new-returning #
Ask an LLM
“How many of my site's customers are new versus returning?”
“Can I compare new and returning customers for a site?”
Tell an agent
Report new versus returning customers for site {wpcom_site} from {from} to {to}.
Compare new and returning customers on {wpcom_site} between {from} and {to}.
POST /wpcom/v2/sites/{wpcom_site}/analytics/reports/forecast-with-narrative Forecast sales with a narrative · POST /wpcom/v2/sites/{wpcom_site}/analytics/reports/forecast-with-narrative #
Ask an LLM
“Can I get a narrative forecast of my site's sales?”
“What does a sales forecast look like for a product on my site?”
Tell an agent
Forecast sales for product {product_id} on site {wpcom_site} from {from} to {to} over {prediction_periods} periods at {prediction_granularity}.
Narrate a forecast for {product_id} on {wpcom_site} from {from} to {to} over {prediction_periods} periods at {prediction_granularity}.
POST /wpcom/v2/sites/{wpcom_site}/analytics/reports/log-diagnostics Log analytics diagnostics · POST /wpcom/v2/sites/{wpcom_site}/analytics/reports/log-diagnostics #
Ask an LLM
“Can I send analytics diagnostics for a scan to my site?”
“What evidence can I log for a site's analytics scan?”
Tell an agent
Log analytics diagnostics for scan {scan_id} on site {wpcom_site} with evidence {local_evidence}.
Record scan {scan_id} diagnostics for {wpcom_site} using {local_evidence}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution-by-product/{view}/summary Summarize order attribution by product · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution-by-product/… #
Ask an LLM
“Which products drove the most orders attributing to the chosen view?”
“Can I get a quick summary of order attribution by product for a view?”
Tell an agent
Summarize order attribution by product on site {wpcom_site} for view {view} from {from} to {to}, {interval}.
Give me a total order-attribution-by-product summary for view {view} on site {wpcom_site} in {interval} intervals.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution/{view}/compare Compare order attribution by view · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution/{view}/comp… #
Ask an LLM
“What did order attribution look like for a product in the previous period compared to this one?”
“Can I compare a single item's order attribution across views?”
Tell an agent
Compare order attribution for item {item} on site {wpcom_site} from {from} to {to} at {interval} intervals.
Compare order attribution in view {view} for item {item} on site {wpcom_site} over {interval}, {from} to {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution/{view}/items List order attribution items for a view · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution/{view}/item… #
Ask an LLM
“Which items account for the most order attribution in a view on my site?”
“Can I page through and sort the order attribution items for a view?”
Tell an agent
List order attribution items in view {view} on site {wpcom_site} from {from} to {to}, filtered by {date_type}.
Show the first {limit} order attribution items in view {view} on site {wpcom_site} between {from} and {to}, sorted by {orderby}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution/{view}/summary Compare order attribution totals across two periods · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/order-attribution/{view}/summ… #
Ask an LLM
“How did order attribution in a view change between this period and an earlier one?”
“Can I see order attribution totals for two date ranges side by side, charted by interval?”
Tell an agent
Compare order attribution totals in view {view} on site {wpcom_site} for {from} to {to} against {compare_from} to {compare_to}, graphed by {interval}.
Show the period-over-period order attribution trend in view {view} on {wpcom_site}, {from} to {to} versus {compare_from} to {compare_to}, per {interval}, by {date_type}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/orders-by-product-type/by-date Report orders by product type over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/orders-by-product-type/by-dat… #
Ask an LLM
“How many orders did each product type get each day?”
“Can I report orders by product type for a site?”
Tell an agent
Report orders by product type for site {wpcom_site} from {from} to {to} by {interval}.
Show {date_type} orders by product type for {wpcom_site} by {interval} between {from} and {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/orders/by-date Report orders over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/orders/by-date #
Ask an LLM
“How many orders did my site get each day?”
“Can I report orders by date for a site?”
Tell an agent
Report orders for site {wpcom_site} from {from} to {to} by {interval}.
Show {date_type} orders for {wpcom_site} by {interval} between {from} and {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/products Report product performance over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/products #
Ask an LLM
“Which products sold the most on my site over a period?”
“Can I report product performance by date for a site?”
Tell an agent
Report product performance for site {wpcom_site} from {from} to {to}.
Show {date_type} product performance for {wpcom_site} between {from} and {to}.
POST /wpcom/v2/sites/{wpcom_site}/analytics/reports/segment-narrative Summarize a customer segment with a narrative · POST /wpcom/v2/sites/{wpcom_site}/analytics/reports/segment-narrative #
Ask an LLM
“Can I get a narrative summary of a customer segment?”
“What does a segment narrative look like for a site?”
Tell an agent
Summarize segments {segments} on site {wpcom_site} with a narrative.
Narrate customer segment {segments} for {wpcom_site} using cohort {cohort}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-conversion-rate Report session conversion rate over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-conversion-rate #
Ask an LLM
“How has my site's session-to-conversion rate changed over time?”
“What conversion rate trend can I see for sessions on my site?”
Tell an agent
Report the conversion rate per session on site {wpcom_site} from {from} to {to} by {interval}.
Show the session conversion rate trend from {from} to {to} at {interval} on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-date Report daily site sessions · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-date #
Ask an LLM
“How many sessions did my site get each day over a date range?”
“Can I break down daily site sessions by interval?”
Tell an agent
Report daily sessions for site {wpcom_site} from {from} to {to} by {interval}.
Show daily session totals for site {wpcom_site} between {from} and {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-device Report sessions by device type · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-device #
Ask an LLM
“Which devices are my visitors using to view my site?”
“Can I see daily session counts split by desktop, mobile and tablet?”
Tell an agent
Report sessions for site {wpcom_site} from {from} to {to} by device.
Show daily device breakdown of site {wpcom_site} sessions between {from} and {to}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-location Report sessions by country or region · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/sessions/by-location #
Ask an LLM
“How many sessions came from each country on my site?”
“Can I break session geography down by region within a country?”
Tell an agent
Report session counts by {group_by} for site {wpcom_site} from {from} to {to}.
Show sessions by country {country_code} on site {wpcom_site} between {from} and {to}, grouped {group_by}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/taxes/breakdown Break down site taxes · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/taxes/breakdown #
Ask an LLM
“How much tax has my site collected broken down by tax type?”
“Can I sort the tax breakdown by a field?”
Tell an agent
Break down taxes for site {wpcom_site} from {from} to {to}.
Show tax breakdown for site {wpcom_site} between {from} and {to}, sorted by {orderby}.
GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/taxes/by-date Report site taxes over time · GET /wpcom/v2/sites/{wpcom_site}/analytics/reports/taxes/by-date #
Ask an LLM
“How has my site's collected tax changed day by day?”
“Can I group site tax totals by week or month?”
Tell an agent
Report taxes for site {wpcom_site} from {from} to {to} by {interval}.
Show daily tax totals for site {wpcom_site} between {from} and {to}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/automattic:automattic-analytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automattic-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Analytics API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wpcom/v2/. Paths, HTTP methods, and parameter names/types/descriptions/defaults are taken verbatim from that index. Response schemas are not published in the route index, so successful responses are described but not schematised; the error envelope was observed live on public-api.wordpress.com.
  contact:
    name: Automattic
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/wpcom/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (54 KB total) ---
# Full source: https://artifacts.apis.io/automattic/openapi/automattic-analytics-api-openapi.yml