> ## Documentation Index
> Fetch the complete documentation index at: https://firecrawl.web3doc.top/llms.txt
> Use this file to discover all available pages before exploring further.

# LLMs.txt 状态

获取 LLMs.txt 生成作业的状态和结果。此端点允许您检查生成是否完成并检索生成的内容。

### 响应结构

响应包括：

* **success**: 布尔值，指示请求是否成功

* **status**: 生成作业的当前状态：

  * `processing`: 作业仍在运行中
  * `completed`: 作业成功完成
  * `failed`: 作业遇到错误

* **data**: 生成的内容（当状态为 `completed` 时）：

  * `llmstxt`: 生成的 LLMs.txt 内容
  * `llmsfulltxt`: 完整文本内容（如果 showFullText 为 true）

* **expiresAt**: 结果过期的 ISO 时间戳

### 状态示例

1. **处理中状态**

   ```json theme={null}
   {
     "success": true,
     "status": "processing",
     "data": {
       "llmstxt": "# Firecrawl.dev llms.txt

   ```

* [Web Data Extraction Tool](https://www.firecrawl.dev/)...",
  "llmsfulltxt": "# Firecrawl.dev llms-full.txt

"
},
"expiresAt": "2025-03-03T23:19:18.000Z"
}

````

2. **完成状态**
```json
{
  "success": true,
  "status": "completed",
  "data": {
    "llmstxt": "# http://firecrawl.dev llms.txt

- [Web Data Extraction Tool](https://www.firecrawl.dev/): Transform websites into clean, LLM-ready data effortlessly.
- [Flexible Web Scraping Pricing](https://www.firecrawl.dev/pricing): Flexible pricing plans for web scraping and data extraction.",
    "llmsfulltxt": "# http://firecrawl.dev llms-full.txt

## Web Data Extraction Tool
Introducing /extract - Get web data with a prompt..."
  },
  "expiresAt": "2025-03-03T22:45:50.000Z"
}
````

### 错误处理

如果生成作业失败或找不到，您将收到相应的错误响应：

```json theme={null}
{
  "success": false,
  "error": "LLMs.txt 生成作业未找到"
}
```

### 轮询建议

1. 初始每 2-3 秒轮询一次
2. 如果 30 秒后仍处理中，则增加间隔时间
3. 如果状态为 `completed` 或 `failed` 则停止轮询
4. 实现指数退避以避免速率限制


## OpenAPI

````yaml v1-openapi GET /llmstxt/{id}
openapi: 3.0.0
info:
  title: Firecrawl API
  version: v1
  description: >-
    API for interacting with Firecrawl services to perform web scraping and
    crawling tasks.
  contact:
    name: Firecrawl Support
    url: https://firecrawl.dev/support
    email: support@firecrawl.dev
servers:
  - url: https://api.firecrawl.dev/v1
security:
  - bearerAuth: []
paths:
  /llmstxt/{id}:
    parameters:
      - name: id
        in: path
        description: The ID of the LLMs.txt generation job
        required: true
        schema:
          type: string
          format: uuid
    get:
      tags:
        - LLMs.txt
      summary: Get the status and results of an LLMs.txt generation job
      operationId: getLLMsTxtStatus
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  status:
                    type: string
                    enum:
                      - processing
                      - completed
                      - failed
                  data:
                    type: object
                    properties:
                      llmstxt:
                        type: string
                        description: The generated LLMs.txt content
                      llmsfulltxt:
                        type: string
                        description: The full text content when showFullText is true
                  expiresAt:
                    type: string
                    format: date-time
                    description: When the generated content will expire
        '404':
          description: LLMs.txt generation job not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: LLMs.txt generation job not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````