跳转到主要内容
GET
/
v1
/
scrapes
/
{scrape_id}
获取抓取结果
curl --request GET \
  --url https://api.olostep.com/v1/scrapes/{scrape_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "metadata": {},
  "url_to_scrape": "<string>",
  "result": {
    "html_content": "<string>",
    "markdown_content": "<string>",
    "json_content": "<string>",
    "screenshot_hosted_url": "<string>",
    "html_hosted_url": "<string>",
    "markdown_hosted_url": "<string>",
    "links_on_page": [
      "<string>"
    ],
    "page_metadata": {
      "status_code": 123,
      "title": "<string>"
    },
    "size_exceeded": true
  }
}

授权

Authorization
string
header
必填

Bearer 认证头的格式为 Bearer ,其中 是你的认证令牌。

路径参数

scrape_id
string
必填

要获取的抓取的唯一标识符。

响应

成功响应包含抓取结果。

id
string

抓取 ID

object
string

对象类型。此端点为 "scrape"。

created
number

创建的纪元时间

metadata
object

用户定义的元数据。

url_to_scrape
string

被抓取的 URL。

result
object