Harness 設定
Web Fetch API
selector と readability オプションで Web ページ内容を HTML、text、Markdown として抽出します。
POST
/v2/web/extract認証
Bearer API key
Content type
application/json
レート制限
endpoint ごとの制限が適用される場合があります。
Web Fetch API は target URL から content を抽出し、agents、RAG systems、content workflows が扱いやすい形式で返します。HTML、plain text、Markdown、selectors、readability options、cookies、custom user agents をサポートします。
Endpoint
POST https://openapi.felo.ai/v2/web/extract認証
Authorization: Bearer YOUR_API_KEYBody Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | はい | - | extract する webpage URL |
crawl_mode | string | いいえ | fast | fast または fine |
output_format | string | いいえ | html | html、text、markdown |
with_readability | boolean or string | No | - | main content に集中する readability processing |
target_selector | string | いいえ | - | CSS selector |
wait_for_selector | string | いいえ | - | dynamic content 待機用 selector |
user_agent | string | いいえ | - | custom User-Agent |
timeout | integer | いいえ | - | timeout milliseconds |
Example
curl -X POST https://openapi.felo.ai/v2/web/extract -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"url":"https://example.com/article","output_format":"markdown","with_readability":true}'ユースケース
- Agent に webpage context を渡す
- RAG ingestion 用に article text を抽出
- webpage を Markdown に変換
- CSS selectors で必要な部分だけ抽出