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

# 搜索反馈

> 为搜索任务提交质量反馈，并帮助改进 Firecrawl 搜索结果。

在使用了 `search` 结果后，或结果未能提供帮助时，可使用搜索反馈。反馈可提升结果质量，并且针对某个搜索任务首次提交反馈时可退还 1 个额度，具体取决于团队限制。

<div id="example-request">
  ### 请求示例
</div>

```bash theme={null}
curl -X POST "https://api.firecrawl.dev/v2/search/550e8400-e29b-41d4-a716-446655440000/feedback" \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "rating": "good",
    "valuableSources": [
      {
        "url": "https://docs.firecrawl.dev/features/search",
        "reason": "Most up-to-date description of /search."
      }
    ],
    "missingContent": [
      {
        "topic": "Pricing for the search endpoint",
        "description": "No pricing tier table for /search specifically."
      }
    ],
    "querySuggestions": "Boost docs.firecrawl.dev for queries that mention Firecrawl"
  }'
```


## OpenAPI

````yaml zh/api-reference/v2-openapi.json POST /search/{jobId}/feedback
openapi: 3.0.0
info:
  contact:
    email: support@firecrawl.dev
    name: Firecrawl Support
    url: https://firecrawl.dev/support
  description: 用于与 Firecrawl 服务交互，执行网页抓取和爬取任务的 API。
  title: Firecrawl API
  version: v2
servers:
  - url: https://api.firecrawl.dev/v2
security:
  - bearerAuth: []
paths:
  /search/{jobId}/feedback:
    post:
      tags:
        - Search
        - Feedback
      summary: 提交搜索任务反馈
      operationId: submitSearchFeedback
      parameters:
        - description: 由 /search 返回的搜索任务 ID。
          in: path
          name: jobId
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchFeedbackRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackResponse'
          description: 反馈已记录
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackErrorResponse'
          description: 无效的请求体
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackErrorResponse'
          description: 此团队不可用反馈功能
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackErrorResponse'
          description: 未找到此团队的搜索任务
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackErrorResponse'
          description: 此搜索任务无法记录反馈
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackErrorResponse'
          description: 服务器错误
      security:
        - bearerAuth: []
components:
  schemas:
    SearchFeedbackRequest:
      description: >-
        若为“good”，请包含 valuableSources。若为“partial”，请包含 valuableSources 或
        missingContent。若为“bad”，请包含 missingContent 或 querySuggestions。
      properties:
        integration:
          nullable: true
          type: string
        missingContent:
          items:
            properties:
              description:
                maxLength: 2000
                type: string
              topic:
                maxLength: 200
                minLength: 1
                type: string
            required:
              - topic
            type: object
          maxItems: 20
          type: array
        origin:
          default: api
          type: string
        querySuggestions:
          maxLength: 2000
          type: string
        rating:
          enum:
            - good
            - partial
            - bad
          type: string
        valuableSources:
          items:
            properties:
              reason:
                maxLength: 1000
                type: string
              url:
                format: uri
                type: string
            required:
              - url
            type: object
          maxItems: 50
          type: array
      required:
        - rating
      type: object
    FeedbackResponse:
      properties:
        alreadySubmitted:
          type: boolean
        creditsRefunded:
          type: number
        creditsRefundedToday:
          type: number
        dailyCapReached:
          type: boolean
        dailyRefundCap:
          type: number
        feedbackId:
          format: uuid
          type: string
        success:
          example: true
          type: boolean
        warning:
          type: string
      required:
        - success
        - feedbackId
        - creditsRefunded
      type: object
    FeedbackErrorResponse:
      properties:
        details:
          items:
            type: object
          type: array
        error:
          type: string
        feedbackErrorCode:
          type: string
        success:
          example: false
          type: boolean
      required:
        - success
        - error
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````