WebExtrator Intelligent Extraction API Integration Guide
POST https://api.acedata.cloud/webextrator/extract
The WebExtrator Intelligent Extraction API converts a URL into typed structured results — articles, products, recipes, videos, discussions, job postings, and more, along with cleaned Markdown and plain text. When you want "clean structured data" rather than raw HTML, this is the API to use.
¶ Application Process
To use the WebExtrator service page, first go to the Ace Data Cloud Console to obtain your API Token for later use.

If you have not yet logged in or registered, you will be automatically redirected to the login page to register and log in, and then automatically returned to the current page.
A general application's API Key can be used for services enabled for the account; a dedicated application's Key is used within that application's service scope. Please check the Key's permissions, validity period, and limits, and confirm that the application balance is sufficient to pay for this request. Available trial credit is subject to what is shown in the account; if the balance is insufficient, click the "Recharge" button.
📘 Full documentation: WebExtrator service page →
¶ Authentication
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
¶ Request Parameters
Extract accepts all parameters of the Render API
(url, user_agent, timeout, wait_until, delay, wait_for_selector,
block_resources, headers, cookies, callback_url, bypass_cache,
cache_ttl_seconds, async), plus two Extract-specific fields:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
expected_type |
enum | ❌ | Automatically determined | Page type hint: product / article / general. Specifies the expected result type. |
enable_llm |
boolean | ❌ | false |
Allows LLM extraction when schema.org does not match. On pages without JSON-LD, such as Amazon / HN / Greenhouse, this must be enabled to obtain typed results. |
¶ Synchronous Response
{
"success": true,
"task_id": "550e8400-e29b-41d4-a716-446655440000",
"trace_id": "550e8400-e29b-41d4-a716-446655440001",
"started_at": 1777717800.123,
"finished_at": 1777717802.535,
"elapsed": 2.412,
"data": {
"kind": "extract",
"url": "https://en.wikipedia.org/wiki/Diffbot",
"finalUrl": "https://en.wikipedia.org/wiki/Diffbot",
"contentType": "article",
"title": "Diffbot",
"description": "American machine learning and knowledge management company",
"byline": "Contributors to Wikimedia projects",
"language": "en",
"siteName": "Wikipedia",
"publishedAt": "2007-08-08T05:47:27Z",
"images": ["https://en.wikipedia.org/static/images/icons/enwiki-25.svg"],
"links": ["https://en.wikipedia.org/wiki/Machine_learning"],
"markdown": "# Diffbot\n\nDiffbot is a developer of machine learning ...",
"text": "Diffbot is a developer of machine learning algorithms ...",
"structured": {
"schemaOrg": { "primary": { /* 类型化实体 */ }, "breadcrumbs": [], "all": [] },
"openGraph": { "title": "...", "description": "...", "image": "...", "type": "..." },
"jsonLd": [ /* 原始 JSON-LD */ ]
},
"rawSignals": {
"hasJsonLd": true,
"title": "Diffbot - Wikipedia",
"metaDescription": null,
"pageStatus": 200,
"textLength": 11473
},
"elapsedMs": 2412
}
}
¶ Top-Level Fields
| Field | Type | Description |
|---|---|---|
kind |
string | Fixed value "extract". |
url |
string | The URL you submitted. |
finalUrl |
string | The final URL after redirects. |
contentType |
enum | Page type: product / article / general. |
title |
string | Page title. |
description |
string? | Page description or summary. |
byline |
string? | Author, channel, or company. |
language |
string? | <html lang>. |
siteName |
string? | og:site_name. |
publishedAt |
string? | Publication time, in ISO 8601 format. |
images |
string[] | Up to 50 <img src> values, resolved to absolute URLs, deduplicated, with data: URIs discarded. |
links |
string[] | Up to 100 external links, with fragments / javascript: / mailto: / tel: filtered out. |
markdown |
string | The page's Markdown content. |
text |
string | The page's plain text. |
structured |
object | Complete structured results, see below. |
rawSignals |
object | Diagnostic information for debugging. |
cached |
boolean? | true when the cache is hit. |
cacheStoredAt |
number? | Unix timestamp in milliseconds when the cache entry was first written. |
¶ data.structured Subfields
| Subfield | When Present | Description |
|---|---|---|
schemaOrg |
Always | { primary, breadcrumbs, all }. primary is the highest-priority typed entity; null when none is found. |
openGraph |
Always | { title, description, image, type }, from <meta property="og:*">. |
jsonLd |
Always | Raw JSON array of all <script type="application/ld+json"> blocks. |
llm |
When the LLM runs and succeeds | { kind, data, model, promptCharCount }, the typed result. |
llmError |
When the LLM runs but fails | { kind, error, model }; the request can still return other extracted fields. |
amazon |
When the URL is amazon.* |
Legacy Amazon extension result; use typed results for new integrations. |
¶ schema.org Result Types
structured.schemaOrg.primary supports the following result types:
| schema.org type | kind | Output fields |
|---|---|---|
Product |
product | name, sku, gtin, model, color, brand, url, images, offer.{price,currency,availability,condition,seller}, rating.{value,count}, reviews[], properties[] |
Recipe |
recipe | name, description, image, datePublished, author, cookTime, prepTime, totalTime, recipeYield, ingredients[], instructions[], nutrition, rating, keywords, recipeCategory, recipeCuisine |
VideoObject |
video | name, description, thumbnailUrl, uploadDate, duration, embedUrl, contentUrl, channel, interactionCount |
JobPosting |
job | title, description, datePosted, validThrough, hiringOrganization, jobLocation, baseSalary, employmentType |
Event (including *Event) |
event | name, description, startDate, endDate, location.{name,address}, organizer, offer.{url,price,currency} |
Article / NewsArticle / BlogPosting / ScholarlyArticle / TechArticle / Report / *NewsArticle |
article | subtype, headline, description, datePublished, dateModified, author, publisher, image[], url, sameAs[] |
FAQPage |
faq | questions[{question, answer}] |
BreadcrumbList |
(attached to sibling) | Always output to structured.schemaOrg.breadcrumbs[]; never used as primary. |
¶ LLM Result Types
When enable_llm: true and the page has no usable schema.org structured data, the following types of extraction results can be returned:
| Kind | Required fields | Optional fields |
|---|---|---|
article |
headline |
description, byline, publishedAt, language, topics[], sections[{heading,summary}] |
product |
name |
description, brand, sku, price, currency, availability, rating.{value,count}, bullets[], specifications[{name,value}] |
discussion |
title |
author, postedAt, points, commentCount, body, url |
recipe |
name |
description, author, cookTime, prepTime, totalTime, recipeYield, ingredients[], instructions[], nutrition, rating, keywords[] |
video |
name |
description, channel, uploadDate, duration, viewCount, likeCount, thumbnailUrl, transcript |
job |
title |
description, company, location, remote, employmentType, datePosted, validThrough, salaryMin, salaryMax, salaryCurrency, salaryPeriod, responsibilities[], qualifications[] |
¶ Cache
The same URL, request parameters, cookies, and headers can reuse cached results; async, bypass_cache, and cache_ttl_seconds control execution and caching behavior.
| Field | Effect |
|---|---|
bypass_cache: true |
Skips reading from the cache; the result is still written back, allowing the next identical request to hit the cache. |
cache_ttl_seconds: 0 |
The response is not cached. |
cache_ttl_seconds: N |
Customizes the TTL for this entry (default: 3600 seconds). |
A response served from the cache includes data.cached: true and data.cacheStoredAt: <unix-ms>.
¶ Async Mode and Callbacks
Set async: true to enter async mode (providing callback_url also enters it automatically). The platform immediately returns (HTTP 200):
{
"success": true,
"task_id": "550e8400-...",
"trace_id": "6ba7b810-...",
"started_at": 1777717800.123
}
When the task completes, the full envelope is sent via POST to your callback_url (if configured). You can also query it afterward through /webextrator/tasks.
¶ Examples
¶ 1. Wikipedia Article (schema.org hit, no LLM needed)
curl -X POST https://api.acedata.cloud/webextrator/extract \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://en.wikipedia.org/wiki/Diffbot",
"expected_type": "article"
}'
Key fields in data.structured.schemaOrg.primary:
{
"kind": "article",
"subtype": "Article",
"headline": "American machine learning and knowledge management company",
"datePublished": "2007-08-08T05:47:27Z",
"dateModified": "2025-07-10T20:42:45Z",
"author": { "name": "Contributors to Wikimedia projects", "type": "Organization" },
"publisher": { "name": "Wikimedia Foundation, Inc." }
}
¶ 2. BestBuy Product Page (schema.org hit)
curl -X POST https://api.acedata.cloud/webextrator/extract \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.bestbuy.com/product/apple-airpods-pro-2nd-generation-white/JJ8ZH6TPSW",
"expected_type": "product"
}'
Extracted from schema.org:
{
"kind": "product",
"name": "Apple - Refurbished Excellent - AirPods Pro (2nd generation) - White",
"sku": "10845412",
"model": "MQD83AM/A",
"color": "White",
"brand": "Apple",
"offer": { "price": 159.99, "currency": "USD", "availability": "https://schema.org/InStock", "seller": "Best Buy" },
"rating": { "value": 4.4, "count": 8 }
}
¶ 3. AllRecipes Recipe Page (including nutrition and steps)
curl -X POST https://api.acedata.cloud/webextrator/extract \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.allrecipes.com/recipe/16354/easy-meatloaf/"
}'
Extracted from schema.org:
{
"kind": "recipe",
"name": "Easy Meatloaf",
"cookTime": "PT60M",
"totalTime": "PT75M",
"recipeYield": "8 / 1 (9x5-inch) meatloaf",
"ingredients": ["1 1/2 pounds ground beef", "..."],
"instructions": [{ "text": "Preheat oven to 350°F ..." }, "..."],
"rating": { "value": 4.7, "count": 9348 }
}
¶ 4. HN Discussion Page (no JSON-LD — LLM must be enabled)
curl -X POST https://api.acedata.cloud/webextrator/extract \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://news.ycombinator.com/item?id=37000000",
"enable_llm": true
}'
data.structured.llm.data:
{
"kind": "discussion",
"title": "Show HN: A new way to extract web pages",
"author": "alice",
"points": 173,
"commentCount": 42,
"body": "Hi HN, we built a self-hosted alternative to Diffbot's Analyze API ..."
}
The top-level fields are also backfilled: byline = "alice", publishedAt = "...".
¶ 5. Amazon Product Page (Amazon has no JSON-LD — LLM must be enabled)
curl -X POST https://api.acedata.cloud/webextrator/extract \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.amazon.com/dp/B0BSHF7WHW",
"expected_type": "product",
"enable_llm": true
}'
data.structured.llm.data (typed product):
{
"kind": "product",
"name": "Apple 2023 MacBook Pro M2 Pro 14-inch",
"brand": "Apple",
"price": 1799,
"currency": "USD",
"bullets": ["Apple M2 Pro chip with 10-core CPU", "..."],
"specifications": [{ "name": "Display size", "value": "14.2 inches" }, "..."]
}
¶ Python (requests)
import os, requests
API_KEY = os.environ["ACEDATA_API_KEY"]
resp = requests.post(
"https://api.acedata.cloud/webextrator/extract",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"url": "https://en.wikipedia.org/wiki/Diffbot",
"expected_type": "article",
},
timeout=120,
)
resp.raise_for_status()
data = resp.json()["data"]
primary = (data.get("structured") or {}).get("schemaOrg", {}).get("primary")
print("contentType:", data["contentType"])
print("title: ", data["title"])
print("byline: ", data.get("byline"))
print("publishedAt:", data.get("publishedAt"))
if primary and primary["kind"] == "article":
print("headline: ", primary["headline"])
print("dateModified:", primary.get("dateModified"))
¶ Node.js (fetch)
const apiKey = process.env.ACEDATA_API_KEY;
const res = await fetch('https://api.acedata.cloud/webextrator/extract', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://www.allrecipes.com/recipe/16354/easy-meatloaf/',
}),
});
const { data } = await res.json();
const recipe = data?.structured?.schemaOrg?.primary;
console.log(recipe.name, recipe.cookTime, recipe.ingredients.length, '种配料');
¶ Tips and Pitfalls
- Pass
expected_typewhen you need to specify the page type. For example, usearticlefor article pages andproductfor product pages. enable_llm: trueis free on pages with a schema.org match. The LLM is only called when schema.org has no primary, so it is safe to leave it on by default.- Check
rawSignals.hasJsonLdfirst when debugging. If it istruebutstructured.schemaOrg.primaryisnull, the page's@typeis not yet supported; you can report it to us. structured.llmErroris informational. The request can still return other extracted fields successfully. CheckllmError.errorto identify the cause (timeout, JSON parsing failure, or structure validation failure).links[]on non-article pages are not sorted by relevance. They are cleaned on a best-effort basis, with a limit of 100 links and invalid protocols filtered out.- Cache hits are also billed.
