Skip to main content
POST
/
api
/
l2beat
/
summary
/l2beat/summary
curl --request POST \
  --url https://api.anysite.io/api/l2beat/summary \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "timeout": 300,
  "count": 2
}
'
[
  {
    "@type": "L2beatSummary",
    "tvs_usd": 123,
    "tvs_eth": 123,
    "tvs_chart": [],
    "activity_chart": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
count
integer | null

Return only the most recent N points of each chart time series

Required range: x >= 1

Response

Successful Response

@type
string
default:L2beatSummary
tvs_usd
number | null
tvs_eth
number | null
tvs_chart
object[]
activity_chart
object[]