Discover/Detik API
live

Detik APIdetik.com

Access Detik.com articles via API. Search by keyword, browse by channel or tag, and extract full article content including author, body text, and publish date.

Endpoint health
verified 3d ago
get_articles_by_tag
search_articles
get_latest_news
get_channel_articles
search_news_only
6/6 passing latest checkself-healing
Endpoints
6
Updated
26d ago

What is the Detik API?

The Detik.com API gives developers access to Indonesia's leading news portal through 6 endpoints covering search, channel browsing, tag-based filtering, and full article extraction. The get_article_detail endpoint returns the complete article body, author, publish date, image URL, and channel for any Detik.com article URL. Search endpoints return paginated result sets with titles, snippets, publish times, and thumbnail URLs.

Try it
Page number for pagination.
Search keyword.
Sort order for results.
Whether to include full article content for the top 5 results. Each fetched article is an additional request.
api.parse.bot/scraper/b18c550f-e6bd-4d30-bbf4-25f638307091/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/b18c550f-e6bd-4d30-bbf4-25f638307091/search_articles?page=1&query=teknologi&sortby=relevance&include_content=false' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace detik-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.detik.com_news_api import Detik, Sort, Channel

detik = Detik()

# Search for technology articles sorted by time
for article in detik.articlesummaries.search(query="teknologi", sortby=Sort.TIME, limit=5):
    print(article.title, article.url, article.publish_time)

# Get full content of the first search result
for summary in detik.articlesummaries.search(query="ekonomi", limit=1):
    full = summary.details()
    print(full.title, full.author, full.publish_date)

# Browse a channel using the Channel enum
for item in detik.detikchannel(Channel.FINANCE).articles.list(limit=3):
    print(item.title, item.snippet, item.thumbnail_url)

# Get articles by tag
for item in detik.tag("pemilu").articles.list(limit=5):
    print(item.title, item.url)

# Popular headlines
for headline in detik.articlesummaries.popular(limit=10):
    print(headline.title, headline.publish_time)
All endpoints · 6 totalmissing one? ·

Full-text search over detik.com articles across all channels. Results are paginated and can be sorted by relevance or recency. Optionally fetches full article content for the first 5 results (incurs additional round-trips). Returns article summaries with title, URL, snippet, publish time, channel, and thumbnail.

Input
ParamTypeDescription
pageintegerPage number for pagination.
queryrequiredstringSearch keyword.
sortbystringSort order for results.
include_contentbooleanWhether to include full article content for the top 5 results. Each fetched article is an additional request.
Response
{
  "type": "object",
  "fields": {
    "total": "integer count of articles returned on this page",
    "articles": "array of article summary objects with title, url, snippet, publish_time, channel, thumbnail_url"
  },
  "sample": {
    "data": {
      "total": 33,
      "articles": [
        {
          "url": "https://news.detik.com/berita/d-8526336/kisruh-pcmb-jabar-pengelolaan-spmb-dialihkan-dari-disdik-ke-diskominfo",
          "title": "Kisruh PCMB Jabar, Pengelolaan SPMB Dialihkan dari Disdik ke Diskominfo",
          "channel": "",
          "snippet": "Gubernur Jabar Dedi Mulyadi alihkan pengelolaan SPMB ke Diskominfo setelah keluhan PCMB 2026.",
          "publish_time": "22 menit yang lalu",
          "thumbnail_url": "https://akcdn.detik.net.id/community/media/visual/2026/06/09/gubernur-jabar-dedi-mulyadi-di-kantor-disdik-1780985619649_43.jpeg?w=250&q=90"
        }
      ]
    },
    "status": "success"
  }
}

About the Detik API

Search and Discovery

The search_articles endpoint accepts a required query string and supports sorting by relevance or time. Set include_content to true to receive full article body text for the top 5 results in a single call, avoiding separate lookups. The search_news_only endpoint targets Detik's news-specific index and always returns results sorted by latest, useful when time-ordered coverage of a breaking topic matters more than relevance ranking. Both endpoints are paginated via the page parameter and return total, title, url, snippet, publish_time, channel, and thumbnail_url per article.

Channel and Tag Browsing

get_channel_articles lets you pull articles from named verticals: news, finance, food, inet, sport, health, travel, and oto. Pagination support varies by channel. get_articles_by_tag takes a tag slug — for example pemilu or teknologi — and returns paginated articles associated with that tag. Both endpoints echo the requested channel or tag name back in the response, making it straightforward to route results in multi-feed pipelines.

Full Article Extraction

get_article_detail takes a full Detik.com article URL and returns title, author, channel, content (the complete body text), image_url, and publish_date. This is the primary endpoint when you need article text rather than just headlines. The get_latest_news endpoint requires no parameters and returns up to 20 popular headlines from across all channels, each with the standard article summary fields.

Reliability & maintenanceVerified

The Detik API is a managed, monitored endpoint for detik.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when detik.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official detik.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3d ago
Latest check
6/6 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Monitor Indonesian news coverage of a specific topic by polling search_articles with a keyword and sorting by time.
  • Build a news aggregator for Detik's finance or inet channels using get_channel_articles with pagination.
  • Extract full article text via get_article_detail for NLP pipelines such as sentiment analysis or topic modeling on Indonesian-language content.
  • Track election or political coverage by querying get_articles_by_tag with tags like pemilu and storing publish times.
  • Populate a daily briefing feed using get_latest_news to retrieve up to 20 current headlines with thumbnails and channel labels.
  • Cross-reference author output by extracting the author field from multiple get_article_detail calls and grouping by byline.
  • Feed article snippet and publish_time data into a timeline visualization of how a story evolves across Detik's channels.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Detik.com offer an official developer API?+
Detik.com does not publish an official public developer API or documented data access program for third-party developers.
What does `get_article_detail` return that search endpoints do not?+
Search endpoints return summary fields: title, url, snippet, publish_time, channel, and thumbnail_url. get_article_detail adds the full content body text, author byline, and a higher-resolution image_url. The include_content flag on search_articles partially bridges this gap but only for the top 5 results per page.
Does the API cover all Detik.com channels?+
get_channel_articles supports eight named channels: news, finance, food, inet, sport, health, travel, and oto. Other Detik verticals such as wolipop, hot, or edu are not currently covered. You can fork this API on Parse and revise it to add those missing channels.
Is there a way to filter articles by date range?+
The current endpoints do not expose a date-range filter. search_articles supports sorting by time to surface the most recent results first, and search_news_only always returns results in reverse-chronological order, but neither accepts explicit start or end date parameters. You can fork this API on Parse and revise it to add date-range filtering if the underlying source supports it.
How does pagination behave across endpoints?+
Most endpoints accept an integer page parameter. get_channel_articles notes that pagination support varies by channel, so some channels may not return additional pages beyond the first. get_latest_news accepts no parameters and always returns up to 20 articles with no pagination.
Page content last updated . Spec covers 6 endpoints from detik.com.
Related APIs in News MediaSee all →
nrk.no API
Access the latest news from Norway's leading broadcaster NRK.no, including front-page stories, category-specific articles, regional news, and breaking news updates through a unified search and browsing interface. Stay informed with full article content, RSS feeds, and real-time news ticker notifications across all major topics.
kaskus.co.id API
Search and browse Kaskus forum discussions across communities, discover trending threads, and read full post content from Indonesia's largest online forum. Find hot topics, explore community-specific conversations, and access popular communities all in one place.
toutiao.com API
Browse personalized news feeds, discover trending articles and hot topics, search content across categories, view detailed articles with comments, and explore author profiles on Toutiao. Access video feeds and stay updated with the latest news and trending stories all in one place.
tek.no API
Access the latest technology news, in-depth reviews, current deals, and service comparisons from Norway's leading tech site tek.no. Search and browse articles across gaming, guides, mobile subscriptions, and broadband plans to stay informed on tech products and services.
jdih.kemenkeu.go.id API
Search and retrieve Indonesian Ministry of Finance legal documents with detailed information including document types, metadata, and downloadable files. Browse legal products by category and access comprehensive details about regulations, policies, and official legal materials from Indonesia's financial authority.
sneakernews.com API
Browse the latest sneaker news, search articles by keyword, and look up upcoming release dates — including pricing, images, and retailer links. Also surfaces per-page ad slot inventory and density metrics for programmatic and publisher analysis.
tv2.no API
Access the latest news, sports updates, and TV schedules from tv2.no, including live match information, articles by category, and video content. Browse frontpage articles, track live sports matches with detailed stats, check the TV guide, and follow topic-specific news feeds all in one place.
pddikti.kemdiktisaintek.go.id API
Search and retrieve comprehensive information about Indonesian higher education institutions, including details about students, lecturers, universities, and their study programs from the official national education database. Quickly look up specific universities, academic staff profiles, and available degree programs to research educational options or verify institution credentials.