> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI3ZGNiOTkwNS1hMDM2LTRiODMtOTM2My0wZjViZjk5YmI5NjgiLCJleHAiOjE3NzgzMzUyMTYsImlhdCI6MTc3ODMzNDkxNn0.oxjr2FnbjZ9JvFGYM3bdfaPVN1fsNyG9KNV_cKjcW8A
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# Get Website By Id

GET https://fai.buildwithfern.com/sources/website/{domain}/{website_id}

Get a single indexed website page by ID.

Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/website/get-website-by-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: fai
  version: 1.0.0
paths:
  /sources/website/{domain}/{website_id}:
    get:
      operationId: get-website-by-id
      summary: Get Website By Id
      description: Get a single indexed website page by ID.
      tags:
        - subpackage_website
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
        - name: website_id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWebsiteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
servers:
  - url: https://fai.buildwithfern.com
  - url: https://fai-dev.buildwithfern.com
  - url: http://localhost:8080
components:
  schemas:
    Website:
      type: object
      properties:
        website_id:
          type: string
        domain:
          type: string
        base_url:
          type: string
        page_url:
          type: string
        chunk:
          type: string
        document:
          type: string
        title:
          type:
            - string
            - 'null'
        version:
          type:
            - string
            - 'null'
        product:
          type:
            - string
            - 'null'
        keywords:
          type:
            - array
            - 'null'
          items:
            type: string
        authed:
          type:
            - boolean
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - website_id
        - domain
        - base_url
        - page_url
        - chunk
        - document
        - created_at
        - updated_at
      title: Website
    GetWebsiteResponse:
      type: object
      properties:
        website:
          $ref: '#/components/schemas/Website'
          description: The requested website
      required:
        - website
      title: GetWebsiteResponse
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```