> ## 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.

# Lending Protocols

> Lending metrics at three grains: per protocol, per product deployment on one chain, and per market within a product.

Each grain has a lookup table for its keys and a timeseries model for deposits, borrows, TVL, interest, fees and revenue.

## Endpoints

| Model                                                                                                                | Access                       | Table                                                                                           | Timeseries                                                                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Lending Protocols](/api-reference/data-api/lending-protocols/lending-protocols)                                     | Projects\_protocols\_unified | [List rows](/api-reference/data-api/lending-protocols/tabular-lending-protocols)                | [Batch](/api-reference/data-api/lending-protocols/timeseries-lending-protocols), [One series](/api-reference/data-api/lending-protocols/timeseries-lending-protocols-by-id)                                     |
| [Lending Protocols by Product](/api-reference/data-api/lending-protocols/lending-protocols-by-product)               | Projects\_protocols\_unified | [List rows](/api-reference/data-api/lending-protocols/tabular-lending-protocol-products)        | [Batch](/api-reference/data-api/lending-protocols/timeseries-lending-protocols-by-product), [One series](/api-reference/data-api/lending-protocols/timeseries-lending-protocols-by-product-by-id)               |
| [Lending Protocols by Product Market](/api-reference/data-api/lending-protocols/lending-protocols-by-product-market) | Projects\_protocols\_unified | [List rows](/api-reference/data-api/lending-protocols/tabular-lending-protocol-product-markets) | [Batch](/api-reference/data-api/lending-protocols/timeseries-lending-protocols-by-product-market), [One series](/api-reference/data-api/lending-protocols/timeseries-lending-protocols-by-product-market-by-id) |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/tabular/lending-protocols?pageSize=3&selections=id,slug,name,projectID" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [List Lending Protocols](/api-reference/data-api/lending-protocols/tabular-lending-protocols) for the response and the errors.

## Guides

<CardGroup cols={2}>
  <Card title="Finding an id" icon="key" href="/api-reference/data-api/discovery/finding-an-id">
    Every series key, the table it comes from and the identifiers that resolve to it.
  </Card>

  <Card title="Granularity" icon="clock" href="/getting-started/concepts/granularity">
    Choosing an interval and bounding a time window.
  </Card>

  <Card title="Filtering and pagination" icon="filter" href="/getting-started/filtering-pagination">
    Filter suffixes, sorting, column selection and paging.
  </Card>

  <Card title="Tabular vs timeseries" icon="book" href="/getting-started/concepts/tabular-vs-timeseries">
    The two model kinds, their URL shapes, and when to reach for each.
  </Card>
</CardGroup>
