Platforms · Cross-platform search

Cross-platform Search News Scraper API

Two independent news indexes are available through engines: google (the default, 50 country editions) and bing (49 of those editions). They overlap very little in practice, so asking for both roughly doubles the distinct articles a query returns and is the way to get a text snippet on most rows: the google engine returns headline, publisher, link, image and an exact publish time but rarely a snippet, while the bing engine returns a description on effectively every row. Every article carries engine provenance and a published_at_precision of exact or approximate, because the two indexes do not report publish times with the same fidelity. Supports streaming via Accept: text/event-stream (the plan_refined chunk always carries the expanded legs with per-leg provenance before any leg settles) and sync via Accept: application/json.

GET /api/v1/data/cross-platform/news · 2 credits per call · The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.

Inputs

  • query (required): Boolean AND/OR/NOT and quoted phrases are supported; Google advanced operators (site:, intitle:, before:) are rejected.
  • sort: Ordering of the merged articles: relevance (default, each engine's own ranking) or date (newest first, undated articles last).
  • time_range: Recency window (day | week | month | year, default day). Ignored when from/to is present.
  • from: Lower publish-date bound, YYYY-MM-DD or Unix seconds.
  • to: Upper publish-date bound, YYYY-MM-DD or Unix seconds.
  • publisher: Bare publisher domain filter (e.g. bbc.com; no scheme or path).
  • max_legs: Max legs.
  • group: Optional. items[] and its order are unchanged. JSON responses only (ignored on the event stream).

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].angle_id (string): The search angle that found the article.
  • items[].canonical_url (string): The link with tracking and fragments removed.
  • items[].country_code (string): The country of the leg that found the article.
  • items[].domain (string): The outlet's domain.
  • items[].effective_query (string): The query that found the article.
  • items[].engine (string): Which news engine returned the article.
  • items[].id (string)
  • items[].image_url (string): A preview image, or null.
  • items[].language_code (string): The language of the leg that found the article.
  • items[].legs_returned (array): Every leg that returned the article.
  • items[].placement (string): Where the engine placed the article, or null.
  • items[].published_at (string): When the article was published, ISO 8601, or null. Never guessed.
  • items[].published_at_precision (string)
  • items[].query_source (string)
  • items[].rank (integer): The article's position in the leg's results, or null.
  • items[].snippet (string)
  • items[].source_name (string): The outlet's name.
  • items[].title (string): The article's headline.
  • items[].url (string): The article's link.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • The price depends on what the call returns: from 2 credits to 62 credits.
  • The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.

Example call

GET /api/v1/data/cross-platform/news?query=samsung+galaxy+launch

Questions

How much does the Cross-platform Search News API cost?

Each call costs 2 to 62 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send query. 7 more inputs are optional: sort, time_range, from, to, publisher, max_legs and group. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.

Do I need a Cross-platform search account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

More Cross-platform search scraper APIs