Trusted by 6,000+ developers

PHP News API SDK

Access the APITube News API from PHP. The SDK wraps every REST endpoint — search, headlines, stories, counts, suggestions, and reference data — with typed responses and exceptions. Requires 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

Get what you need without complexity

Access news articles from thousands of sources.

News API

  • Export data in many formats
  • Industry Monitoring
  • Brand Monitoring
  • Market news and trends
  • Risk Management
  • Competitor news
  • Media Monitoring
  • Article tone
  • Trend Analysis
  • Group related articles
  • Forecasting social trends
  • Multiple languages
  • Audience Engagement
  • Geographical Analysis
  • Real-time Breaking News
  • Past articles
  • Custom News Feeds
  • News Aggregation
  • Content Filtering
  • Over 50 integrations

Details about each article

  • Industries
  • Locations
  • Persons
  • Organizations
  • Brands
  • Events
  • Disasters
  • Diseases
  • Links
  • Media
  • Images & Videos
  • Hashtags
  • Authors
  • Source
  • Find duplicate articles
  • Source rank
  • Article Sentiment
  • Readability Score
  • Detect language

Analysis

  • Article tone
  • Analysis of public opinion
  • Categorization
  • Financial Analysis
  • Trend Analysis
  • Group related articles
  • Content Summarization
  • Names and places
  • Keyword Extraction
  • Article topics
  • Event Detection
  • Names and places
  • Text Classification
  • Controversy Detection
  • Source trust scores
  • Engagement Metrics
  • Source viewpoints
  • Quality Ranking
  • Spam Detection
  • Emotion Detection

Search filters

  • Search by Location
  • Search by Date Range
  • Search by Source
  • Search by Category
  • Search by Industry
  • Search by article tone
  • Search by Story
  • Search by source rank
  • Search by Language
  • Search by name or place
  • Search by Keywords
  • Combine terms with AND, OR, NOT
  • Proximity Search
  • Faceted Search
  • Range Queries
  • Search by Author
  • Search by Media Type
  • Search by Breaking News
  • Search by Read Time

More than 300,000+ sources

Teams around the world use APITube to build digital products.

Last updated
5s ago
Total sources
300.000k
Requests yesterday
22.209
Articles added yesterday
119.695k
Total articles
3.88b

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() searches articles and headlines; count() tells you how many articles match your query; suggest() autocompletes categories, topics, industries, and entities; reference methods retrieve lists of people, companies, sources, and journalists; balance() shows your remaining quota; ping() checks the connection.
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 cookies on your device for the site to work and for analytics.