Trusted by 6,000+ developers 




PHP News API SDK
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.
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
- 8s 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.
How to Cache News API Responses for Better Performance
Cache news API responses with content-aware TTLs (30s breaking, 5 min headlines, 1h archive), Redis SWR, and breaking-news bypass. Code included.
Fact-checking workflow with a news API: 7 steps
Build a fact-checking workflow with a news API: search a claim, count cross-source corroboration with real code, and know where automation must stop.
Stock News Alert System with Node.js: 2026 Tutorial
Build a Node.js stock news alert system in one evening: poll APITube, dedupe, gate by sentiment, send Slack alerts. Full code + API comparison.
Entity Extraction from News Articles with spaCy
Build a production spaCy NER pipeline for news articles: model selection (sm vs lg vs trf), Wikidata linking, custom training, build-vs-buy decision.
News Source Credibility 2026: How to Score It
How to score news source credibility: how NewsGuard and Ad Fontes rate outlets, a tunable Python trust score from real API signals, and when to go hybrid.



