Giphy API and Fetching Data
Explore how to integrate the Giphy API with Next.js to fetch data effectively. Understand different pre-rendering methods, such as static generation, and learn to choose the best approach for SEO needs. This lesson guides you through acquiring an API key and fetching Giphy data for your app.
We'll cover the following...
We'll cover the following...
Introduction
As mentioned in the lesson, types of pre-rendering fetching data can be done in different ways. I want to help you understand which way will be the best for each page and show you examples using the Giphy API, in addition to talking about the pros and cons of each method.
Questions you need to ask yourself
- Does my page require data?
- Will the data change and need to be updated each time the page is loaded?
- Will the data be used