1 Message
•
80 Points
Thu, Nov 1, 2018 4:26 AM
Closed
How to automatically create href to imdb person knowing only "name" eg "Tom Hanks"
I am creating movie pages for my web site automatically and would like to add href in the code to imdb actors. I know the actors names but not the nconst in IMDB. So, how do I automatically create href to imdb person knowing only "name" eg "Tom Hanks"
Question
•
Updated
2 years ago
8
2
Helpful Widget
How can we improve?
Responses
dan_dassow
Champion
•
13.7K Messages
•
415.6K Points
2 years ago
If you plan to use any content from IMDb, you should heed:
Content licensing
IMDb prefers that you link to names in IMDb using name ID:
where {Name-ID} is of the form: nm1234578
For example:
The Name ID for Tom Hanks is nm0000158. The link for Tom Hanks is https://www.imdb.com/name/nm0000158/
Alternately, you can use IMDb's format for Name searches:
where {Name} is the name of the person with plus signs ("+") for spaces:
For example:
This is the name search for Tom Hanks:
https://www.imdb.com/find?ref_=nv_sr_fn&q=Tom+Hanks#nm
The down side to using IMDb Name searches is that you are not guaranteed a result and may receive multiple results.
0
jeorj_euler
6.7K Messages
•
162.2K Points
2 years ago
0