Detik scraper
ExtractHub extractors are versioned web scrapers: each one is a saved scraper for one kind of page that returns structured JSON through an API. For Detik (detik.com and news.detik.com) there are 4 public extractors: Detik.com - news index (latest news), detik.com - channel and category page, detik.com - home page and Detik.com - article. Together they return fields such as pageTitle, canonicalUrl, currentPage, nextPageUrl, sections, stories, url, articleId and 20 more fields. Call one with your API key and a pinned extractor_id, from the REST API, the Batch API or an AI agent over MCP.
Detik scrapers on ExtractHub
-
news.detik.com · @extracthub1/detik-index@1 (v1.1.0)
The latest-news index of a detik.com channel (news.detik.com/indeks, finance.detik.com/indeks, ...): per story the position, headline, link, image, publish time (Unix and WIB label) and relative time, plus the page title, current page and next-page link. Plain fetch through an Indonesian proxy. Also returns the sections of the channel navigation bar (Berita, Jabodetabek, Internasional, ...).
Fields:
Detik.com - news index (latest news) scraper: fields, versions and examples →pageTitle,canonicalUrl,currentPage,nextPageUrl,sections,stories -
news.detik.com · @extracthub1/detik-section@1 (v1.0.0)
Stories of a detik.com channel or category page (news.detik.com, news.detik.com/berita, finance.detik.com, ...): headline, link, publish time (Unix and WIB label), relative time and image in page order, plus the page title and link and the sections of the navigation bar (the channel's categories, or the detik channels on www.detik.com). Pairs with @extracthub1/detik-article.
Fields:
detik.com - channel and category page scraper: fields, versions and examples →pageTitle,url,sections,stories -
detik.com · @extracthub1/detik-home@1 (v1.0.0)
Stories of the detik.com portal home page (www.detik.com): headline, link, publish time (Unix and WIB label), relative time and image in page order, plus the page title and link and the sections of the navigation bar (detikNews, detikFinance, detikHot, detikInet, detikSport, ... and the regional channels). Pairs with @extracthub1/detik-section and @extracthub1/detik-article.
Fields:
detik.com - home page scraper: fields, versions and examples →pageTitle,url,sections,stories -
news.detik.com · @extracthub1/detik-article@1 (v1.1.0)
One detik.com article (news.detik.com, finance.detik.com, sport.detik.com, ... /d-<id>/<slug>): article id, headline, description, author, channel label, breadcrumb, publish and update time, dateline city, lead image with caption, tags, subheadings, body paragraphs (all pages of multi-page stories) and full text. Plain fetch through an Indonesian proxy (NewsArticle JSON-LD, dtk meta tags and page markup). Also returns the whole body as Markdown (content), with the subheadings in place between the paragraphs.
Fields:
Detik.com - article scraper: fields, versions and examples →url,articleId,headline,description,author,byline,channel,breadcrumb,articleType,datePublishedand 12 more
How to call the Detik scraper API
Every call needs your API key (X-API-Key) and a pinned extractor_id. This example uses
@extracthub1/detik-index@1 (Detik.com - news index (latest news)); open an extractor's page for its batch, Python and Node examples.
curl -X POST "https://api.extracthub.io/api/extractor/extract" \
-H "X-API-Key: $EXTRACTHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"extractor_id": "@extracthub1/detik-index@1",
"target": { "url": "https://news.detik.com/..." }
}' Use ExtractHub to extract https://news.detik.com/... with @extracthub1/detik-index@1 {
"tool": "extract",
"arguments": {
"extractor_id": "@extracthub1/detik-index@1",
"url": "https://news.detik.com/..."
}
} See the web scraping API reference and the web scraping MCP server setup.
Need another Detik page type?
Build your own Detik scraper with an AI agent and the extractor builder skill, or in ExtractHub Studio. It stays private until you release it.
Detik scraper: frequently asked questions
Is there a ready-made Detik scraper?
Yes. ExtractHub lists 4 public extractors for detik.com and news.detik.com. An extractor is a versioned web scraper for one kind of page: its owner released it as an immutable version with an output schema, and you call that version with your own API key.
What data can I scrape from Detik?
Detik.com - news index (latest news) returns pageTitle, canonicalUrl, currentPage, nextPageUrl, sections and stories. detik.com - channel and category page returns pageTitle, url, sections and stories. detik.com - home page returns pageTitle, url, sections and stories. Detik.com - article returns url, articleId, headline, description, author, byline and 16 more. Every field is listed on the extractor's page with a sample response.
How do I call the Detik scraper API?
Send GET or POST https://api.extracthub.io/api/extractor/extract with your API key in the X-API-Key header, extractor_id=@extracthub1/detik-index@1 and the URL of a news.detik.com page as the target. For many URLs use POST https://api.extracthub.io/api/extractor/batch. AI agents call the same extractor through the extract tool of the ExtractHub MCP server at https://api.extracthub.io/mcp.
Can I build my own Detik scraper?
Yes. Build an extractor for any Detik page type in ExtractHub Studio, or let an AI agent such as Claude Code build, test and release it with the open-source extractor builder skill. New extractors are private until you release them.