> This page is for 文档.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

# 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

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://fai.buildwithfern.com` (Production, default)
- `https://fai-dev.buildwithfern.com` (Development)
- `http://localhost:8080` (Local)

## Request

### Path parameters

- `domain` (string, required)

### Query parameters

- `page` (integer, optional, default: 1) — The page number for pagination
- `limit` (integer, optional, default: 100) — The number of sources per page

## Response

### 200

Successful Response

- `websites` (list of Website, required) — List of indexed website pages for the domain
- `pagination` (PaginationResponse, required) — Pagination information for the website list

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### Website

- `website_id` (string, required)
- `domain` (string, required)
- `base_url` (string, required)
- `page_url` (string, required)
- `chunk` (string, required)
- `document` (string, required)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `title` (string, optional, nullable)
- `version` (string, optional, nullable)
- `product` (string, optional, nullable)
- `keywords` (list of string, optional, nullable)
- `authed` (boolean, optional, nullable)

### PaginationResponse

- `total` (integer, required)
- `page` (integer, required)
- `limit` (integer, required)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItems

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "websites": [
    {
      "website_id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
      "domain": "example.com",
      "base_url": "https://example.com",
      "page_url": "https://example.com/products/widget",
      "chunk": "This is a sample chunk of text extracted from the webpage content for indexing purposes.",
      "document": "<html><head><title>Widget Product Page</title></head><body>Details about the widget product.</body></html>",
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T09:30:00Z",
      "title": "Widget Product Page",
      "version": "1.0.3",
      "product": "Widget",
      "keywords": [
        "widget",
        "product",
        "example"
      ],
      "authed": false
    }
  ],
  "pagination": {
    "total": 25,
    "page": 1,
    "limit": 10
  }
}
```