Felo API PlatformFelo API Platform
全部 Exa 端點
v0.2.0-beta
OpenAPI 3.1.0

為一組 URL 擷取完整頁面內容。

伺服器:https://openapi.felo.ai
用戶端程式庫

Exa

​

Semantic search, page content, cited answers and asynchronous research.

為一組 URL 擷取完整頁面內容。

​

取得你已有 URL 的頁面文字與中繼資料。ids 為必填,取自 post_exa_search 的 id 值——這些值就是一般 URL,因此任何 URL 都可用。可切換 text、highlights、summary、subpages 與 livecrawl。傳回包含 id、title、url、author 與 text 的 results[],以及一個依 URL 提供 status 與 source 的 statuses[] 陣列——請讀取它,因為無法擷取的 URL 會在此回報,而不會拋出例外。快取結果會立即傳回;未命中時會退回即時擷取。若要處理整個網站而非一組 URL,請使用 post_firecrawl_crawl。

計費參考

  • 計量方式:依回報的回應成本計量。
  • 參考請求估算:0.002 美元。
  • 參考客戶倍率:1.0。不得對已結算的客戶金額再次應用。

僅供參考的中繼資料,並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。

請求本文
必填
application/json
  • ids
    類型: array string[]
    必填

    要取得內容的 URL(或 Exa 結果 ID)。

  • highlights
    類型: boolean

    傳回醒目的相關片段。

  • livecrawl
    類型: string 列舉

    新鮮度策略:一律即時爬取、快取未命中時回退為即時爬取,或永不即時爬取。

    值
    • always
    • fallback
    • never
  • stream
    類型: boolean 列舉
    常數:  
    false
    值
    • false
  • subpages
    類型: integer

    同時取得的關聯子頁面數量。

  • summary
    類型: boolean

    傳回頁面由 AI 產生的摘要。

  • text
    類型: boolean

    傳回完整頁面文字。

回應
  • 200
    類型: object

    內容擷取成功。

    • requestId
      類型: string
    • results
      類型: array object[]
      • author
        類型: string
      • highlights
        類型: array string[]
      • id
        類型: string
      • publishedDate
        類型: string
      • summary
        類型: string
      • text
        類型: string
      • title
        類型: string
      • url
        類型: string
    application/json
  • 400

    無法處理該要求。請檢查請求參數。

  • 401

    需要有效的 Felo API 金鑰。

  • 402

    由於未符合計費要求,要求無法繼續。

  • 403

    該帳戶無權執行此操作。

  • 429

    已達到要求或支出上限。

  • 502

    服務無法完成該要求。

  • 503

    API 或計費服務暫時無法使用。

  • 504

    服務在處理要求時逾時。

  • default

    錯誤回應;上游透傳回應可能採用供應商格式

    application/json
Request Example for post/v1/beta/exa/contents
curl https://openapi.felo.ai/v1/beta/exa/contents \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "ids": [
    "https://example.com/article"
  ],
  "text": true,
  "highlights": true,
  "summary": true,
  "subpages": 1,
  "livecrawl": "always",
  "stream": false
}'
{
  "requestId": "string",
  "results": [
    {
      "title": "string",
      "url": "string",
      "publishedDate": "string",
      "author": "string",
      "id": "string",
      "text": "string",
      "highlights": [
        "string"
      ],
      "summary": "string"
    }
  ]
}
Extract full page contents for a set of URLs.

需要協助嗎?