Show lookup http response code?

fredrikomfg wrote 3 years ago: 1

Hello,

I'm trying to use the Show lookup endpoint to translate imdb IDs to tvmaze IDs but seem to be getting the "wrong" HTTP response code.

The API instructions says calling https://api.tvmaze.com/lookup/shows?imdb=tt0944947 should give me a HTTP 302 but I seem to be getting a 301.

"If you already know a show's thetvdb or IMDB ID, you can use this endpoint to find this exact show on TVmaze. If the given ID can be matched, a HTTP 302 redirect to the show's URL will be returned. Otherwise, a HTTP 404 is sent. "

Is this documented wrong or am I crazy? :)


david wrote 3 years ago: 2

Ha, good catch. HTTP 301 is correct, the redirect is as permanent as they get. Updated the docs :)

Try 30 days of free premium.