Skip to main content
GET
/
insights
/
revenue
/
by-product
Get revenue breakdown by product
curl --request GET \
  --url https://api.alguna.io/insights/revenue/by-product \
  --header 'Alguna-Version: <alguna-version>' \
  --header 'Authorization: Bearer <token>'
{
  "currency": "USD",
  "products": [
    {
      "comparison_amount": "68000.00",
      "primary_amount": "75000.00",
      "product_id": "prod_abc123",
      "product_name": "API Usage",
      "product_type": "metered"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://alguna.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Headers

Alguna-Version
enum<string>
required
Available options:
2026-04-01

Query Parameters

customer_id
string
required

Optional customer ID to filter by

Example:

"cust_abc123"

date_range
enum<string>
required

Time period for the query.

Available options:
this_month,
last_month,
two_months_ago,
this_quarter,
last_quarter,
two_quarters_ago,
this_year,
last_year,
last_twelve_months,
all_time
Example:

"this_month"

Response

Success

currency
string
required

ISO 4217 currency code

Example:

"USD"

products
object[]
required

Products ordered by revenue