> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Protocol Revenue by Product

> Revenue in USD for one product (version) of a protocol on one blockchain. Each series is one product on one chain, keyed by protocol, product and chain. Shows which deployments generate a protocol's revenue.

|                  |                                                                                                                                |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Access           | Projects\_protocols\_unified                                                                                                   |
| Timeseries model | `protocol-revenue-by-product`: intervals `1d`, series key `id` (Protocol Product Chain ID), every series available in one call |

## Endpoints

<CardGroup cols={2}>
  <Card title="Batch Get Protocol Product timeseries" icon="arrow-right" href="/api-reference/data-api/protocol-revenue/timeseries-protocol-revenue-by-product">
    Every series in one request, or the named ones.
  </Card>

  <Card title="Get Protocol Product timeseries" icon="arrow-right" href="/api-reference/data-api/protocol-revenue/timeseries-protocol-revenue-by-product-by-id">
    One series over a time window, keyed by its Protocol Product Chain ID.
  </Card>
</CardGroup>

## Metrics

1 metric. Use the `Field` value in `selections`; every point starts with the timestamp and continues in this order.

| Field         | Name          | Type    | Unit | Description                                       |
| ------------- | ------------- | ------- | ---- | ------------------------------------------------- |
| `revenue-usd` | Revenue (USD) | float64 |      | Daily revenue in USD summed across revenue types. |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/timeseries/protocol-revenue-by-product/1d/aave_aave-v2_avalanche_c?timeframe=7d&selections=revenue-usd" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Protocol Product timeseries](/api-reference/data-api/protocol-revenue/timeseries-protocol-revenue-by-product-by-id) for the response and the errors.
