APITube Help Center

Polling vs Streaming: How to Keep News Data Fresh

Choose scheduled searches or live delivery for your news updates

Erick Horn

Written by Erick Horn

August 22, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

Polling vs streaming: how to keep news data fresh

Polling means searching on a schedule. Use it for digests, reports or updates that can wait a few minutes. Use SSE, WebSocket or webhooks when your app needs articles soon after they become available.

How do I poll for new articles correctly?

Repeat a search with a date window that overlaps the previous run. Save article IDs so you can skip articles you already processed:

curl "https://api.apitube.io/v1/news/everything?organization.name=Tesla&language.code=en&published_at.start=NOW-1HOUR&per_page=250&api_key=YOUR_API_KEY"
  • Overlap dates. If you poll every 30 minutes, search the last hour with published_at.start=NOW-1HOUR. This helps catch articles that become available after their publication time.
  • Track IDs. Skip an id you have already processed. Keep records long enough to cover your overlapping searches.
  • Fetch every page. A page holds up to 250 articles on Professional and Corporate, 200 on Basic, 50 on Starter or 10 on Free. Follow next_page until has_next_pages is false. See how to paginate results.

See the date-range guide for values such as NOW-1HOUR, NOW-24HOURS and NOW-7DAYS.

When is polling the right choice?

Use polling when the job already runs on a schedule: a daily digest, an hourly report or a nightly download. It needs regular HTTP requests, without an open stream or a public webhook endpoint.

Each search that returns articles uses one request. Empty searches are free. Repeated articles still count as results, so overlapping searches can use quota even when you skip those articles in your app.

Free data is delayed by 12 hours across search and live delivery. Opening a stream does not remove that delay. Free allows 10 search requests per minute and one SSE or WebSocket connection, with preview article text.

When should I switch to push delivery?

Use push delivery for live headlines, alerts or other updates where a short delay matters. SSE checks for matches about every 30 seconds; WebSocket and webhooks check about every 10 seconds. Delivery still depends on when articles become available and your plan’s delay.

Each delivered article uses one credit from that method’s separate quota. Open connections, heartbeats and periods without matches are free. Your app must handle stream reconnection or keep a webhook endpoint available.

See SSE vs WebSocket vs webhooks to choose a method, and the News API parameter reference for filters.

Can I combine both?

Yes. Use a narrow stream for urgent alerts and scheduled searches for reports or historical data. If the same article arrives through both, each method charges according to its own rules. Separate the filters when you do not need duplicate coverage.

Common Questions

Can polling miss articles entirely?

Yes. A search window can close before a late article becomes available, or you may leave pages unread. Overlap the windows, fetch every page and skip previously seen IDs to reduce those gaps. An overlap is not a guarantee that no article will arrive later.

How often can I poll?

Stay within your account’s rate limit: 10 requests per minute on Free, 50 on Starter, Basic and Professional, or 200 on Corporate. Test keys allow 15 per minute. Going over the limit returns 429 ER0203; see how to fix rate-limit errors.

Choose an interval that matches how quickly your app needs updates and how many searches it runs.

Is polling cheaper than streaming?

Compare the number of non-empty searches with the number of delivered articles. Polling can collect many articles for one request, while a stream charges for each article. Empty searches and idle streams are both free. Choose based on volume, update speed and your available quotas.


Related Articles