Skip to content

Search URL

buzz edited this page Mar 18, 2022 · 1 revision

GET requests

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:

  1. 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
  2. Then strip away all unneeded parameters and only leave those relevant for the search:
    https://www.imdb.com/find?q=the%20beach&s=tt
  3. 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.

Replacement fields

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).

Use IMDb ID whenever possible

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.

Clone this wiki locally