Proper way to query a Movie

Hi again, so far and it was working i was using the /subtitles with query=“Movie Name” and Year=“year”

The result was always if existed, return the data. for example.

Invoke-WebRequest -Uri 'https://api.opensubtitles.com/api/v1/subtitles?query=Anora&languages=en&year=2024' -Method GET -Headers $headers

200 OK
{
  "total_pages": 1,
  "total_count": 21,
  "per_page": 50,
  "page": 1,
  "data": [
    {
      "id": "10062146",
      "type": "subtitle",
      "attributes": {
        "subtitle_id": "10062146",
        "language": "en",
        "download_count": 74,
        "new_download_count": 146,
        "hearing_impaired": false,
        "hd": true,
        "fps": 24,
        "votes": 0,

But for movie Mickey 17 i get nothing. Data count 0,

image

So, i tried a query as “2025 - Mickey 17” and it return data, the same for almost every other movie.

Invoke-WebRequest -Uri 'https://api.opensubtitles.com/api/v1/subtitles?query=2025+-+Mickey+17&languages=en' -Method GET -Headers $headers

200 OK
{
  "total_pages": 1,
  "total_count": 7,
  "per_page": 50,
  "page": 1,
  "data": [
    {
      "id": "10064042",
      "type": "subtitle",
      "attributes": {
        "subtitle_id": "10064042",
        "language": "en",
        "download_count": 4563,
        "new_download_count": 705,
        "hearing_impaired":

Is that the proper way or “Mickey 17” has an error". What is the proper way of asking a request ?

Again many thanks.
-Vassilis

i see on the page that is written as “2025 - Mickey 17”. Now if i put that as query i get results

short titles can be problematic, safest way is to lookup the movie precisely to get some ID from imdb or tmdb

1 Like

Yeah, but that means i have to do another query from OMDB propably to get the imdb ID.
But just for others i can confirm that the method of query with ““2025 - Mickey 17”” works much better and i always get results :+1: