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

# Obtener la actividad de un sitio

> Páginas, renderizados y solicitudes servidas de un sitio.



## OpenAPI

````yaml GET /v1/ai-rendering/sites/{id}/activity
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/ai-rendering/sites/{id}/activity:
    parameters:
      - name: id
        in: path
        required: true
        description: The site's id.
        schema:
          type: string
      - name: hours
        in: query
        description: The window in hours.
        schema:
          type: integer
          enum:
            - 24
            - 168
            - 720
          default: 168
    get:
      tags:
        - AI Rendering
      summary: Get a site's activity
      description: >-
        The site's pages by status now, the renders that ended in the window
        with the credits they were charged, and the requests Edge Serve answered
        in the window by agent. A site on Edge Sync serves copies from its own
        CDN, so served stays empty and copiesReadAt says when the CDN last read
        the copy list.
      operationId: getAiRenderingSiteActivity
      responses:
        '200':
          description: The site's activity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiRenderingActivityResponse'
              example:
                success: true
                activity:
                  siteId: 5b0e9f52-6a3c-4f0e-8d0b-2c7e4a1f9d33
                  host: www.example.com
                  reference: customer-481
                  windowHours: 168
                  since: '2026-11-07T01:00:00.000Z'
                  pages:
                    total: 1200
                    ready: 1150
                    rendering: 40
                    failed: 4
                    expired: 6
                  renders:
                    completed: 1180
                    failed: 12
                    creditsCharged: 14260
                  served:
                    hits: 5210
                    misses: 310
                    agents:
                      - agent: ChatGPT-User
                        hits: 4100
                        misses: 250
                        lastAt: '2026-11-14T00:58:12.000Z'
                      - agent: ClaudeBot
                        hits: 1110
                        misses: 60
                        lastAt: '2026-11-14T00:41:03.000Z'
                  copiesReadAt: null
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: 'NOT_FOUND: no site of the account with that id.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: 'VALIDATION_ERROR: hours is not 24, 168 or 720.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AiRenderingActivityResponse:
      type: object
      required:
        - success
        - activity
      properties:
        success:
          type: boolean
        activity:
          type: object
          required:
            - siteId
            - host
            - reference
            - windowHours
            - since
            - pages
            - renders
            - served
            - copiesReadAt
          properties:
            siteId:
              type: string
            host:
              type: string
            reference:
              type:
                - string
                - 'null'
            windowHours:
              type: integer
            since:
              type: string
              format: date-time
            pages:
              type: object
              required:
                - total
                - ready
                - rendering
                - failed
                - expired
              description: The site's pages now, by status.
              properties:
                total:
                  type: integer
                ready:
                  type: integer
                rendering:
                  type: integer
                failed:
                  type: integer
                expired:
                  type: integer
            renders:
              type: object
              required:
                - completed
                - failed
                - creditsCharged
              description: >-
                Renders that ended in the window and the credits they were
                charged.
              properties:
                completed:
                  type: integer
                failed:
                  type: integer
                creditsCharged:
                  type: number
            served:
              type: object
              required:
                - hits
                - misses
                - agents
              description: >-
                Requests Edge Serve answered in the window. A hit sent the copy;
                a miss sent the site's own page.
              properties:
                hits:
                  type: integer
                misses:
                  type: integer
                agents:
                  type: array
                  items:
                    type: object
                    required:
                      - agent
                      - hits
                      - misses
                      - lastAt
                    properties:
                      agent:
                        type: string
                      hits:
                        type: integer
                      misses:
                        type: integer
                      lastAt:
                        type: string
                        format: date-time
            copiesReadAt:
              type:
                - string
                - 'null'
              format: date-time
              description: When the site's CDN last read the copy list (Edge Sync).
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.