Skip to main content
POST
/
api
/
l2beat
/
projects
/
liveness
/l2beat/projects/liveness
curl --request POST \
  --url https://api.anysite.io/api/l2beat/projects/liveness \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "project": "arbitrum",
  "range": "30d"
}
'
[
  {
    "id": "<string>",
    "name": "<string>",
    "@type": "L2beatProjectLiveness",
    "alias": "<string>",
    "proof_system": "<string>",
    "category": "<string>",
    "is_synced": false,
    "tx_data": {
      "@type": "L2beatLivenessInterval",
      "average_seconds": 123,
      "minimum_seconds": 123,
      "maximum_seconds": 123,
      "warning": "<string>"
    },
    "proof_submissions": {
      "@type": "L2beatLivenessInterval",
      "average_seconds": 123,
      "minimum_seconds": 123,
      "maximum_seconds": 123,
      "warning": "<string>"
    },
    "state_updates": {
      "@type": "L2beatLivenessInterval",
      "average_seconds": 123,
      "minimum_seconds": 123,
      "maximum_seconds": 123,
      "warning": "<string>"
    },
    "anomalies": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of projects to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
project
string | null

Project slug to return liveness for one project; omit for all

Example:

"arbitrum"

range
enum<string>
default:30d

Aggregation window for the interval averages

Available options:
30d,
90d,
max

Response

Successful Response

id
string
required
name
string
required
@type
string
default:L2beatProjectLiveness
alias
string | null
proof_system
string | null
category
string | null
is_synced
boolean
default:false
tx_data
object
proof_submissions
object
state_updates
object
anomalies
object[]