Skip to main content
POST
/
api
/
l2beat
/
projects
/
activity
/l2beat/projects/activity
curl --request POST \
  --url https://api.anysite.io/api/l2beat/projects/activity \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "project": "<string>",
  "timeout": 300,
  "range": "30d",
  "count": 2
}
'
[
  {
    "id": "<string>",
    "@type": "L2beatProjectActivity",
    "uops": {
      "@type": "L2beatActivityStat",
      "past_day_sum": 123,
      "avg_per_second": 123,
      "change": 123,
      "max_value": 123,
      "max_at": 123
    },
    "tps": {
      "@type": "L2beatActivityStat",
      "past_day_sum": 123,
      "avg_per_second": 123,
      "change": 123,
      "max_value": 123,
      "max_at": 123
    },
    "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:30d

Time window for the activity history

Available options:
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:L2beatProjectActivity
uops
object
tps
object
chart
object[]
synced_until
integer | null