Analytics

Get Blog Traffic

Get blog-wide traffic data with daily or hourly granularity. Includes visits, clicks, organic traffic, and page type breakdowns.

get/blogs/analytics/traffic

Query parameters

start_datestring date
Example:2025-01-01

Start date (YYYY-MM-DD). Defaults to 28 days ago.

end_datestring date
Example:2025-01-28

End date (YYYY-MM-DD). Defaults to today.

interval'day' | 'hour'

Time interval for data aggregation

type'all' | 'home' | 'post' | 'category' | 'author'

Filter by page type

Response

Traffic data retrieved successfully

Example response

{
  "data": [
    {
      "date": "2025-01-15",
      "visits": 320,
      "clicks": 280,
      "organic": 180,
      "home": 50,
      "post": 200,
      "category": 40,
      "author": 30
    }
  ],
  "meta": {
    "start_date": "2025-01-01",
    "end_date": "2025-01-28",
    "total": 100
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.