> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /l2beat/projects/activity

> Get the activity (UOPS/TPS) history and current stats for an L2BEAT scaling project

**Price:** 1 credit

**💡 AI Hint:** Get the throughput activity of a single Ethereum layer-two scaling project tracked by L2BEAT — its user operations per second (UOPS) and transactions per second (TPS) over time. Returns current stats (past-day total, daily average, change, and all-time max with its timestamp) for both UOPS and TPS, plus a daily time series of operation and transaction counts ordered oldest-first.

**⚠️ Common errors:** 412: Project not found



## OpenAPI

````yaml /openapi-filtered.json post /api/l2beat/projects/activity
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/l2beat/projects/activity:
    post:
      tags:
        - /l2beat
      summary: /l2beat/projects/activity
      description: >-
        Get the activity (UOPS/TPS) history and current stats for an L2BEAT
        scaling project


        **Price:** 1 credit


        **💡 AI Hint:** Get the throughput activity of a single Ethereum
        layer-two scaling project tracked by L2BEAT — its user operations per
        second (UOPS) and transactions per second (TPS) over time. Returns
        current stats (past-day total, daily average, change, and all-time max
        with its timestamp) for both UOPS and TPS, plus a daily time series of
        operation and transaction counts ordered oldest-first.


        **⚠️ Common errors:** 412: Project not found
      operationId: __api_l2beat_projects_activity_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/L2beatProjectsActivityPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/L2beatProjectActivity'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    L2beatProjectsActivityPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        project:
          type: string
          minLength: 1
          description: Project slug or project URL
          examples:
            - arbitrum
            - base
            - https://l2beat.com/scaling/projects/optimism
        range:
          $ref: '#/components/schemas/L2beatActivityRange'
          description: Time window for the activity history
          default: 30d
        count:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          description: Return only the most recent N chart points
      type: object
      required:
        - project
    L2beatProjectActivity:
      properties:
        '@type':
          type: string
          default: L2beatProjectActivity
        id:
          type: string
        uops:
          anyOf:
            - $ref: '#/components/schemas/L2beatActivityStat'
            - type: 'null'
        tps:
          anyOf:
            - $ref: '#/components/schemas/L2beatActivityStat'
            - type: 'null'
        chart:
          items:
            $ref: '#/components/schemas/L2beatActivityPoint'
          type: array
          default: []
        synced_until:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    L2beatActivityRange:
      type: string
      enum:
        - 30d
        - 90d
        - 180d
        - 1y
        - max
    L2beatActivityStat:
      properties:
        '@type':
          type: string
          default: L2beatActivityStat
        past_day_sum:
          anyOf:
            - type: number
            - type: 'null'
        avg_per_second:
          anyOf:
            - type: number
            - type: 'null'
        change:
          anyOf:
            - type: number
            - type: 'null'
        max_value:
          anyOf:
            - type: number
            - type: 'null'
        max_at:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    L2beatActivityPoint:
      properties:
        '@type':
          type: string
          default: L2beatActivityPoint
        timestamp:
          type: integer
        count:
          anyOf:
            - type: number
            - type: 'null'
        uops_count:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - timestamp
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````