Trusted by 6,000+ developers

PHP News API SDK

Access the APITube News API from PHP. The official SDK wraps every REST endpoint — search, headlines, stories, counts, suggestions, and reference data — with typed responses and exceptions. PHP 8.1+ and any PSR-18 HTTP client such as Guzzle.
Free Trial - No credit card required
Rated 5 stars by over 848 users
Realtime news articles from 177 countries
in 60 languages
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify

Benefits

The News API, the PHP way

Run composer require apitube/news-api. The package is published on Packagist as apitube/news-api and requires PHP 8.1+ plus a PSR-18 HTTP client (such as Guzzle) and a PSR-17 factory.

Get Free API Key
Learn more about API
1
Install in one line with Composer
2
Works with any PSR-18 HTTP client (Guzzle)
3
Typed responses and exceptions
4
Covers everything, top-headlines, article, story, raw
5
PHP 8.1+ ready

Features

Don’t waste time on complex features

Complex features made simple. Our API provides a simple way to access news articles from around the world. We provide a simple, consistent, and easy-to-use API to access news articles from thousands of sources.

News API

  • Export data in many formats
  • Industry Monitoring
  • Brand Monitoring
  • Market Intelligence
  • Risk Management
  • Competitive Intelligence
  • Media Monitoring
  • Sentiment Analysis
  • Trend Analysis
  • Story Grouping
  • Forecasting social trends
  • Multi-language Support
  • Audience Engagement
  • Geographical Analysis
  • Real-time Breaking News
  • Historical Data Access
  • Custom News Feeds
  • News Aggregation
  • Content Filtering
  • Over 50 integrations

Extract Additional Data

  • Industries
  • Locations
  • Persons
  • Organizations
  • Brands
  • Events
  • Disasters
  • Diseases
  • Links
  • Media
  • Images & Videos
  • Hashtags
  • Authors
  • Source
  • Duplicate Detection
  • Publisher Rank
  • Article Sentiment
  • Readability Score
  • Language Detection

Analysis

  • Sentiment Analysis
  • Analysis of public opinion
  • Categorization
  • Financial Analysis
  • Trend Analysis
  • Story Grouping
  • Content Summarization
  • Entity Recognition
  • Keyword Extraction
  • Topic Modeling
  • Event Detection
  • Named Entity Recognition
  • Text Classification
  • Controversy Detection
  • Trust Score Analysis
  • Engagement Metrics
  • Source Bias Detection
  • Quality Ranking
  • Spam Detection
  • Emotion Detection

Advanced Searching

  • Search by Location
  • Search by Date Range
  • Search by Source
  • Search by Category
  • Search by Industry
  • Search by Sentiment
  • Search by Story
  • Search by Publisher Rank
  • Search by Language
  • Search by Entity
  • Search by Keywords
  • Boolean Search
  • Proximity Search
  • Faceted Search
  • Range Queries
  • Search by Author
  • Search by Media Type
  • Search by Breaking News
  • Search by Read Time

More than 500,000+ sources

APITube is trusted by teams around the world to help them build and deliver amazing digital experiences faster than ever before.

Last updated
8s ago
Total sources
512.645k
Requests yesterday
24.879
Articles added yesterday
102.027k
Total articles
3.84b

Frequently asked questions

Run composer require apitube/news-api. The package is published on Packagist as apitube/news-api and requires PHP 8.1+ plus a PSR-18 HTTP client (such as Guzzle) and a PSR-17 factory.
Create a client with new Client(apiKey: 'your-api-key') and call $client->news('everything', ['title' => 'artificial intelligence', 'language.code' => 'en', 'per_page' => 5]). Then iterate $response->articles.
news() for everything, top-headlines, article, story, and raw; count() for match counts; suggest() for categories, topics, industries, and entities autocomplete; reference methods for people, companies, sources, and journalists; plus balance() and ping().
It throws typed exceptions: AuthenticationException on HTTP 401, RateLimitException on HTTP 429 (with a retryAfter value), and ApiException for other API errors, exposing the request id.
No. The SDK covers the REST endpoints. For real-time delivery, use the SSE stream, WebSocket, or webhooks directly — see the Real-Time News API pages.

Related Solutions

Resources

Developers

We use cookies

By clicking "Accept", you agree to the storing of cookies on your device for functional and analytics.