Skip to main content
POST
/
api
/
l2beat
/
projects
/
tvs
/l2beat/projects/tvs
curl --request POST \
  --url https://api.anysite.io/api/l2beat/projects/tvs \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "project": "<string>",
  "timeout": 300,
  "range": "1y",
  "count": 2
}
'
[
  {
    "id": "<string>",
    "@type": "L2beatProjectTvsHistory",
    "tvs": {
      "@type": "L2beatProjectTvs",
      "total": 123,
      "native": 123,
      "canonical": 123,
      "external": 123,
      "ether": 123,
      "stablecoin": 123,
      "btc": 123,
      "other": 123,
      "rwa_restricted": 123,
      "rwa_public": 123,
      "associated": 123,
      "change_7d": 123,
      "associated_tokens": []
    },
    "chart": [],
    "synced_until": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
project
string
required

Project slug or project URL

Minimum string length: 1
Examples:

"arbitrum"

"base"

"https://l2beat.com/scaling/projects/optimism"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
range
enum<string>
default:1y

Time window for the value-secured history

Available options:
1d,
7d,
30d,
90d,
180d,
1y,
max
count
integer | null

Return only the most recent N chart points

Required range: x >= 1

Response

Successful Response

id
string
required
@type
string
default:L2beatProjectTvsHistory
tvs
object
chart
object[]
synced_until
integer | null