# Get Websites

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

List all indexed website pages for a domain with pagination.

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

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Get Websites
  version: endpoint_website.get_websites
paths:
  /sources/website/{domain}:
    get:
      operationId: get-websites
      summary: Get Websites
      description: List all indexed website pages for a domain with pagination.
      tags:
        - - subpackage_website
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
        - name: page
          in: query
          description: The page number for pagination
          required: false
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          description: The number of sources per page
          required: false
          schema:
            type: integer
            default: 100
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWebsitesResponse'
        '422':
          description: Validation Error
          content: {}
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
    PaginationResponse:
      type: object
      properties:
        total:
          type: integer
        page:
          type: integer
        limit:
          type: integer
      required:
        - total
        - page
        - limit
    GetWebsitesResponse:
      type: object
      properties:
        websites:
          type: array
          items:
            $ref: '#/components/schemas/Website'
          description: List of indexed website pages for the domain
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
          description: Pagination information for the website list
      required:
        - websites
        - pagination

```