Felo API PlatformFelo API Platform
全部 BytePlus 端点
v0.2.0-beta
OpenAPI 3.1.0

抓取 URL 的干净、结构化内容。

服务器:https://openapi.felo.ai
客户端库

BytePlus

​

Web search and page content retrieval.

抓取 URL 的干净、结构化内容。

​

抓取单个 URL,返回干净、结构化的页面内容——标题、正文和发布时间。Url 为必填项。响应封装了 ResponseMetadata.RequestId 和包含解析内容的 Result 对象。用于提取已有 URL 的完整页面内容,通常与 post_byteplus_web_search 的结果配合使用。

计费参考

  • 计量方式:按成功请求的固定成本计费。
  • 参考请求估算:0.0008 美元。
  • 参考客户倍率:1.0。不得对已结算的客户金额再次应用。

仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

请求体
必填
application/json
  • Url
    类型: string
    必填

    要抓取的 URL。必填。

响应
  • 200
    类型: object

    抓取成功完成。Result 包含结构化页面内容。

    • ResponseMetadata
      类型: object

      上游请求元数据。

      • Action
        类型: string
      • Region
        类型: string
      • RequestId
        类型: string

        此请求的唯一标识符。

      • Service
        类型: string
      • Version
        类型: string
    • Result
      类型: object

      抓取结果负载。

      • Data
        类型: object

        结构化页面内容。

        • ContentText
          类型: string

          从页面提取的干净正文文本。

        • PublishTime
          类型: integer

          检测到的发布时间,Unix 秒(未知时为 0)。

        • StatusCode
          类型: integer

          所抓取页面的 HTTP 状态码。

        • Title
          类型: string

          页面标题。

        • Url
          类型: string

          抓取的 URL。

      • LogId
        类型: string

        上游日志 id(等于 ResponseMetadata.RequestId)。

    application/json
  • 400

    无法处理该请求。请检查请求参数。

  • 401

    需要有效的 Felo API 密钥。

  • 402

    由于未满足计费要求,请求无法继续。

  • 403

    该账户无权执行此操作。

  • 429

    已达到请求或支出限额。

  • 502

    服务无法完成该请求。

  • 503

    API 或计费服务暂时不可用。

  • 504

    服务在处理请求时超时。

  • default

    错误响应;上游透传响应可能采用提供方格式

    application/json
Request Example for post/v1/beta/byteplus/fetch
curl https://openapi.felo.ai/v1/beta/byteplus/fetch \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "Url": "https://example.com"
}'
{
  "ResponseMetadata": {
    "RequestId": "20260904155514D7EA140BFD77348BC3FC",
    "Action": "",
    "Version": "",
    "Service": "",
    "Region": ""
  },
  "Result": {
    "Data": {
      "StatusCode": 200,
      "Url": "https://example.com",
      "Title": "Example Domain",
      "PublishTime": 0,
      "ContentText": "This domain is for use in documentation examples without needing permission. Avoid use in operations.\nLearn more"
    },
    "LogId": "20260904155514D7EA140BFD77348BC3FC"
  }
}
Fetch clean, structured content for a URL.

需要帮助?