https://swapi.dev/api/people/1/ This is the correct endpoint for swapi, the example code has the incorrect endpoint.