Auto-detect a page type and extract it by URL
diffbot.x.extract-analyzeAutomatically identifies the type of page being processed and routes it through the relevant Diffbot API
- Price
- $0.001196/call제공업체 원가
- Success rate
- 99.9%Last 30 days · 7,365 calls
- Latency p50
- 2.6 sp95 24 s
- Last verified
- 2026. 7. 28.Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.x.extract-analyze?url=https%3A%2F%2Fwww.diffbot.com%2Fproducts%2Fextract%2FPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
different HOST than base_url — api.diffbot.com, not kg.diffbot.com
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
url | 문자열 | 필수 | target URL to extract, URL-encoded | https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/ |
mode | 문자열 | 선택 | restrict extraction to one page type: article, product, discussion, image, video, list, event | |
proxy | 문자열 | 선택 | custom proxy IP for fetching the target page | |
fields | 문자열 | 선택 | comma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb | |
scroll | 문자열 | 선택 | 'slow' or 'fast' — triggers lazy-loaded content | |
timeout | 정수 | 선택 | ms to wait for content retrieval | 30000 |
callback | 문자열 | 선택 | JSONP callback for cross-domain AJAX | |
fallback | 문자열 | 선택 | which API to fall back to if page type cannot be determined | |
useProxy | 문자열 | 선택 | 'default' routes through Diffbot's datacenter proxy (2 credits/page instead of 1); 'none' disables proxies | |
proxyAuth | 문자열 | 선택 | username:password for the custom proxy | |
discussion | 불리언 | 선택 | pass false to disable automatic comment/review extraction | true |
renderDelay | 정수 | 선택 | extra rendering ms before DOM extraction, max 180000 | |
- 쿼리 파라미터
url문자열필수target URL to extract, URL-encoded
예시:
https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/mode문자열선택restrict extraction to one page type: article, product, discussion, image, video, list, event
proxy문자열선택custom proxy IP for fetching the target page
fields문자열선택comma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb
scroll문자열선택'slow' or 'fast' — triggers lazy-loaded content
timeout정수선택ms to wait for content retrieval
예시:
30000callback문자열선택JSONP callback for cross-domain AJAX
fallback문자열선택which API to fall back to if page type cannot be determined
useProxy문자열선택'default' routes through Diffbot's datacenter proxy (2 credits/page instead of 1); 'none' disables proxies
proxyAuth문자열선택username:password for the custom proxy
discussion불리언선택pass false to disable automatic comment/review extraction
예시:
truerenderDelay정수선택extra rendering ms before DOM extraction, max 180000
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.x.extract-analyze?url=https%3A%2F%2Fwww.diffbot.com%2Fproducts%2Fextract%2F' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.x.extract-analyze?url=https%3A%2F%2Fwww.diffbot.com%2Fproducts%2Fextract%2F",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.x.extract-analyze?url=https%3A%2F%2Fwww.diffbot.com%2Fproducts%2Fextract%2F", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.001196/call이며 서비스 수수료가 포함되어 있습니다.