V
V
Viktor2019-07-20 18:39:46
PHP
Viktor, 2019-07-20 18:39:46

How to make a movie id parser from movie search like in dle only in php by title?

How to make a movie id parser from movie search as in dle only in php by title
Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-08-06
@vkwebsite

There is no official open API.
If unofficially, then everything is quite simple.
Forming a GET request:
In response, we receive JSON with elements of the form:

id: "507"
is_serial: ""
link: "/film/507/sr/2/"
name: "The Terminator"
rus: "Терминатор"
type: "first"
ur_rating: "8.0"
year: "1984"

Here ID, rating, year and so on.
In order for the result to be the most correct, it is better to indicate the year in the search query, and the name in English (if not Russian). You also need to throw out symbols, apostrophes and everything superfluous.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question