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

# 获取抓取

> 可用于检索抓取的响应。



## OpenAPI

````yaml zh/openapi/scrapes.json GET /v1/scrapes/{scrape_id}
openapi: 3.0.3
info:
  title: Scrapes API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/scrapes/{scrape_id}:
    get:
      summary: 获取抓取结果。
      description: 此端点允许用户获取先前启动的抓取结果。
      parameters:
        - name: scrape_id
          in: path
          required: true
          description: 要获取的抓取的唯一标识符。
          schema:
            type: string
      responses:
        '200':
          description: 成功响应，包含抓取结果。
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: 抓取 ID
                  object:
                    type: string
                    description: 对象的种类。此端点为 "scrape"。
                  created:
                    type: number
                    description: 创建的纪元时间
                  metadata:
                    type: object
                    description: 用户定义的元数据。
                  url_to_scrape:
                    type: string
                    description: 被抓取的 URL。
                  result:
                    type: object
                    properties:
                      html_content:
                        type: string
                      markdown_content:
                        type: string
                      json_content:
                        type: string
                        description: 来自解析器的内容。
                      screenshot_hosted_url:
                        type: string
                      html_hosted_url:
                        type: string
                      markdown_hosted_url:
                        type: string
                      links_on_page:
                        type: array
                        items:
                          type: string
                      page_metadata:
                        type: object
                        properties:
                          status_code:
                            type: integer
                          title:
                            type: string
                      size_exceeded:
                        type: boolean
                        description: 如果内容大小超过限制，请使用托管的 S3 urls 获取内容。
                  credits_consumed:
                    type: integer
                    nullable: true
                    description: 此请求消耗的积分数量。在执行完成后填充。积分是计费的真实来源。
                  cost_usd:
                    type: number
                    nullable: true
                    description: >-
                      此请求的估计成本（以美元计）。在执行完成后填充。根据消耗的积分和你的计划费率计算——99% 准确，但
                      credits_consumed 是权威值。
        '400':
          description: 由于参数错误或缺失导致的错误请求。
        '402':
          description: 由于 API key 无效，需要付款。
        '404':
          description: 当请求的抓取未找到时，出现未找到错误。
        '500':
          description: 内部服务器错误。
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Bearer认证头格式为Bearer <token>，其中<token>是你的认证令牌。

````