URL 內容 擷取
傳入一個或多個 URL,即可取得已移除導覽與廣告的乾淨易讀內容。可接入 RAG 管線、智慧代理擷取並摘要流程或內容監測作業。
整合指南
複製程式碼片段,替換你的 API 金鑰,執行即可。適用於任何 HTTP 用戶端——下方提供 cURL、JavaScript 與 Python 範例。
/api/extracthttps://www.apipick.comExtract clean readable content from one or more URLs. Removes navigation, ads, and boilerplate. Returns markdown-flavoured text ready for LLM ingestion.
urlsarray<string>必填1–25 http(s) URLs
extract_effortstring選填auto | low | high
response_lengthstring選填short | medium | long
curl -X POST "https://www.apipick.com/api/extract" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"urls": [
"https://en.wikipedia.org/wiki/Retrieval-augmented_generation",
"https://docs.anthropic.com/claude/docs/intro-to-claude"
],
"extract_effort": "auto"
}'{
"results": [
{
"url": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation",
"title": "Retrieval-augmented generation - Wikipedia",
"content": "Retrieval-augmented generation (RAG) is a technique…",
"status": "ok"
}
],
"result_count": 1,
"credits_used": 2,
"remaining_credits": 98
}速率限制
限流以 API 金鑰計,採用 60 秒滑動視窗。觸發限制時會回傳乾淨的 429,並帶 Retry-After 回應標頭。
30req/min
以 API 金鑰、以端點計。60 秒滑動視窗。
3concurrent
每個 API 金鑰同時進行中的最大請求數。
X-RateLimit-Limit每分鐘允許的最大請求數X-RateLimit-Remaining目前視窗內剩餘的請求數X-RateLimit-Reset目前視窗重設前的秒數Retry-After重試前需等待的秒數(僅在 429 時)HTTP/1.1 429 Too Many Requests
Retry-After: 12
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 12
{
"error": "rate_limit_exceeded",
"message": "Rate limit exceeded: 30 requests/minute per API key. Retry after 12s.",
"retry_after": 12
}常見問題
點數如何計費?
每個提交的 URL 收取 2 點。一次傳入 5 個 URL 的呼叫需要 10 點。每次呼叫最多 25 個 URL。
回應的格式長什麼樣子?
一個由 { url, title, content, status } 物件組成的陣列。content 為清理過的易讀文字(類 Markdown),並已移除樣板內容。可供 LLM 直接使用。
可以控制擷取的深度嗎?
傳入 extract_effort(auto、low、high)。'auto' 為預設值,適用於大多數頁面。'high' 速度較慢,但在 JS 繁重或類付費牆的頁面上會做得更徹底。
若某個 URL 失敗會怎樣?
失敗的 URL 會在結果陣列中將 status 設為錯誤碼,但整次呼叫仍視為成功。無論個別 URL 結果如何,所有提交的 URL 都會計費。
有提供工具 schema 嗎?
GET /api/extract/tool-schema 回傳 OpenAI 函式與 Claude 工具使用定義。