I have the imdb Ids (tconst, as they call it); what I need to know is how to get the tmdb movie Id value from that imdb movie Id value (with a REST call).
{
"movie_results": [],
"person_results": [],
"tv_results": [
{
"adult": false,
"backdrop_path": "/uDgy6hyPd82kOHh6I95FLtLnj6p.jpg",
"id": 100088,
"name": "The Last of Us",
"original_language": "en",
"original_name": "The Last of Us",
"overview": "Twenty years after modern civilization has been destroyed, Joel, a hardened survivor, is hired to smuggle Ellie, a 14-year-old girl, out of an oppressive quarantine zone. What starts as a small job soon becomes a brutal, heartbreaking journey, as they both must traverse the United States and depend on each other for survival.",
"poster_path": "/uKvVjHNqB5VmOrdxqAt2F7J78ED.jpg",
"media_type": "tv",
"genre_ids": [
18,
10759
],
"popularity": 5706.38,
"first_air_date": "2023-01-15",
"vote_average": 8.807,
"vote_count": 1803,
"origin_country": [
"US"
]
}
],
"tv_episode_results": [],
"tv_season_results": []
}
It works for me with curl, using the command Travis provided above. Be sure to wrap the URL with quotation marks.
If it doesn't work, provide an example curl command that doesn't work, removing your API key.
Thanks for responding.
I found my mistake after going through half a dozen permutations of the command line.
I counted as URL from http to the question mark and quoted that and nonthing else.
The entire line has to be quoted because the entire line, api key and external source option are part of the URL.
Quoting the entire thing succeeded.
Travis Bell 的回复
于 2020 年 09 月 22 日 12:58下午
Hi @bclayshannon,
Yes, you can use the
/find
method.As an example.
dewanharish 的回复
于 2023 年 02 月 18 日 6:31下午
Hi, for movies it works ... but not for shows
Travis Bell 的回复
于 2023 年 02 月 19 日 3:09下午
TV works just fine:
Request
Response
jlj1950228 的回复
于 2023 年 08 月 30 日 6:52下午
This works if pasted into the browser url window, but not with curl.
Leon 的回复
于 2023 年 08 月 31 日 10:36上午
It works for me with curl, using the command Travis provided above. Be sure to wrap the URL with quotation marks. If it doesn't work, provide an example curl command that doesn't work, removing your API key.
jlj1950228 的回复
于 2023 年 08 月 31 日 12:43下午
Hi,
Thanks for responding. I found my mistake after going through half a dozen permutations of the command line. I counted as URL from http to the question mark and quoted that and nonthing else. The entire line has to be quoted because the entire line, api key and external source option are part of the URL. Quoting the entire thing succeeded.
Thanks again, JIm J.