-
Notifications
You must be signed in to change notification settings - Fork 16
Search URL
The vast majority of websites use GET requests to perform searches. Often GET requests can be recognized by looking at the parameters in the URL: https://www.google.com/search?q=test
Example for the website imdb.com:
- A good way of creating the search URL for a website is to perform an actual search and copy the URL from the address bar:
https://www.imdb.com/find?q=the%20beach&s=tt&ref_=fn_al_tt_mr
- Then strip away all unneeded parameters and only leave those relevant for the search:
https://www.imdb.com/find?q=the%20beach&s=tt
- Replace the search text with search fields:
https://www.imdb.com/find?q={{IMDB_TITLE}}&s=tt
Some few websites use POST requests for searches.
Field name | Description | Example value |
---|---|---|
IMDB_TITLE |
Full title | The Beach |
IMDB_ID |
IMDb ID | 0163978 |
IMDB_YEAR |
Year of release | 2000 |
Make sure to test around how the search is performing using different combinations of fields. Sometimes it's beneficial to append the movie year like so:
{{IMDB_TITLE}}+{{IMDB_YEAR}}
(websites often use +
for denoting spaces).
Some websites will allow you to search for the IMDb number and direct you immediately to the desired film. Always make use of the IMDb ID if the website supports it. It improves the experience dramatically because the user doesn't have to go through a result list manually.