The Movie Database Support

The result is {"page": 1, "total_results": 0, "total_pages": 1} when I apply the API to the application.

The API you are using is https://api.themoviedb.org/3/search/movie?.

What is the reason?

6 replies (on page 1 of 1)

Jump to last post

Seems to be an issue indeed. Hardly get any results at all if the query doesn't match exactly with the movie title :/

I don't see any issues:

Request

curl -v "https://api.themoviedb.org/3/search/movie?api_key=###&query=spider+man"
*   Trying 54.243.148.62...
* TCP_NODELAY set
* Connected to api.themoviedb.org (54.243.148.62) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=*.themoviedb.org
*  start date: Dec  3 00:00:00 2018 GMT
*  expire date: Dec  2 12:00:00 2020 GMT
*  subjectAltName: host "api.themoviedb.org" matched cert's "*.themoviedb.org"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=RapidSSL RSA CA 2018
*  SSL certificate verify ok.
> GET /3/search/movie?api_key=###&query=spider+man HTTP/1.1
> Host: api.themoviedb.org
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After
< Cache-Control: public, max-age=21600
< Content-Type: application/json;charset=utf-8
< Date: Tue, 09 Apr 2019 14:41:55 GMT
< ETag: ff7cc29289db44861ce4b3e5e56fe234
< Server: openresty
< Vary: Accept-Encoding
< Content-Length: 12376
< Connection: keep-alive
<
* Connection #0 to host api.themoviedb.org left intact

dnslookup: 0.005153 | connect: 0.086196 | appconnect: 0.268787 | pretransfer: 0.268857 | starttransfer: 0.376948 | total: 0.378917 | size: 12376

Response

{
  "page": 1,
  "total_results": 49,
  "total_pages": 3,
  "results": [
    {
      "vote_count": 9463,
      "id": 557,
      "video": false,
      "vote_average": 7,
      "title": "Spider-Man",
      "popularity": 24.162,
      "poster_path": "/A9BYH1DSetvC7bjbHWCaL17Qbp5.jpg",
      "original_language": "en",
      "original_title": "Spider-Man",
      "genre_ids": [
        14,
        28
      ],
      "backdrop_path": "/5yAEbTXiJZQpNx7eCyyOhnY9MYw.jpg",
      "adult": false,
      "overview": "After being bitten by a genetically altered spider, nerdy high school student Peter Parker is endowed with amazing powers.",
      "release_date": "2002-05-01"
    },
    {
      "vote_count": 3138,
      "id": 324857,
      "video": false,
      "vote_average": 8.5,
      "title": "Spider-Man: Into the Spider-Verse",
      "popularity": 100.211,
      "poster_path": "/iiZZdoQBEYBv6id8su7ImL0oCbD.jpg",
      "original_language": "en",
      "original_title": "Spider-Man: Into the Spider-Verse",
      "genre_ids": [
        28,
        12,
        16,
        878,
        35
      ],
      "backdrop_path": "/uUiId6cG32JSRI6RyBQSvQtLjz2.jpg",
      "adult": false,
      "overview": "Miles Morales is juggling his life between being a high school student and being a spider-man. When Wilson \"Kingpin\" Fisk uses a super collider, others from across the Spider-Verse are transported to this dimension.",
      "release_date": "2018-12-07"
    },
    {
      "vote_count": 10870,
      "id": 315635,
      "video": false,
      "vote_average": 7.4,
      "title": "Spider-Man: Homecoming",
      "popularity": 39.781,
      "poster_path": "/kY2c7wKgOfQjvbqe7yVzLTYkxJO.jpg",
      "original_language": "en",
      "original_title": "Spider-Man: Homecoming",
      "genre_ids": [
        28,
        12,
        878,
        18
      ],
      "backdrop_path": "/vc8bCGjdVp0UbMNLzHnHSLRbBWQ.jpg",
      "adult": false,
      "overview": "Following the events of Captain America: Civil War, Peter Parker, with the help of his mentor Tony Stark, tries to balance his life as an ordinary high school student in Queens, New York City, with fighting crime as his superhero alter ego Spider-Man as a new threat, the Vulture, emerges.",
      "release_date": "2017-07-05"
    },

    17 more items...
  ]
}

Yeah, it seems the script I wrote was doing some unexpected quirky business I hadn't encountered before. Fixed that. Apologies for crying wolf :)

No problem. Happy to hear you sorted it out.

Should not the search term be in Korean?

@baobab858 You can search for Korean data by using the language parameter. You can read more about how this works here.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page