> 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.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiIyMTUzMjY1MC05YjVjLTRkZGEtOTc0NC0zOTAwZmVkMTdhZjMiLCJleHAiOjE3NzgzMzUyNDQsImlhdCI6MTc3ODMzNDk0NH0.SxzMKDyuFt2iLsevYpBSHzxRHaUaGsml5HlDkv0NXnc
>
> 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 Status

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

Get the status of a website crawling job.

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: fai
  version: 1.0.0
paths:
  /sources/website/{domain}/status:
    get:
      operationId: get-website-status
      summary: Get Website Status
      description: Get the status of a website crawling job.
      tags:
        - subpackage_website
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
        - name: job_id
          in: query
          description: The job ID returned from the index endpoint
          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/GetWebsiteStatusResponse'
        '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:
    GetWebsiteStatusResponse:
      type: object
      properties:
        job_id:
          type: string
        status:
          type: string
          description: 'Job status: PENDING, PROCESSING, COMPLETED, or FAILED'
        base_url:
          type: string
        pages_indexed:
          type: integer
          description: Number of pages successfully indexed
        pages_failed:
          type: integer
          description: Number of pages that failed to index
        error:
          type:
            - string
            - 'null'
          description: Error message if the job failed
      required:
        - job_id
        - status
        - base_url
        - pages_indexed
        - pages_failed
      title: GetWebsiteStatusResponse
    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

```