
NewsAPI
Connect NewsAPI to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your NewsAPI key to pull live and historical news articles into the PostHog Data warehouse.
Create a free API key at newsapi.org. The search query drives the everything and top_headlines tables; the sources table lists available publishers.
Note: NewsAPI's free Developer plan is limited to articles from the last month and is for development/testing only — a paid plan is required for production use and older articles.
Configuration
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Search query | text | Yes |
Language (optional, 2-letter code) | text | No |
Linking NewsAPI to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select NewsAPI
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import