The Movie Database-ondersteuning

I'm interested in a movie with id = 476669 For example, then I use

/search/movie?api_key=KEY&language=ru-RU&query=kingsman

I get this answer:

    {
       ...
      "id": 476669,
      ...
      "title": "King’s Man: Начало",
      "overview": "«Kingsman» — организация супершпионов, действующая на благо человечества вдали от любопытных глаз. И один из первых и самых 
      талантливых оперативников в истории организации — Конрад, молодой и наглый сын герцога Оксфордского. Как и многие его друзья он мечтал служить 
      на благо Англии, но в итоге оказался втянутым в тайный мир шпионов и убийц.",
      ...
    }

everything is awesome, overview and title on my language(Russian).

And then I call:

/movie/476669?api_key=KEY&language=ru-Ru

I see it

{
  ...
  "id": 476669,
  "overview": "As a collection of history's worst tyrants and criminal masterminds gather to plot a war to wipe out millions, one man must race against time to stop them.",
  "poster_path": "/nj5HmHRZsrYQEYYXyAusFv35erP.jpg",
   ...
  "title": "The King's Man",
   ...
}

overview and title on English

Why? What can I do?

3 antwoorden (op pagina 1 van 1)

Jump to last post

@Mitrr said:

/movie/476669?api_key=KEY&language=ru-Ru

overview and title on English

Why? What can I do?

Try switching your language param to ru-RU.

Request

$ curl -v "https://api.themoviedb.org/3/movie/476669?api_key=###&language=ru-RU"

< HTTP/2 200
< content-type: application/json;charset=utf-8
< content-length: 1631
< date: Thu, 06 Aug 2020 19:51:36 GMT
< server: openresty
< access-control-allow-origin: *
< access-control-allow-methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
< access-control-expose-headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After, Content-Length, Content-Range
< cache-control: public, max-age=21600
< x-memc: HIT
< x-memc-key: 31d8590491979dbf4433e546c4ebec19
< x-memc-age: 1172
< x-memc-expires: 20428
< etag: W/"b52668814f634b888fe7f07961cf2c4e"
< last-modified: Thu, 06 Aug 2020 19:51:36 GMT
< vary: Accept-Encoding,Accept-Encoding,Accept-Encoding
< x-cache: Miss from cloudfront
< via: 1.1 e109fb33da247873a89335ea6b680b25.cloudfront.net (CloudFront)
< x-amz-cf-pop: HIO51-C1
< x-amz-cf-id: DW1zdq1pV0VJNe7Mm-QIWbu76U28lTOv_SlQlNOqOww6oacEYzaD5Q==
<
* Connection #0 to host api.themoviedb.org left intact

Response

{
  ...
  "id": 476669,
  "imdb_id": "tt6856242",
  "original_language": "en",
  "original_title": "The King's Man",
  "overview": "«Kingsman» — организация супершпионов, действующая на благо человечества вдали от любопытных глаз. И один из первых и самых талантливых оперативников в истории организации — Конрад, молодой и наглый сын герцога Оксфордского. Как и многие его друзья он мечтал служить на благо Англии, но в итоге оказался втянутым в тайный мир шпионов и убийц.",
  ...
}

It took me a long time to discover the difference: :-)
ru-RU = 2 lowercase letters + 2 uppercase letters - this is correct.
ru-Ru = 2 lowercase letters + 1 uppercase letter and 1 lowercase letter - this is wrong.
The RU code for the country must be 2 capital or uppercase letters.

hahaha. How did I not notice it?! Thank you very much guys!! @ticao2 @travisbell

Film of tv-serie niet gevonden? Log dan in om deze te creëren.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op TV seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met TV-programma's

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c gesloten of open
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen