> ## 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.

# Lister les pages d'un site

> Parcourez les pages qu'un site publie.



## OpenAPI

````yaml GET /v1/ai-rendering/sites/{id}/pages
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}/pages:
    parameters:
      - name: id
        in: path
        required: true
        description: The site's id.
        schema:
          type: string
    get:
      tags:
        - AI Rendering
      summary: List a site's pages
      description: >-
        The site's pages in path order, limit at a time. Send nextCursor as
        cursor for the next ones.
      operationId: listAiRenderingPages
      parameters:
        - name: limit
          in: query
          description: Pages in one answer.
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
        - name: cursor
          in: query
          description: The nextCursor of the previous answer.
          schema:
            type: string
      responses:
        '200':
          description: The pages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiRenderingPageList'
        '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: limit is not 1 to 500, or cursor is not a
            nextCursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AiRenderingPageList:
      type: object
      required:
        - success
        - pages
        - nextCursor
      properties:
        success:
          type: boolean
        pages:
          type: array
          items:
            $ref: '#/components/schemas/AiRenderingPage'
        nextCursor:
          type:
            - string
            - 'null'
          description: Send as cursor for the next pages. null after the last page.
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    AiRenderingPage:
      type: object
      required:
        - id
        - url
        - path
        - status
        - copy
        - taskId
        - renderedAt
        - expiresAt
        - publishedAt
        - refreshAt
        - refreshTaskId
        - sitemapListedAt
      properties:
        id:
          type: string
        url:
          type: string
          description: The page, tracking parameters removed.
        path:
          type: string
          description: Path and query that identify the page on its site.
        status:
          type: string
          enum:
            - rendering
            - failed
            - ready
            - expired
          description: >-
            Whether the page has a copy for the site to serve. ready: the copy
            is in the site's copy list. rendering: the first copy is being made.
            failed: the first render failed; the page is rendered again at
            refreshAt. expired: the copy's file expired and left the list until
            the next render.
        copy:
          type:
            - string
            - 'null'
          description: The page's copy, as an HTML file. Its URL is its access key.
        taskId:
          type:
            - string
            - 'null'
          description: >-
            The task that made the copy: an AI_RENDERING task or the GEO Score
            it was published from.
        renderedAt:
          type:
            - string
            - 'null'
          format: date-time
        expiresAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the copy's file expires, 30 days after it was made.
        publishedAt:
          type: string
          format: date-time
        refreshAt:
          type: string
          format: date-time
          description: When the page is rendered next.
        refreshTaskId:
          type:
            - string
            - 'null'
          description: >-
            The AI_RENDERING task rendering the page now or last tried. Read it
            with GET /v1/async/task/{id}.
        sitemapListedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the site's sitemap last listed the page. Null for a page
            published only through the API, which the sitemap never takes down.
    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.