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

Type: Scripted
Language: English
Status: Ended
Premiered: 2016-09-06
Official Site:
Rating (average): 7

Go back home