What do you want to automate

with News API and GeoDB Cities?

Prompt, edit and deploy AI agents that connect to News API, GeoDB Cities and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Search Everything with the News API API

Search through millions of articles from over 150,000 large and small news sources and blogs. See the documentation

 
Try it
Find Cities with the GeoDB Cities API

Find cities, filtering by optional criteria. If no criteria are set, you will get back all known cities with a population of at least 1000. See the docs

 
Try it
Search Top Headlines with the News API API

Retrieve live top and breaking headlines for a category, single source, multiple sources, or keywords. See the documentation

 
Try it
Get Country Details with the GeoDB Cities API

Get the details for a specific country, including number of regions. See the docs

 
Try it
Get Region Details with the GeoDB Cities API

Get the details of a specific country region, including number of cities. See the docs

 
Try it
Integrate the News API API with the GeoDB Cities API
Setup the News API API trigger to run a workflow which integrates with the GeoDB Cities API. Pipedream's integration platform allows you to integrate News API and GeoDB Cities remarkably fast. Free for developers.

Connect News API

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    news_api: {
      type: "app",
      app: "news_api",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://newsapi.org/v2/everything`,
      headers: {
        "X-Api-Key": `${this.news_api.$auth.api_key}`,
      },
      params: {
        "q": `Computer Science`,
      },
    })
  },
})

Overview of GeoDB Cities

The GeoDB Cities API lets you tap into a rich dataset of worldwide cities, their attributes, and related data. On Pipedream, you can use this API to create workflows that automate location-based tasks, enrich data with geographical context, or power apps with location intelligence. For instance, you could trigger a workflow whenever a new city is added to a database, gather demographic information based on city names, or even integrate with travel platforms to plan itineraries.

Connect GeoDB Cities

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    geodb_cities: {
      type: "app",
      app: "geodb_cities",
    }
  },
  async run({steps, $}) {
    const data = {
      "query": `{country(id:"US"){name region(code:"CA"){name populatedPlaces(first:10){totalCount pageInfo{startCursor endCursor hasNextPage}edges{node{name}}}}}}`,
    }
    return await axios($, {
      method: "post",
      url: `http://geodb-free-service.wirefreethought.com/graphql`,
      headers: {
        "x-rapidapi-key": `${this.geodb_cities.$auth.api_key}`,
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo