sereisoglu
(Saffet Emin Reisoğlu)
May 21, 2025, 2:50pm
1
Hi,
In the last 24 hours, I can no longer access many TV shows that I could normally access using the “/search/tmdb/:id” endpoint.
For example, this TV show is available on Trakt and TMDb:
But when I use this endpoint (“/search/tmdb/100884?type=show”), I get an empty array response.
opened 08:21AM - 21 May 25 UTC
Hi,
In the last 24 hours, I can no longer access many TV shows that I could no… rmally access using the "/search/tmdb/:id" endpoint.
For example, this TV show is available on Trakt and TMDb:
https://trakt.tv/shows/backstrom-2020
https://www.themoviedb.org/tv/100884-backstrom
But when I use this endpoint ("/search/tmdb/100884?type=show"), I get an empty array response.
Sonply
(Sonply)
May 21, 2025, 3:00pm
3
Hi,
I think this is related to the recent change in the search engine we are testing: Experimental Search Engine - Trakt / VIP Beta Features - Trakt Forums
Since it’s related to the api, I’ll ask a developer if this is happening because the data is still indexing or if it’s a bug related to that change.
sereisoglu
(Saffet Emin Reisoğlu)
May 21, 2025, 6:43pm
4
It’s probably related to what you mentioned, but the problem seems to be solved now. If the problem occurs again, I’ll write.
justin
(Justin Nemeth)
May 21, 2025, 6:48pm
5
I’ll have a fix out for this later today. If you’re using the new experimental engine, that is what has the bug.
sereisoglu
(Saffet Emin Reisoğlu)
May 21, 2025, 7:16pm
6
Users can set which engine to use, but I’m talking about the “/search/tmdb/:id” endpoint. I used the endpoint without using accessToken.
justin
(Justin Nemeth)
May 21, 2025, 9:51pm
7
Should work now. I pushed a fix and get results using your example search. The API GitHub is the best place for this, like you originally posted.
https://api.trakt.tv/search/tmdb/100884
[
{
"type":"show",
"score":1000,
"show":{
"title":"Bäckström",
"year":2020,
"ids":{
"trakt":158502,
"slug":"backstrom-2020",
"tvdb":377395,
"imdb":"tt10068932",
"tmdb":100884,
"tvrage":null
},
"aired_episodes":18
}
}
]
Boxy21
(Tom Angistalis)
May 22, 2025, 7:03am
8
Hi @justin unfortunately it’s still not fixed.
I noticed the problem is when we add the type
parameter. For example this works GET /search/tmdb/73457
but this one fails GET /search/tmdb/73457?type=person
It would be great if you handle that extra parameter so it doesn’t break all existing apps that use it. It started failing in FilmNoir today for example.
Thanks
sereisoglu
(Saffet Emin Reisoğlu)
May 22, 2025, 9:21am
9
@Justin I thought it was fixed too, but I guess there are still many items that haven’t been indexed.
For example: “/search/tmdb/258190?type=show”
It would be better if the new engine was not used before indexing was completed for this endpoint.
justin
(Justin Nemeth)
May 22, 2025, 1:08pm
10
You mentioned not sending an access token, so the new engine would not be used. The indexing is also done.
Are these authed calls?
sereisoglu
(Saffet Emin Reisoğlu)
May 22, 2025, 1:22pm
11
@Justin
If the index is complete as I said above, why does this request return an empty array? Could there be another error?
“/search/tmdb/258190?type=show”
John, a repressed man, is shocked to find himself in middle age, secretly raging at his life as a stay-at-home dad. When his failure to intervene in a violent confrontation in a playground brings his identity crisis to a head, John ups and moves his...
John, a repressed man, is shocked to find himself in middle age, secretly raging at his life as a stay-at-home dad. When his failure to intervene in a violent confrontation in a playground brings his identity crisis to a head, John ups and moves his...
justin
(Justin Nemeth)
May 22, 2025, 1:24pm
12
I would need a more specific API example and info about any auth being sent. The new engine would only be used if you’re sending an access token for a vip user.
sereisoglu
(Saffet Emin Reisoğlu)
May 22, 2025, 1:24pm
13
@Justin Sorry, I am sending extended=full. I wonder if it is caused by the cache.
sereisoglu
(Saffet Emin Reisoğlu)
May 22, 2025, 1:28pm
14
curl --location ‘https://api.trakt.tv/search/tmdb/258190?type=show&extended=full ’ \
–header ‘Content-Type: application/json’ \
–header ‘trakt-api-version: 2’ \
–header 'trakt-api-key: ’
mini5183
(Ayush Sehrawat)
May 22, 2025, 2:29pm
15
1 Like
justin
(Justin Nemeth)
May 22, 2025, 5:44pm
16
I pushed a potential fix for this. Cached results might take up to 8 hours to expire.
mini5183
(Ayush Sehrawat)
May 22, 2025, 5:46pm
17
Thanks, everything’s working now