Skip to content

Differrent ID on web, than in API? #390

Answered by rectifyer
myron0815 asked this question in General
Discussion options

You must be logged in to vote

The API prefers IDs and the website prefers slugs as the first thing it searches. The API is easily able to get the IDs which is why it's the preference there. This section in the API docs explains it in more detail: https://trakt.docs.apiary.io/#introduction/website-media-links

So in your case, I recommend using this URL for the redirect:
/search/trakt/:id?id_type=movie

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rectifyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants