New York Times

The New York Times is an American daily newspaper which features top articles across many sections, including politics, technology, and opinion.

Integrate the New York Times API with the Formatting API

Setup the New York Times API trigger to run a workflow which integrates with the Formatting API. Pipedream's integration platform allows you to integrate New York Times and Formatting remarkably fast. Free for developers.

[Data] Convert JSON to String with Formatting API on New Article Published from New York Times API
New York Times + Formatting
 
Try it
[Data] Parse JSON with Formatting API on New Article Published from New York Times API
New York Times + Formatting
 
Try it
[Date/Time] Add/Subtract Time with Formatting API on New Article Published from New York Times API
New York Times + Formatting
 
Try it
[Date/Time] Compare Dates with Formatting API on New Article Published from New York Times API
New York Times + Formatting
 
Try it
[Date/Time] Format with Formatting API on New Article Published from New York Times API
New York Times + Formatting
 
Try it
New Article Published from the New York Times API

Emit new event when an article is published.

 
Try it
[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
[Data] Parse JSON with the Formatting API

Parse a JSON string

 
Try it
[Date/Time] Add/Subtract Time with the Formatting API

Add or subtract time from a given input

 
Try it
[Date/Time] Compare Dates with the Formatting API

Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.

 
Try it
[Date/Time] Format with the Formatting API

Format a date string to another date string

 
Try it

Overview of New York Times

The New York Times API offers a variety of endpoints to access different types of news and information. With Pipedream, you can tap into this wealth of data to automate tasks, enrich applications with the latest news, or even analyze trends. Workflows on Pipedream triggered by NYT's API can range from sending daily news briefings to your communication platform, to analyzing article metadata for SEO research, or even keeping track of the most popular stories for content curation.

Connect New York Times

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    new_york_times: {
      type: "app",
      app: "new_york_times",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.nytimes.com/svc/topstories/v2/arts.json`,
      params: {
        "api-key": `${this.new_york_times.$auth.api_key}`,
      },
    })
  },
})

Connect Formatting

1
2
3
4
5
6
export default defineComponent({
  async run({ steps, $ }) {
    const text = ' Hello world! ';
    return text.trim()
  },
})