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

# Obter um site

> Um site e suas páginas publicadas, cada uma com sua cópia.



## OpenAPI

````yaml GET /v1/ai-rendering/sites/{id}
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}:
    parameters:
      - name: id
        in: path
        required: true
        description: The site's id.
        schema:
          type: string
    get:
      tags:
        - AI Rendering
      summary: Get a site
      description: The site and its published pages, newest first, each with its copy.
      operationId: getAiRenderingSite
      responses:
        '200':
          description: The site and its pages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiRenderingSiteDetail'
              example:
                success: true
                site:
                  id: 5b0e9f52-6a3c-4f0e-8d0b-2c7e4a1f9d33
                  host: www.example.com
                  refreshDays: 28
                  country: US
                  keyPrefix: rs_8f2c4a1b
                  pages: 1
                  createdAt: '2026-10-23T01:00:00.000Z'
                  updatedAt: '2026-10-23T01:00:00.000Z'
                pages:
                  - id: a3d1c9e0-7b52-4e1f-9c84-0f6b2d5e7a10
                    url: https://www.example.com/products/sunscreen
                    path: /products/sunscreen
                    status: rendering
                    copy: null
                    taskId: null
                    renderedAt: null
                    expiresAt: null
                    publishedAt: '2026-10-23T01:00:00.000Z'
                    refreshAt: '2026-10-23T01:00:00.000Z'
                    refreshTaskId: 7c4e2a90-1d3b-4f6a-8e25-9b0c1f3d4e57
        '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'
components:
  schemas:
    AiRenderingSiteDetail:
      type: object
      required:
        - success
        - site
        - pages
      properties:
        success:
          type: boolean
        site:
          $ref: '#/components/schemas/AiRenderingSite'
        pages:
          type: array
          items:
            $ref: '#/components/schemas/AiRenderingPage'
          description: Published pages, newest first.
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    AiRenderingSite:
      type: object
      required:
        - id
        - host
        - refreshDays
        - country
        - keyPrefix
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        host:
          type: string
          description: The site's host name, lower case, without a port.
        refreshDays:
          type: integer
          minimum: 1
          maximum: 28
          description: Days between renders of a published page. Default 28.
        country:
          type: string
          enum:
            - US
            - KR
          description: Where the site's pages are rendered from. Default US.
        keyPrefix:
          type: string
          description: >-
            The first 11 characters of the site key, which reads the site's copy
            list.
        pages:
          type: integer
          description: >-
            Published pages. Absent from a site that was just updated or given a
            new key.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AiRenderingPage:
      type: object
      required:
        - id
        - url
        - path
        - status
        - copy
        - taskId
        - renderedAt
        - expiresAt
        - publishedAt
        - refreshAt
        - refreshTaskId
      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}.
    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.