getInitialProps: with dynamic routing

This page uses getInitialProps() to fetch a TV show from an API.
The ID is set in the URL: /getInitialProps/:id

You can change the ID to any number between 1-10000. Try it!

View code on GitHub

Show #6508: Atlanta

https://api.tvmaze.com/shows/6508

Type: Scripted
Language: English
Status: Ended
Premiered: 2016-09-06
Official Site: https://www.fxnetworks.com/shows/atlanta
Rating (average): 7


Go back home