NewsAPI

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

OptionTypeRequired
API keypasswordYes
Search querytextYes
Language (optional, 2-letter code)textNo

Linking NewsAPI to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select NewsAPI
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Community questions

Questions about this page? or post a community question.