Click here to Skip to main content
15,908,768 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi, I'm creating a movie library software, it has some text boxes. now I want to know how to get information from internet (any site - like Imdb) and fill that text box with that info? For example, I have a label box named Year now when I search a movie name like fight club it should get the year from Imdb or google and write it in the Year text box. Thank you so much.

What I have tried:

i search on google and find omdb api but i don't know how to use it. i'm new to C#.
Posted
Updated 10-Jun-16 2:11am

The usage and parameters to use ombdp api are at OMDb API - The Open Movie Database[^].

If you want to use other sites, see if they have an api otherwise you have to parse the html manually, which likely would not be feasible.

And just a little bit of googling will get you lots of examples. Such as this one, Imdb Services - Home[^]
 
Share this answer
 
I am writing something similar, and have found the TMDB[^] API very good. It is simple to access, and unlike the Imdb web service, totally free.

Cheers,

Mick
 
Share this answer
 
This is directly not related to C#.

You had already finded the solution that is OMDB API.

Just use web service methods and get output in JSON or XML Format

Success Search Titanic Movie

This will give valid output in JSON format. While below one will give wrong as incorrect year is entered.

Failed Search Titanic Movie
 
Share this answer
 
Comments
Johny Flow 10-Jun-16 8:41am    
ok, so how to get output ?! in the first link ( seccess ) how can i get "Year":"1997" into my text box ? can u please show me a code example ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900