By Paul Scanlon

Fetch data from the New York Times API and render using SSG

  • Gatsby
  • React
  • SSG
  • JavaScript
  • Tailwind

As I’m sure you know, Gatsby is absolutely brills for statically generating web pages using any type of data from any kind of data source. In this post I’ll be explaining how to fetch data from the New York Times Archive API and using two of Gatsby’s built in methods to add the data to Gatsby’s global data layer.