CINXE.COM
API Terms of Use — The Movie Database (TMDB)
<!DOCTYPE html> <html lang="ms" class="no-js"> <head> <title>API Terms of Use — The Movie Database (TMDB)</title> <meta http-equiv="cleartype" content="on"> <meta charset="utf-8"> <meta name="keywords" content="Movies, TV Shows, Streaming, Reviews, API, Actors, Actresses, Photos, User Ratings, Synopsis, Trailers, Teasers, Credits, Cast"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="description" content="The Movie Database (TMDB) is a popular, user editable database for movies and TV shows."> <meta name="msapplication-TileImage" content="/assets/2/v4/icons/mstile-144x144-30e7905a8315a080978ad6aeb71c69222b72c2f75d26dab1224173a96fecc962.png"> <meta name="msapplication-TileColor" content="#032541"> <meta name="theme-color" content="#032541"> <link rel="apple-touch-icon" sizes="180x180" href="/assets/2/apple-touch-icon-57ed4b3b0450fd5e9a0c20f34e814b82adaa1085c79bdde2f00ca8787b63d2c4.png"> <link rel="icon" type="image/png" sizes="32x32" href="/assets/2/favicon-32x32-543a21832c8931d3494a68881f6afcafc58e96c5d324345377f3197a37b367b5.png"> <link rel="icon" type="image/png" sizes="16x16" href="/assets/2/favicon-16x16-b362d267873ce9c5a39f686a11fe67fec2a72ed25fa8396c11b71aa43c938b11.png"> <link rel="manifest" href="/manifest.json?version=3"> <link rel="canonical" href="https://www.themoviedb.org/api-terms-of-use"> <link rel="search" type="application/opensearchdescription+xml" title="TMDB Search" href="/opensearch.xml"> <link rel="preload" href="/assets/2/Consensus-3cba2c4d050ea63dbf7783173d288faf9ecb2942515a5e7f6e1beecabb2eaf72.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/assets/2/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular-f38472b9e378b8c936f55a92677f575ab69e414d7cc3706ecfefeacd994b7975.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/assets/2/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic-48273a74acbc1611b6ef1d0a771bb8ef042b9922b51d5bff560571dddcb5542a.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/assets/2/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300-db9f15a13a9f8b8bc46db7756ab863e8834bd20a7a1124c4c0a5a8f7892f3e99.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/assets/2/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-600-6a087a74d78fc7d7b97fa1b0911c4ff3be4ff0bd5144618fd7ddc63ef1777f3a.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/assets/2/source-sans-pro-v14-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700-d67f7dff97d105f4ac5616b00fc7822ce2c33f653ece2f547995e6a71bb7b993.woff2" as="font" type="font/woff2" crossorigin> <link rel="stylesheet" href="/assets/2/v4/fonts-dcbded27193f5556450c516bf4b553e851bc6d1c8d1c8e6da45a57e3fc278cff.css" media="screen"> <link rel="stylesheet" href="/assets/2/application-3d4dc65431e75cb7d19538a97030c6b8e2f9b6f300a0ba45a81ae4705527b561.css" media="screen"> <link rel="stylesheet" href="/assets/2/v4/account-eb189a01043d39f5b909f66151a50e68b3458b618957e2902ebec13aceecf4b5.css" media="screen"> <link rel="alternate" hreflang="x-default" href="https://www.themoviedb.org/api-terms-of-use"> <link rel="alternate" hreflang="af-ZA" href="https://www.themoviedb.org/api-terms-of-use?language=af-ZA"> <link rel="alternate" hreflang="ar-SA" href="https://www.themoviedb.org/api-terms-of-use?language=ar-SA"> <link rel="alternate" hreflang="be-BY" href="https://www.themoviedb.org/api-terms-of-use?language=be-BY"> <link rel="alternate" hreflang="bg-BG" href="https://www.themoviedb.org/api-terms-of-use?language=bg-BG"> <link rel="alternate" hreflang="bn-BD" href="https://www.themoviedb.org/api-terms-of-use?language=bn-BD"> <link rel="alternate" hreflang="br-FR" href="https://www.themoviedb.org/api-terms-of-use?language=br-FR"> <link rel="alternate" hreflang="ca-ES" href="https://www.themoviedb.org/api-terms-of-use?language=ca-ES"> <link rel="alternate" hreflang="ch-GU" href="https://www.themoviedb.org/api-terms-of-use?language=ch-GU"> <link rel="alternate" hreflang="cs-CZ" href="https://www.themoviedb.org/api-terms-of-use?language=cs-CZ"> <link rel="alternate" hreflang="cy-GB" href="https://www.themoviedb.org/api-terms-of-use?language=cy-GB"> <link rel="alternate" hreflang="da-DK" href="https://www.themoviedb.org/api-terms-of-use?language=da-DK"> <link rel="alternate" hreflang="de-DE" href="https://www.themoviedb.org/api-terms-of-use?language=de-DE"> <link rel="alternate" hreflang="el-GR" href="https://www.themoviedb.org/api-terms-of-use?language=el-GR"> <link rel="alternate" hreflang="en-US" href="https://www.themoviedb.org/api-terms-of-use?language=en-US"> <link rel="alternate" hreflang="eo-EO" href="https://www.themoviedb.org/api-terms-of-use?language=eo-EO"> <link rel="alternate" hreflang="es-ES" href="https://www.themoviedb.org/api-terms-of-use?language=es-ES"> <link rel="alternate" hreflang="et-EE" href="https://www.themoviedb.org/api-terms-of-use?language=et-EE"> <link rel="alternate" hreflang="eu-ES" href="https://www.themoviedb.org/api-terms-of-use?language=eu-ES"> <link rel="alternate" hreflang="fa-IR" href="https://www.themoviedb.org/api-terms-of-use?language=fa-IR"> <link rel="alternate" hreflang="fi-FI" href="https://www.themoviedb.org/api-terms-of-use?language=fi-FI"> <link rel="alternate" hreflang="fr-FR" href="https://www.themoviedb.org/api-terms-of-use?language=fr-FR"> <link rel="alternate" hreflang="ga-IE" href="https://www.themoviedb.org/api-terms-of-use?language=ga-IE"> <link rel="alternate" hreflang="gd-GB" href="https://www.themoviedb.org/api-terms-of-use?language=gd-GB"> <link rel="alternate" hreflang="gl-ES" href="https://www.themoviedb.org/api-terms-of-use?language=gl-ES"> <link rel="alternate" hreflang="he-IL" href="https://www.themoviedb.org/api-terms-of-use?language=he-IL"> <link rel="alternate" hreflang="hi-IN" href="https://www.themoviedb.org/api-terms-of-use?language=hi-IN"> <link rel="alternate" hreflang="hr-HR" href="https://www.themoviedb.org/api-terms-of-use?language=hr-HR"> <link rel="alternate" hreflang="hu-HU" href="https://www.themoviedb.org/api-terms-of-use?language=hu-HU"> <link rel="alternate" hreflang="id-ID" href="https://www.themoviedb.org/api-terms-of-use?language=id-ID"> <link rel="alternate" hreflang="it-IT" href="https://www.themoviedb.org/api-terms-of-use?language=it-IT"> <link rel="alternate" hreflang="ja-JP" href="https://www.themoviedb.org/api-terms-of-use?language=ja-JP"> <link rel="alternate" hreflang="ka-GE" href="https://www.themoviedb.org/api-terms-of-use?language=ka-GE"> <link rel="alternate" hreflang="kk-KZ" href="https://www.themoviedb.org/api-terms-of-use?language=kk-KZ"> <link rel="alternate" hreflang="kn-IN" href="https://www.themoviedb.org/api-terms-of-use?language=kn-IN"> <link rel="alternate" hreflang="ko-KR" href="https://www.themoviedb.org/api-terms-of-use?language=ko-KR"> <link rel="alternate" hreflang="ku-TR" href="https://www.themoviedb.org/api-terms-of-use?language=ku-TR"> <link rel="alternate" hreflang="ky-KG" href="https://www.themoviedb.org/api-terms-of-use?language=ky-KG"> <link rel="alternate" hreflang="lt-LT" href="https://www.themoviedb.org/api-terms-of-use?language=lt-LT"> <link rel="alternate" hreflang="lv-LV" href="https://www.themoviedb.org/api-terms-of-use?language=lv-LV"> <link rel="alternate" hreflang="ml-IN" href="https://www.themoviedb.org/api-terms-of-use?language=ml-IN"> <link rel="alternate" hreflang="mr-IN" href="https://www.themoviedb.org/api-terms-of-use?language=mr-IN"> <link rel="alternate" hreflang="ms-MY" href="https://www.themoviedb.org/api-terms-of-use?language=ms-MY"> <link rel="alternate" hreflang="nb-NO" href="https://www.themoviedb.org/api-terms-of-use?language=nb-NO"> <link rel="alternate" hreflang="nl-NL" href="https://www.themoviedb.org/api-terms-of-use?language=nl-NL"> <link rel="alternate" hreflang="no-NO" href="https://www.themoviedb.org/api-terms-of-use?language=no-NO"> <link rel="alternate" hreflang="pa-IN" href="https://www.themoviedb.org/api-terms-of-use?language=pa-IN"> <link rel="alternate" hreflang="pl-PL" href="https://www.themoviedb.org/api-terms-of-use?language=pl-PL"> <link rel="alternate" hreflang="pt-PT" href="https://www.themoviedb.org/api-terms-of-use?language=pt-PT"> <link rel="alternate" hreflang="ro-RO" href="https://www.themoviedb.org/api-terms-of-use?language=ro-RO"> <link rel="alternate" hreflang="ru-RU" href="https://www.themoviedb.org/api-terms-of-use?language=ru-RU"> <link rel="alternate" hreflang="si-LK" href="https://www.themoviedb.org/api-terms-of-use?language=si-LK"> <link rel="alternate" hreflang="sk-SK" href="https://www.themoviedb.org/api-terms-of-use?language=sk-SK"> <link rel="alternate" hreflang="sl-SI" href="https://www.themoviedb.org/api-terms-of-use?language=sl-SI"> <link rel="alternate" hreflang="so-SO" href="https://www.themoviedb.org/api-terms-of-use?language=so-SO"> <link rel="alternate" hreflang="sq-AL" href="https://www.themoviedb.org/api-terms-of-use?language=sq-AL"> <link rel="alternate" hreflang="sr-RS" href="https://www.themoviedb.org/api-terms-of-use?language=sr-RS"> <link rel="alternate" hreflang="sv-SE" href="https://www.themoviedb.org/api-terms-of-use?language=sv-SE"> <link rel="alternate" hreflang="sw-TZ" href="https://www.themoviedb.org/api-terms-of-use?language=sw-TZ"> <link rel="alternate" hreflang="ta-IN" href="https://www.themoviedb.org/api-terms-of-use?language=ta-IN"> <link rel="alternate" hreflang="te-IN" href="https://www.themoviedb.org/api-terms-of-use?language=te-IN"> <link rel="alternate" hreflang="tl-PH" href="https://www.themoviedb.org/api-terms-of-use?language=tl-PH"> <link rel="alternate" hreflang="th-TH" href="https://www.themoviedb.org/api-terms-of-use?language=th-TH"> <link rel="alternate" hreflang="tr-TR" href="https://www.themoviedb.org/api-terms-of-use?language=tr-TR"> <link rel="alternate" hreflang="uk-UA" href="https://www.themoviedb.org/api-terms-of-use?language=uk-UA"> <link rel="alternate" hreflang="ur-PK" href="https://www.themoviedb.org/api-terms-of-use?language=ur-PK"> <link rel="alternate" hreflang="uz-UZ" href="https://www.themoviedb.org/api-terms-of-use?language=uz-UZ"> <link rel="alternate" hreflang="vi-VN" href="https://www.themoviedb.org/api-terms-of-use?language=vi-VN"> <link rel="alternate" hreflang="zh-CN" href="https://www.themoviedb.org/api-terms-of-use?language=zh-CN"> <link rel="alternate" hreflang="zu-ZA" href="https://www.themoviedb.org/api-terms-of-use?language=zu-ZA"> <link rel="alternate" hreflang="ar-AE" href="https://www.themoviedb.org/api-terms-of-use?language=ar-AE"> <link rel="alternate" hreflang="ar-BH" href="https://www.themoviedb.org/api-terms-of-use?language=ar-BH"> <link rel="alternate" hreflang="ar-EG" href="https://www.themoviedb.org/api-terms-of-use?language=ar-EG"> <link rel="alternate" hreflang="ar-IQ" href="https://www.themoviedb.org/api-terms-of-use?language=ar-IQ"> <link rel="alternate" hreflang="ar-JO" href="https://www.themoviedb.org/api-terms-of-use?language=ar-JO"> <link rel="alternate" hreflang="ar-LY" href="https://www.themoviedb.org/api-terms-of-use?language=ar-LY"> <link rel="alternate" hreflang="ar-MA" href="https://www.themoviedb.org/api-terms-of-use?language=ar-MA"> <link rel="alternate" hreflang="ar-QA" href="https://www.themoviedb.org/api-terms-of-use?language=ar-QA"> <link rel="alternate" hreflang="ar-YE" href="https://www.themoviedb.org/api-terms-of-use?language=ar-YE"> <link rel="alternate" hreflang="ar-TD" href="https://www.themoviedb.org/api-terms-of-use?language=ar-TD"> <link rel="alternate" hreflang="ca-AD" href="https://www.themoviedb.org/api-terms-of-use?language=ca-AD"> <link rel="alternate" hreflang="de-AT" href="https://www.themoviedb.org/api-terms-of-use?language=de-AT"> <link rel="alternate" hreflang="de-CH" href="https://www.themoviedb.org/api-terms-of-use?language=de-CH"> <link rel="alternate" hreflang="el-CY" href="https://www.themoviedb.org/api-terms-of-use?language=el-CY"> <link rel="alternate" hreflang="en-AG" href="https://www.themoviedb.org/api-terms-of-use?language=en-AG"> <link rel="alternate" hreflang="en-AU" href="https://www.themoviedb.org/api-terms-of-use?language=en-AU"> <link rel="alternate" hreflang="en-BB" href="https://www.themoviedb.org/api-terms-of-use?language=en-BB"> <link rel="alternate" hreflang="en-BZ" href="https://www.themoviedb.org/api-terms-of-use?language=en-BZ"> <link rel="alternate" hreflang="en-CA" href="https://www.themoviedb.org/api-terms-of-use?language=en-CA"> <link rel="alternate" hreflang="en-CM" href="https://www.themoviedb.org/api-terms-of-use?language=en-CM"> <link rel="alternate" hreflang="en-GB" href="https://www.themoviedb.org/api-terms-of-use?language=en-GB"> <link rel="alternate" hreflang="en-GG" href="https://www.themoviedb.org/api-terms-of-use?language=en-GG"> <link rel="alternate" hreflang="en-GH" href="https://www.themoviedb.org/api-terms-of-use?language=en-GH"> <link rel="alternate" hreflang="en-GI" href="https://www.themoviedb.org/api-terms-of-use?language=en-GI"> <link rel="alternate" hreflang="en-GY" href="https://www.themoviedb.org/api-terms-of-use?language=en-GY"> <link rel="alternate" hreflang="en-IE" href="https://www.themoviedb.org/api-terms-of-use?language=en-IE"> <link rel="alternate" hreflang="en-JM" href="https://www.themoviedb.org/api-terms-of-use?language=en-JM"> <link rel="alternate" hreflang="en-KE" href="https://www.themoviedb.org/api-terms-of-use?language=en-KE"> <link rel="alternate" hreflang="en-LC" href="https://www.themoviedb.org/api-terms-of-use?language=en-LC"> <link rel="alternate" hreflang="en-MW" href="https://www.themoviedb.org/api-terms-of-use?language=en-MW"> <link rel="alternate" hreflang="en-NZ" href="https://www.themoviedb.org/api-terms-of-use?language=en-NZ"> <link rel="alternate" hreflang="en-PG" href="https://www.themoviedb.org/api-terms-of-use?language=en-PG"> <link rel="alternate" hreflang="en-TC" href="https://www.themoviedb.org/api-terms-of-use?language=en-TC"> <link rel="alternate" hreflang="en-ZM" href="https://www.themoviedb.org/api-terms-of-use?language=en-ZM"> <link rel="alternate" hreflang="en-ZW" href="https://www.themoviedb.org/api-terms-of-use?language=en-ZW"> <link rel="alternate" hreflang="es-AR" href="https://www.themoviedb.org/api-terms-of-use?language=es-AR"> <link rel="alternate" hreflang="es-CL" href="https://www.themoviedb.org/api-terms-of-use?language=es-CL"> <link rel="alternate" hreflang="es-DO" href="https://www.themoviedb.org/api-terms-of-use?language=es-DO"> <link rel="alternate" hreflang="es-EC" href="https://www.themoviedb.org/api-terms-of-use?language=es-EC"> <link rel="alternate" hreflang="es-GT" href="https://www.themoviedb.org/api-terms-of-use?language=es-GT"> <link rel="alternate" hreflang="es-GQ" href="https://www.themoviedb.org/api-terms-of-use?language=es-GQ"> <link rel="alternate" hreflang="es-HN" href="https://www.themoviedb.org/api-terms-of-use?language=es-HN"> <link rel="alternate" hreflang="es-MX" href="https://www.themoviedb.org/api-terms-of-use?language=es-MX"> <link rel="alternate" hreflang="es-NI" href="https://www.themoviedb.org/api-terms-of-use?language=es-NI"> <link rel="alternate" hreflang="es-PA" href="https://www.themoviedb.org/api-terms-of-use?language=es-PA"> <link rel="alternate" hreflang="es-PE" href="https://www.themoviedb.org/api-terms-of-use?language=es-PE"> <link rel="alternate" hreflang="es-PY" href="https://www.themoviedb.org/api-terms-of-use?language=es-PY"> <link rel="alternate" hreflang="es-SV" href="https://www.themoviedb.org/api-terms-of-use?language=es-SV"> <link rel="alternate" hreflang="es-UY" href="https://www.themoviedb.org/api-terms-of-use?language=es-UY"> <link rel="alternate" hreflang="fr-BF" href="https://www.themoviedb.org/api-terms-of-use?language=fr-BF"> <link rel="alternate" hreflang="fr-CA" href="https://www.themoviedb.org/api-terms-of-use?language=fr-CA"> <link rel="alternate" hreflang="fr-CD" href="https://www.themoviedb.org/api-terms-of-use?language=fr-CD"> <link rel="alternate" hreflang="fr-CI" href="https://www.themoviedb.org/api-terms-of-use?language=fr-CI"> <link rel="alternate" hreflang="fr-GF" href="https://www.themoviedb.org/api-terms-of-use?language=fr-GF"> <link rel="alternate" hreflang="fr-GP" href="https://www.themoviedb.org/api-terms-of-use?language=fr-GP"> <link rel="alternate" hreflang="fr-MC" href="https://www.themoviedb.org/api-terms-of-use?language=fr-MC"> <link rel="alternate" hreflang="fr-ML" href="https://www.themoviedb.org/api-terms-of-use?language=fr-ML"> <link rel="alternate" hreflang="fr-MU" href="https://www.themoviedb.org/api-terms-of-use?language=fr-MU"> <link rel="alternate" hreflang="fr-PF" href="https://www.themoviedb.org/api-terms-of-use?language=fr-PF"> <link rel="alternate" hreflang="it-VA" href="https://www.themoviedb.org/api-terms-of-use?language=it-VA"> <link rel="alternate" hreflang="ms-SG" href="https://www.themoviedb.org/api-terms-of-use?language=ms-SG"> <link rel="alternate" hreflang="nl-BE" href="https://www.themoviedb.org/api-terms-of-use?language=nl-BE"> <link rel="alternate" hreflang="pt-AO" href="https://www.themoviedb.org/api-terms-of-use?language=pt-AO"> <link rel="alternate" hreflang="pt-BR" href="https://www.themoviedb.org/api-terms-of-use?language=pt-BR"> <link rel="alternate" hreflang="pt-MZ" href="https://www.themoviedb.org/api-terms-of-use?language=pt-MZ"> <link rel="alternate" hreflang="ro-MD" href="https://www.themoviedb.org/api-terms-of-use?language=ro-MD"> <link rel="alternate" hreflang="sr-ME" href="https://www.themoviedb.org/api-terms-of-use?language=sr-ME"> <link rel="alternate" hreflang="sq-XK" href="https://www.themoviedb.org/api-terms-of-use?language=sq-XK"> <link rel="alternate" hreflang="zh-HK" href="https://www.themoviedb.org/api-terms-of-use?language=zh-HK"> <link rel="alternate" hreflang="zh-SG" href="https://www.themoviedb.org/api-terms-of-use?language=zh-SG"> <link rel="alternate" hreflang="zh-TW" href="https://www.themoviedb.org/api-terms-of-use?language=zh-TW"> <script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="23223fbb-5c84-48df-836d-0a83fb7b2c03"></script> <script>function OptanonWrapper() {}</script> <script src="/assets/2/jquery-3.7.1.min-fc9a93dd241f6b045cbff0481cf4e1901becd0e12fb45166a8f17f95823f0b1a.js"></script> <script src="/assets/2/kendo-02bcc8e5619067ce3904e97e99b9343b59ba33a87e53990a6c387c0d53346e3c.js"></script> <script src="/assets/2/kendo-2024.3.1015/cultures/kendo.culture.ms-SG.min-28328b291997402f61c34a70ca62b544f4dd2800737c2501bf08a0e4544a57ba.js"></script> <script src="/assets/2/application-e113ab8dceae51469d85eba9f0eac9f6cc4dd4404941c0ac1a01646270dd8e27.js"></script> <script src="/assets/2/pusher.min-9f51d49d90f7270e50cb33df7624f0e41466e2581a8d5684b3d0412e910b0767.js"></script> <script src="/assets/2/application.desktop-9e0985ac61b7f12ca03b29360212f9f1cb7702d72661c42eecd398231d711ad7.js"></script> <script> window.mobileDevice = false; detected_timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; timezone = detected_timezone; kendo.culture("ms-SG"); </script> <script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5QWVXV'); </script> </head> <body class="ms v4"> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5QWVXV" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <div class="page_wrap _wrap"> <header class="normal smaller no_animation smaller subtle show_search_false"> <div class="content"> <div class="sub_media"> <div class="nav_wrapper"> <a class="logo" href="/" aria-label="Home"> <img src="/assets/2/v4/logos/v2/blue_short-8e7b30f73a4020692ccca9c88bafe5dcb6f8a62a4c6bc55cd9ba82bb2cd95f6c.svg" alt="The Movie Database (TMDB)" width="154" height="20"> </a> <ul class="dropdown_menu navigation"> <li> <a class="no_click" href="/movie" aria-label="Movies">Movies</a> <ul> <li><a href="/movie" aria-label="Popular">Popular</a></li> <li><a href="/movie/now-playing" aria-label="Now Playing">Now Playing</a></li> <li><a href="/movie/upcoming" aria-label="Upcoming">Upcoming</a></li> <li><a href="/movie/top-rated" aria-label="Top Rated">Top Rated</a></li> </ul> </li> <li> <a class="no_click" href="/tv" aria-label="TV Shows">TV Shows</a> <ul> <li><a href="/tv" aria-label="Popular">Popular</a></li> <li><a href="/tv/airing-today" aria-label="Airing Today">Airing Today</a></li> <li><a href="/tv/on-the-air" aria-label="On TV">On TV</a></li> <li><a href="/tv/top-rated" aria-label="Top Rated">Top Rated</a></li> </ul> </li> <li> <a class="no_click" href="/person" aria-label="People">People</a> <ul> <li><a href="/person" aria-label="Popular People">Popular People</a></li> </ul> </li> <li> <a class="no_click" href="#" aria-label="More">More</a> <ul> <li><a href="/discuss" aria-label="Discussions">Discussions</a></li> <li><a href="/leaderboard" aria-label="Leaderboard">Leaderboard</a></li> <li><a href="/talk" aria-label="Support">Support</a></li> <li><a href="https://developer.themoviedb.org/docs" target="_blank" aria-label="API">API</a></li> </ul> </li> </ul> </div> <div class="flex"> <ul class="primary"> <li class="glyph new_buttons"> <a class="new_icon no_click" href="#" aria-label="Create New Movie or TV Show"> <span class="glyphicons_v2 plus white"></span> </a> </li> <li class="translate"> <div>ms</div> </li> <li><a href="/login" aria-label="Login">Login</a></li> <li><a href="/signup" aria-label="Join TMDB">Join TMDB</a></li> <li class="glyph search_buttons"> <a class="search" href="/search" aria-label="Search"><span class="glyphicons_v2 search blue"></span></a> <a class="close hide" href="/search" aria-label="Search"><span class="glyphicons_v2 menu-close invert svg"></span></a> </li> </ul> </div> </div> </div> <div class="search_bar hide"> <section class="search show_search_false"> <div class="sub_media"> <form id="search_form" action="/search" method="get" accept-charset="utf-8"> <label> <input dir="auto" id="search_v4" name="query" type="text" autocorrect="off" autofill="off" autocomplete="off" spellcheck="false" placeholder="Search for a movie, tv show, person..." value=""> </label> <input type="submit" disabled> </form> </div> </section> </div> </header> <main id="main" class="smaller subtle show_search_false"> <style> section.content h3 { font-weight: 600; margin-bottom: 20px; } section.content h2 { margin-bottom: 20px; } section.content ul { list-style-type: lower-roman; margin: 20px 0 20px 40px; } section.content .underline, section.content a { text-decoration: underline; } </style> <div class="inner_block docs"> <div class="inner_content"> <div class="content"> <div class="column_wrapper"> <section class="content"> <div class="column_content"> <h2>API Terms of Use</h2> <p>Use of The Movie Database's (https://www.themoviedb.org/, operated by TiVo Platform Technologies LLC, "TMDB", "We", "Us", or "Our") application programming interfaces ("TMDB APIs") are subject to the terms and conditions set forth below ("API Terms of Use").</p> <p>BY USING THE TMDB APIS, YOU UNCONDITIONALLY CONSENT AND AGREE TO BE BOUND BY AND BE A PARTY TO THESE TERMS AND CONDITIONS. IF YOU DISAGREE WITH ANY OF THE TERMS AND CONDITIONS IN THESE API TERMS OF USE, YOU MAY NOT USE THE TMDB APIS, AND YOU ARE NOT GRANTED A LICENSE TO USE THE TMDB APIS. ("You" or "Your", as used in these API Terms of Use, refers to, and includes, not only the individual accepting these API Terms of Use but also any legal entity that employs such individual or that such individual is acting for or on behalf of, and such individual represents and warrants that they have the legal authority to bind such legal entity to these API Terms of Use and that these API Terms of Use apply to such entity).</p> <h3>1. License, Conditions, Term, Termination, and Restrictions</h3> <p><strong>A. License.</strong> The TMDB APIs are licensed to You on a worldwide (except as limited below), non-exclusive, non-transferable, non-sublicensable, basis on the terms and conditions set forth herein. These terms and conditions control how You may use the TMDB APIs, including (i) any content (including audio or visual content) or other information available through, on, or from the TMDB APIs or TMDB (such content or information, "TMDB Content"), (ii) all updates, revisions, substitutions to the TMDB APIs, and (iii) any copies of the TMDB APIs made by or for You. TMDB reserves all rights not expressly granted herein, including the right to make derivatives of the TMDB APIs or TMDB Content, or to use the TMDB APIs or TMDB Content in connection with, or for training, a machine learning or artificial intelligence based Application.</p> <p><strong>B. Additional License Conditions.</strong> The above license is expressly conditioned on Your:</p> <ul> <li>Ongoing compliance with the TMDB Terms of Use (http://www.themoviedb.org/terms-of-use), which may be updated from time to time, in Our sole discretion; and</li> <li>Giving TMDB attribution for all TMDB Content, as specified in Paragraph 3 (Attribution), below.</li> </ul> <p><strong>C. Restrictions.</strong> In addition, You must not:</p> <ul> <li>Attempt to cloak or conceal Your identity, or the identity of any website, program, service, application, or other product (collectively "Application(s)") that accesses TMDB or the TMDB APIs, when using or requesting authorization to use TMDB APIs.</li> <li>Use, or create any Application that, in Our sole discretion, (i) uses an excessive amount of bandwidth, (ii) degrade or impairs, including in part, access to, or use of, TMDB, its systems and servers, or the TMDB APIs; or (iii) otherwise adversely impacts the stability of TMDB, its systems and servers, or adversely impacts other users of TMDB or the TMDB APIs.</li> <li>Cache, for longer than 6 months, any information obtained through or from TMDB or the TMDB APIs.</li> <li>Use the TMDB APIs in connection with any Application that, in TMDB's sole discretion, constitutes, promotes, or is used in connection with materials that constitute, promote, or are used primarily for (a) spyware, adware, or other malicious programs or code, (b) counterfeit goods, or items subject to U.S. embargo, (c) unsolicited mass distribution of email ("spam"), multi-level marketing proposals, (d) hacking/surveillance/interception/descrambling equipment, (e) hate materials, libelous, defamatory, obscene, pornographic, abusive, or otherwise offensive content.</li> <li>Use the TMDB APIs in any manner, or for any purpose, that violates any law or regulation, or the rights of any person, including but not limited to intellectual property rights, rights of privacy, or rights of personality.</li> <li>Make derivatives of the TMDB APIs or TMDB Content.</li> <li>Use TMDB as an image hosting service for banner advertisements, graphics, etc.</li> <li>Sell, lease, or sublicense the TMDB APIs, access to the TMDB APIs, or TMDB Content, or derive revenues from the use or provision of TMDB, the TMDB APIs, or TMDB Content, whether for direct commercial or monetary gain or otherwise, except as expressly permitted in a written agreement between You and TMDB, as provided for in Paragraph 2 (Commercial Use) below.</li> <li>Use the TMDB APIs in a manner that is confusing or misleading as to the source or origin of Your Application.</li> <li>Use the TMDB APIs or TMDB Content in connection with, including for training, a machine learning (ML) or artificial intelligence (AI) based Application.</li> </ul> <p><strong>D. Term and Termination.</strong> The license in Paragraph 1.A above continues until either TMDB or You terminate it. You may terminate the license by discontinuing all use of the TMDB APIs. TMDB may terminate the license at any time for any reason. Your license to use the TMDB APIs terminates automatically if (i) TMDB determines, in its sole discretion, that You have violated or are in violation of these terms and conditions, (ii) TMDB publicly posts a written notice of termination on themoviedb.org, (iii) TMDB sends a written notice of termination to You (via electronic or other means), or (iv) TMDB disables Your access to the TMDB APIs. If TMDB terminates Your license, or You terminate your license, You must immediately cease all use of the TMDB APIs, TMDB Content, and any TMDB API key(s), and you must promptly delete or otherwise purge all TMDB Content, including any cached content.</p> <h3>2. Commercial Use</h3> <p><strong>A. Commercial Use Requires a Commercial Agreement.</strong> The license in Paragraph 1.A above does not permit any commercial use of TMDB, the TMDB APIs, or TMDB Content. Selling, leasing, or sublicensing the TMDB APIs, access to the TMDB APIs, or TMDB Content, or deriving revenues from the use or provision of TMDB, the TMDB APIs, or TMDB Content, for commercial or monetary gain, directly or indirectly, is, for the purposes of these terms and conditions, considered a commercial use and is only permitted under a separate written agreement between You and TMDB. TMDB reserves the right to, in its sole discretion, determine whether Your use is commercial at the time that you apply for the license to use the TMDB APIs. TMDB reserves the right to monitor Your use or Your Application to make or revise its determination. Common examples (which are by no means exhaustive) of commercial uses include:</p> <ul> <li>Charging users a fee for Your Application, or a 3rd party's Application, that includes some form of integration with, or use of, TMDB, the TMDB APIs, or TMDB Content.</li> <li>Selling an Application that uses TMDB or the TMDB APIs to bring TMDB Content into your Application.</li> <li>Using TMDB, the TMDB APIs, or TMDB Content on or in connection with a "destination" website, search engine, or interactive query-response system (including large language model (LLM), artificial intelligence, or any other machine learning based interactive query-response systems or chatbots) ("Chatbot(s)"), or for driving traffic or generating revenue for a website, search engine, or Chatbot (including from advertising displayed on or by the website, search engine, Chatbot).</li> <li>Operating a website that generates revenue through charging users for access to content, or through recommend content, such as movies, television shows and music, in connection with, or due, to Your use of TMDB, the TMDB APIs, or TMDB Content.</li> <li>Training or validating a machine learning or artificial intelligence system (including large language models and Chatbots) using TMDB content, collecting data sets containing TMDB Content for such training or validation, or providing archived or cached data sets containing TMDB Content to another person or entity for such training or validation.</li> <li>Commercial Use Requires as Commercial API Key. If Your use (or intended use) is commercial, You must enter into a written agreement with TMDB that expressly permits Your commercial use. Any such agreement may be subject to, among other things, payment of fees. Any commercial use without such a written agreement constitutes a material breach of these API Terms of Use and, You agree that, such a material breach causes irreparable harm to TMDB.</li> </ul> <h3>3. Attribution</h3> <p>You must use the TMDB logo to identify Your use of TMDB, the TMDB APIs, or TMDB Content. Any use of any TMDB logos in Your Application must be less prominent than the logos or marks that primarily describe or identify Your Application and must make it clear that use of any TMDB logos does not imply any endorsement, certification, or other approval by TMDB. In addition, You must place the following notice prominently in or on Your Application:</p> <p>"This [website, program, service, application, product] uses TMDB and the TMDB APIs but is not endorsed, certified, or otherwise approved by TMDB."</p> <h3>4. Ownership</h3> <p>The TMDB APIs and TMDB Content may be protected by copyrights, trademarks, service marks, international treaties, and/or other proprietary rights and laws of the U.S. and other countries. Our rights apply to the TMDB APIs and all output and executables of the TMDB APIs, excluding any software components developed by you, which do not themselves, incorporate the TMDB APIs or any output or executables of the TMDB APIs. You agree to abide by all applicable proprietary rights laws and other laws, as well as any additional copyright notices or restrictions contained in these terms. TMDB owns all rights, title, and interest in and to the TMDB APIs. Except as expressly set forth in Paragraph 1.A above, you are not granted any right, title, or interest in any intellectual property owned or licensable by TMDB, including (but not limited to) the TMDB APIs, Our trademarks, or TMDB Content.</p> <h3>5. Support</h3> <p>TMDB may, in its sole discretion, provide You with support for, or modifications to, the TMDB APIs (collectively, "Support"). TMDB reserves the right to (A) terminate any such Support at any time without notice to You; (B) change, suspend, or discontinue any aspect of the TMDB APIs at any time, including the availability of any TMDB APIs; (C) impose limits on certain features and services, or restrict access to part or all of TMDB, the TMDB APIs, or TMDB Content, without notice or liability; and (D) require at any time the use of only the most recent update or version of the TMDB APIs.</p> <h3>6. Disclaimer of Any Warranty</h3> <p>THE TMDB APIS ARE PROVIDED "AS IS" WITH NO WARRANTY, EXPRESS OR IMPLIED, OF ANY KIND AND ANY AND ALL WARRANTIES AND CONDITIONS, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AVAILABILITY, SECURITY, TITLE AND/OR NON-INFRINGEMENT, ARE EXPRESSLY DISCLAIMED TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW. FURTHERMORE, THE TMDB APIS MAY BE EXPERIMENTAL AND NOT TESTED IN ANY MANNER. TMDB DOES NOT REPRESENT OR WARRANT THAT ANY TMDB APIS ARE FREE OF INACCURACIES, ERRORS, BUGS, OR INTERRUPTIONS, OR ARE RELIABLE, ACCURATE, COMPLETE, OR OTHERWISE USEABLE OR VALID. YOUR USE OF TMDB APIS IS ENTIRELY AT YOUR OWN DISCRETION AND RISK, AND YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE OR LIABILITY THAT RESULTS FROM THE USE OF TMDB, ANY TMDB APIS, OR TMDB CONTENT, INCLUDING, BUT NOT LIMITED TO, LIABILITY OR DAMAGES RELATED TO INTELLECTUAL PROPERTY INFRINGEMENT, PRIVACY, AND DAMAGE TO YOUR OR OTHERS' COMPUTER SYSTEM(S) OR LOSS OF DATA.</p> <h3>7. Limitation of Liability</h3> <p>REGARDLESS OF WHETHER ANY REMEDY SET FORTH HEREIN FAILS OF ITS ESSENTIAL PURPOSE OR OTHERWISE, AND EXCEPT FOR INTENTIONAL BODILY INJURY, TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL TMDB OR TMDB REPRESENTATIVES, BE LIABLE TO YOU OR TO ANY THIRD PARTY UNDER ANY TORT, CONTRACT, NEGLIGENCE, INTELLECTUAL PROPERTY INFRINGEMENT OR MISAPPROPRIATION, STRICT LIABILITY OR OTHER LEGAL OR EQUITABLE THEORY FOR ANY DAMAGES, LOST PROFITS, LOST OR CORRUPTED DATA, COMPUTER FAILURE OR MALFUNCTION, INTERRUPTION OF BUSINESS, OR OTHER SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND ARISING OUT OF THE USE OR INABILITY TO USE THE API, EVEN IF TMDB HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGES AND WHETHER OR NOT SUCH LOSS OR DAMAGES ARE FORESEEABLE.</p> <h3>8. Release and Waiver</h3> <p>To the maximum extent permitted by applicable law, you hereby release and waive all claims against TMDB, its subsidiaries, and affiliates, and their respective officers, agents, licensors, suppliers, co-branders or other partners, contractors, and employees (collectively "TMDB Representatives") from any and all liability for claims, damages (actual and/or consequential), costs and expenses (including litigation costs and attorneys' fees) of every kind and nature, arising from or in any way related to Your use of TMDB, the TMDB APIs, or TMDB Content. You understand that any fact relating to any matter covered by this release may be found to be other than now believed to be true and You accept and assume the risk of such possible differences in fact. In addition, You expressly waive and relinquish, to the maximum extent permitted by applicable law, any and all rights and benefits that You may have under any other state, federal, or national law or statute, or common law principle of similar effect. If You are a California resident, You waive Your rights under California Civil Code 搂 1542, which states:</p> <p>"A general release does not extend to claims which the creditor does not know or suspect to exist in his favor at the time of executing the release, which if known by him must have materially affected his settlement with the debtor."</p> <h3>9. Indemnity</h3> <p>To the maximum extent permitted by applicable law, You agree to hold harmless and indemnify TMDB and TMDB Representatives from and against any third party claim arising from or in any way related to Your use of TMDB, the TMDB APIs, or TMDB Content, including any liability or expense arising from all claims, losses, damages (actual and/or consequential), suits, judgments, litigation costs and attorneys' fees, of every kind and nature. TMDB shall use commercially reasonable efforts to provide you with written notice of any such claim, suit or action.</p> <h3>10. Miscellaneous</h3> <p><strong>A. Relationship of the Parties.</strong> Notwithstanding any provision hereof, for all purposes of these terms and conditions, You and TMDB are and act independently of each other, and not as partners, joint venturers, agents, employees or employers of the other. You do not have any authority to assume or create any obligation for or on behalf of TMDB or TMDB Representatives, express or implied, and you shall not attempt to bind TMDB or TMDB Representatives to any contract or other obligation.</p> <p><strong>B. Invalidity.</strong> If any provision of these terms and conditions is found by a court of competent jurisdiction to be invalid or unenforceable, the parties nevertheless agree that all other provisions of these terms and conditions will remain in full force and effect and that a court should endeavor to give maximum permissible effect to the parties' intentions as reflected in the invalid or unenforceable provision.</p> <p><strong>C. Governing Law.</strong> THESE TERMS AND CONDITIONS AND THE RELATIONSHIP BETWEEN YOU AND TMDB SHALL BE GOVERNED BY THE LAWS OF THE STATE OF CALIFORNIA WITHOUT REGARD TO ITS CONFLICT OF LAW PROVISIONS. IN ANY DISPUTE RELATING TO, OR ARISING FROM, THESE TERMS AND CONDITIONS YOU AND TMDB AGREE TO SUBMIT TO THE EXCLUSIVE JURISDICTION AND VENUE OF THE STATE AND FEDERAL COURTS LOCATED WITHIN THE COUNTY OF SANTA CLARA, CALIFORNIA, U.S.A.</p> <p><strong>D. No Waiver.</strong> Our failure to exercise or enforce any right or provision of the Terms of Use shall not constitute a waiver of such right or provision.</p> <p><strong>E. No Transfer.</strong> The rights and obligations of these Terms of Use are personal to you and may not be transferred by you, either voluntarily or by operation of law.</p> <p><strong>F. Notice.</strong> Any notice to be sent to you under these Terms of Use may be sent via email, post, or any other reasonable means, at the contact information provided by you to TMDB from time to time. It is your obligation to ensure that this information is current.</p> <p><strong>G. Paragraph / Section Headings and Construction.</strong> The paragraph or section headings and subheadings contained in these terms and conditions are included for convenience only, and shall not limit or otherwise affect these terms and conditions. Any construction or interpretation of these terms and conditions shall not be construed against the drafter.</p> <p><strong>H. Entire Agreement.</strong> These terms and conditions constitute the entire agreement between TMDB and you with respect to the subject matter hereof. TMDB reserves the right, in its sole discretion, to modify these terms and conditions, at any time, by posting a notice to themoviedb.org or by posting modified terms and conditions. You are responsible for reviewing and becoming familiar with any such modifications. Such modifications are effective upon first posting or notification. Use of the TMDB API following any such notice or modification constitutes acceptance of the modified terms and conditions.</p> <p>This Agreement was last updated on: October 20, 2023.</p> </div> </section> </div> </div> </div> </div> </main> </div> <!-- page_wrap opened in html_head --> <footer class="single_column "> <nav> <div class="join"> <img src="/assets/2/v4/logos/v2/blue_square_2-d537fb228cf3ded904ef09b136fe3fec72548ebc1fea3fbbd1ad9e36364db38b.svg" alt="The Movie Database (TMDB)" width="130" height="94"> <a class="rounded" href="/signup">Join the Community</a> </div> <div> <h3>The Basics</h3> <ul> <li><a href="/about">About TMDB</a></li> <li><a href="/about/staying-in-touch">Contact Us</a></li> <li><a href="/talk">Support Forums</a></li> <li><a href="https://developer.themoviedb.org/docs" target="_blank">API</a></li> <li><a href="https://status.themoviedb.org/" target="_blank" rel="noopener">System Status</a></li> </ul> </div> <div> <h3>Get Involved</h3> <ul> <li><a href="/bible"><span class="glyphicons glyphicons-asterisk"></span> Contribution Bible</a></li> <li><a href="/movie/new">Add New Movie</a></li> <li><a href="/tv/new">Add New TV Show</a></li> </ul> </div> <div> <h3>Community</h3> <ul> <li><a href="/documentation/community/guidelines">Guidelines</a></li> <li><a href="/discuss">Discussions</a></li> <li><a href="/leaderboard">Leaderboard</a></li> </ul> </div> <div> <h3>Legal</h3> <ul> <li><a href="/terms-of-use">Terms of Use</a></li> <li><a href="/api-terms-of-use">API Terms of Use</a></li> <li><a href="/privacy-policy">Privacy Policy</a></li> <li><a href="/dmca-policy">DMCA Policy</a></li> </ul> </div> </nav> <section>Build a8ef821 (8201)</section> </footer> <div id="new_media_template" class="hide"> <div class="settings_content"> <p>Can't find a movie or TV show? Login to create it.</p> </div> </div> <div id="settings_tooltip" class="hide"> <div class="settings_content"> <div class="group no_pad"> <p><a href="/login">Login</a></p> </div> <div class="group"> <p><a href="/signup">Sign Up</a></p> </div> </div> </div> <div id="keyboard_shortcuts_popup" class="hide"> <div class="content k-flex-col"> <div class="keyboard_shortcuts"> <div class="column"> <h3>Global</h3> <div><span>s</span> focus the search bar</div> <div><span>p</span> open profile menu</div> <div><span>esc</span> close an open window</div> <div><span>?</span> open keyboard shortcut window</div> <h3>On media pages</h3> <div><span>b</span> go back (or to parent when applicable)</div> <div><span>e</span> go to edit page</div> <h3>On TV season pages</h3> <div><span>→</span> (right arrow) go to next season</div> <div><span>←</span> (left arrow) go to previous season</div> <h3>On TV episode pages</h3> <div><span>→</span> (right arrow) go to next episode</div> <div><span>←</span> (left arrow) go to previous episode</div> <h3>On all image pages</h3> <div><span>a</span> open add image window</div> </div> <div class="column"> <h3>On all edit pages</h3> <div><span>t</span> open translation selector</div> <div><span>ctrl</span>+ <span>s</span> submit form</div> <h3>On discussion pages</h3> <div><span>n</span> create new discussion</div> <div><span>w</span> toggle watching status</div> <div><span>p</span> toggle public/private</div> <div><span>c</span> toggle close/open</div> <div><span>a</span> open activity</div> <div><span>r</span> reply to discussion</div> <div><span>l</span> go to last reply</div> <div><span>ctrl</span>+ <span>enter</span> submit your message</div> <div><span>→</span> (right arrow) next page</div> <div><span>←</span> (left arrow) previous page</div> </div> </div> <div class="keyboard_shortcuts k-flex-col k-mt-6 k-mb-3"> <h3 class="k-pb-1 k-font-weight-bold settings_label">Settings</h3> <label class="k-display-flex k-align-items-center k-cursor-pointer k-pt-1 k-pl-1" for="toggle_keyboard_shortcuts" style="width: fit-content"> <input type="checkbox" id="toggle_keyboard_shortcuts" class="k-mr-2 k-cursor-pointer" name="toggle_keyboard_shortcuts" /> Enable Keyboard Shortcuts </label> </div> </div> </div> <div class="hide"> <div id="options_tooltip"> <div class="settings_content"> <div class="group no_pad"> <p class="no_hover">Want to rate or add this item to a list?</p> <p><a href="/login">Login <span class="glyphicons_v2 chevron-right blue pad_left"></span></a></p> </div> <div class="group"> <p class="no_hover">Not a member?</p> <p><a href="/signup">Sign up and join the community <span class="glyphicons_v2 chevron-right blue pad_left"></span></a></p> </div> </div> </div> </div> <div class="hide"> <div id="video_popup"></div> </div> <script src="/assets/2/footer-1574cfc494072701fbfb65ca8288c64bb8085f5093a87b7cc1ddab05eb7637c8.js"></script> <script type="text/javascript" charset="utf-8"> $('#cookie_notice a.accept').on('click', function(e) { e.preventDefault(); document.cookie = "tmdb._cookie_policy=true; samesite=lax; path=/; max-age=15551999;"; $('#cookie_notice').fadeOut('fast'); }); function showSearch(state) { if ( state ) { $('header').removeClass('nav-up').addClass('nav-down'); $('li.search_buttons a.close').removeClass('hide'); $('li.search_buttons a.search').addClass('hide'); $('div.search_bar').removeClass('hide'); $("#search_v4").data("kendoAutoComplete").focus(); } else { $('li.search_buttons a.close').addClass('hide'); $('li.search_buttons a.search').removeClass('hide'); $('div.search_bar').addClass('hide'); } } $(function() { jQuery.timeago.settings.allowFuture = true; $("time.timeago").timeago(); var didScroll; var lastScrollTop = 0; var delta = 10; var navbarHeight = $('header').outerHeight(); $(window).scroll(function(event){ didScroll = true; }); setInterval(function() { if (didScroll) { hasScrolled(); didScroll = false; } }, 250); function hasScrolled() { var st = $(this).scrollTop(); if ( Math.abs(lastScrollTop - st) <= delta ) return; if ( st > lastScrollTop && st > navbarHeight ) { $('header').removeClass('nav-down').addClass('nav-up'); } else { if ( st + $(window).height() < $(document).height() ) { $('header').removeClass('nav-up').addClass('nav-down'); } } lastScrollTop = st; } var hover_tooltip = $('li.user a.no_click.tooltip_hover').kendoTooltip({ position: 'bottom', show: function(e) { $("div.k-tooltip-button").addClass('hide'); this.popup.element.addClass("tmdb_theme_white nowrap"); this.element.removeClass('keyboard'); } }).data("kendoTooltip"); $('button').on('click', function(e) { var redirect_url = $(this).data('redirect-url'); if (redirect_url === undefined) { return } window.location = redirect_url; }); $('li.user a.no_click').kendoTooltip({ autoHide: false, showOn: 'click', width: 180, position: 'bottom', content: function() { return $("#settings_tooltip").html(); }, show: function(e) { hover_tooltip.hide(); $("div.k-tooltip-button").addClass('hide'); this.popup.element.addClass("tmdb_theme_white no_pad"); if (this.element.hasClass('keyboard')) { this.popup.element.find('p a')[0].focus(); } } }); $('li.translate').kendoTooltip({ autoHide: false, content: { url: '/translation-popup?media_type=&media_id=&referral=%2Fapi-terms-of-use', cache: true }, showOn: 'click', width: 300, position: 'bottom', show: function(e) { $("div.k-tooltip-button").addClass('hide'); this.popup.element.addClass("min_100px_height tmdb_theme_white flex"); } }); $('li.new_buttons').kendoTooltip({ autoHide: false, showOn: 'click', width: 240, position: 'bottom', content: function() { return $("#new_media_template").html(); }, show: function(e) { $("div.k-tooltip-button").addClass('hide'); this.popup.element.addClass("tmdb_theme_white"); } }); $("body").on('click', 'a.no_click', function(e) { e.preventDefault(); }); $("ul > li").hover(function() { $(this).find("ul.sub_nav.hide").toggle(); }); var notification = $("#notification").kendoNotification({ stacking: "down", position: { top: 20, right: 20 }, autoHideAfter: 5000, show: function(e) { e.element.parent().css({ zIndex: 99999 }); }, templates: [{ type: "error", template: $("#errorTemplate").html() },{ type: "success", template: $("#successTemplate").html() }] }).data("kendoNotification"); showSuccess = function(message, title) { if (title === undefined) { title = 'Success'; } return notification.show({ title: title, message: message }, "success"); }; showError = function(message, title) { if (title === undefined) { title = 'Error'; } return notification.show({ title: title, message: message }, "error"); }; var keyboard_shortcut_popup = $('#keyboard_shortcuts_popup div.content').kendoWindow({ title: 'Keyboard Shortcuts', width: mobileDevice ? "100%" : "90vw", maxWidth: mobileDevice ? "100%" : "1400px", actions: [ "Close" ], modal: true, draggable: false, resizable: false, visible: false, pinned: true, animation: { open: { effects: "fade:in" }, close: { effects: "fade:out" } }, open: function() { $('body').addClass('monochrome'); }, close: function() { $('body').removeClass('monochrome'); } }).data("kendoWindow").center(); $('#keyboard_shortcuts').on('click', function() { keyboard_shortcut_popup.open(); }); $("#toggle_keyboard_shortcuts").prop({'checked': true, 'disabled': true}); var keyboard_tooltip = $("label[for='toggle_keyboard_shortcuts']").kendoTooltip({ position: 'bottom', content: "You can disable keyboard shortcuts by logging into your account." }).data("kendoTooltip"); $("#toggle_keyboard_shortcuts").on('change', function (e) { var checkboxState = $(this).prop('checked'); $.post({ url: '/settings/toggle-keyboard-shortcuts', dataType: "json", data: { keyboard_shortcuts_enabled: checkboxState } }).fail(function () { showError('There was a problem.'); }).done(function (response) { if (response.failure) { showError('There was a problem.'); } if (response.success) { showSuccess(''); window.location.reload(); } }); }); var seach_redirect_template = "/search{0}?query={1}"; var processing_selected_item = false; var processing_manually_selected_item = false; window.onbeforeunload = function() { processing_selected_item = false; processing_manually_selected_item = false; } function executeSearch(url) { window.location = url; } function processSelectedItem(event) { if (event == '') { return; } var dataItem = null; var media_type = null; var search_value = ''; var selected_item = ''; if (event == null) { dataItem = $("#search_v4").data("kendoAutoComplete").value(); } else { dataItem = event.dataItem; } // This is the returned items from trending, when no search has been performed if ( typeof(dataItem) == 'string' ) { try { var search_value = $(dataItem).data('search-name'); var media_type = $(dataItem).data('media-type'); } catch(error) { var search_value = dataItem; } if (search_value && media_type) { selected_item = kendo.format(seach_redirect_template, media_type, encodeURIComponent(search_value)); } else if (search_value) { selected_item = kendo.format(seach_redirect_template, '', encodeURIComponent(search_value)); } else { selected_item = kendo.format(seach_redirect_template, '', encodeURIComponent(dataItem)); search_value = dataItem; } // This is the returned items from a search } else { switch(dataItem.media_type) { case 'movie': selected_item = kendo.format(seach_redirect_template, '/movie', encodeURIComponent(dataItem.name)); search_value = dataItem.name; break; case 'tv': selected_item = kendo.format(seach_redirect_template, '/tv', encodeURIComponent(dataItem.name)); search_value = dataItem.name; break; case 'person': selected_item = kendo.format(seach_redirect_template, '/person', encodeURIComponent(dataItem.name)); search_value = dataItem.name; break; default: selected_item = kendo.format(seach_redirect_template, '', encodeURIComponent(dataItem)); search_value = dataItem; } } $("#search_v4").data("kendoAutoComplete").value(search_value); executeSearch(selected_item); } $("#search_v4").kendoAutoComplete({ highlightFirst: false, minLength: 1, dataTextField: "title", template: kendo.template($("#slim_multi_search_template").html()), noDataTemplate: $("#search_no_data_template").html(), dataSource: { type: "json", serverFiltering: true, transport: { read: '/search/trending', parameterMap: function() { return { query: $("#search_v4").data("kendoAutoComplete").value() }; } }, schema: { data: "results" } }, popup: { appendTo: $("section.search") }, filtering: function(e) { var filter = e.filter != undefined ? e.filter.value : ""; if (filter == '') { if ( ($('#search_v4-list #trending_search_header_template').length) == 0 ) { // $('#search_v4_listbox').empty(); $('#search_v4-list').prepend($("#search_v4_headerTemplate").html()); } } else { $("#trending_search_header_template").remove(); } }, select: function(e) { processing_selected_item = true; processSelectedItem(e); }, close: function(e) { // Use this to prevent the popup from closing in dev. // e.preventDefault(); } }).data("kendoAutoComplete"); $('#search_v4').keydown(function(event) { if (event.keyCode == 13) { if (processing_selected_item) { return; } else { processSelectedItem(null); } } }); $('header #search_form').submit(function() { return false; }); var autocompleteInput = $('section.search .k-autocomplete input'); autocompleteInput.on('focus', function (e) { var value = autocompleteInput.val(); if (value == null || value == '') { $("#search_v4").data("kendoAutoComplete").search(''); } else { var fieldLength = value.length; autocompleteInput[0].setSelectionRange(fieldLength, fieldLength); } }); $('header.show_search_false li.search_buttons a.search').on('click', function(e) { e.preventDefault(); showSearch(true); }); $('header.show_search_true li.search_buttons a.search').on('click', function(e) { e.preventDefault(); $("#search_v4").data("kendoAutoComplete").focus(); }); $('header.show_search_false li.search_buttons a.close').on('click', function(e) { e.preventDefault(); showSearch(false); }); $('main.show_search_false').on('click', function(e) { showSearch(false); }); $('header span.k-i-close[title="clear"]').on('click', function(e) { $('#search_v4').data("kendoAutoComplete").focus(); }); public_media_type_map = { 'movie': 'Movie', 'tv': 'TV Show', 'person': 'Person' }; $(document).on('keydown', null, 'b', function() { if ( $('a.keyboard_s.parent').length ) { $('a.keyboard_s.parent')[0].click(); } }); $(document).on('keyup', null, 's', function() { if ( $('#search_v4').length ) { if ( $('header').hasClass('show_search_false') ) { showSearch(true); } else { $("#search_v4").data("kendoAutoComplete").focus(); } } }); $(document).on('keyup', null, 'shift+/', function() { keyboard_shortcut_popup.open(); }); $(document).on('keydown', null, 'left', function() { if ( $('span.previous a.keyboard_s').length ) { $('span.previous a.keyboard_s')[0].click(); } }); $(document).on('keydown', null, 'right', function() { if ( $('span.next a.keyboard_s').length ) { $('span.next a.keyboard_s')[0].click(); } }); $(document).on('keydown', null, 'm', function() { if ( $('#new_shortcut_bar').length ) { $("#new_shortcut_bar").focus(); } }); }); var gender_lookup = { 0: 'two', 1: 'one', 2: 'two', 3: 'two' } </script> <script id="person_template" type="text/x-kendo-tmpl"> <div class="item profile list_item grid_item"> <div class="image_content profile"> <a class="result" href="${data.url}" title="${data.name}" alt="${data.name}"> # if (data.profile_path) { # <img class="" src="https://media.themoviedb.org/t/p/w66_and_h66_face${data.profile_path}" alt="${data.name}" width="45" height="45" srcset="https://media.themoviedb.org/t/p/w66_and_h66_face${data.profile_path} 1x, https://media.themoviedb.org/t/p/w132_and_h132_face${data.profile_path} 2x"> # } else { # <div class="glyphicons_v2 picture profile ${gender_lookup[data.gender]} grey no_image_holder w45_and_h45"></div> # } # </a> </div> <div class="content"> <p class="name"><a class="result" href="${data.url}" title="${data.name}" alt="${data.name}">${data.name}</a></p> # if (data.known_for) { # <p class="sub">${data.known_for}</p> # } # </div> </div> </script> <script id="person_template_with_known_for" type="text/x-kendo-tmpl"> <div class="item profile list_item known_for"> <div class="image_content profile"> # if (data.profile_path) { # <img class="" src="https://media.themoviedb.org/t/p/w66_and_h66_face${data.profile_path}" alt="${data.name}" width="45" height="45" srcset="https://media.themoviedb.org/t/p/w66_and_h66_face${data.profile_path} 1x, https://media.themoviedb.org/t/p/w132_and_h132_face${data.profile_path} 2x"> # } else { # <div class="glyphicons_v2 picture grey no_image_holder w45_and_h45 profile"></div> # } # </div> <div class="content"> <p class="name">${data.name}</p> # if (data.known_for) { # <p class="sub">${data.known_for_department} • ${data.known_for}</p> # } else { # <p class="sub">No known credits.</p> # } # </div> </div> </script> <script id="person_result_template" type="text/x-kendo-tmpl"> <div class="ac_item profile list_item known_for"> <div class="image_content profile"> # if (data.profile_path) { # <img class="" src="https://media.themoviedb.org/t/p/w66_and_h66_face${data.profile_path}" alt="${data.name}" width="45" height="45" srcset="https://media.themoviedb.org/t/p/w66_and_h66_face${data.profile_path} 1x, https://media.themoviedb.org/t/p/w132_and_h132_bestv2${data.profile_path} 2x"> # } else { # <div class="glyphicons_v2 picture grey no_image_holder w45_and_h45 profile"></div> # } # </div> <div class="content"> <p class="name">${data.name}</p> # if (data.known_for) { # <p class="sub"> # if (data.media_type) { # <span class="media_type person">#= public_media_type_map[data.media_type] # • </span> # } # # for (var i = 0; i < data.known_for.length; i++) { # <span class="comma">#= data.known_for[i].title ? data.known_for[i].title : data.known_for[i].name #</span> # } # </p> # } else { # <p class="sub">No known credits.</p> # } # </div> </div> </script> <script id="movie_result_template" type="text/x-kendo-tmpl"> <div class="ac_results"> <div class="ac_item poster list_item"> <div class="image_content poster"> # if (data.poster_path) { # <img class="" src="https://media.themoviedb.org/t/p/w45_and_h67_bestv2${data.poster_path}" alt="${data.title}" width="45" height="67" srcset="https://media.themoviedb.org/t/p/w45_and_h67_bestv2${data.poster_path} 1x, https://media.themoviedb.org/t/p/w90_and_h134_bestv2${data.poster_path} 2x"> # } else { # <div class="glyphicons_v2 picture grey no_image_holder w45_and_h67"></div> # } # </div> <div class="content"> <p class="name">${data.title}</p> <p class="sub"> # if (data.media_type) { # <span class="media_type movie">#= public_media_type_map[data.media_type] # • </span> # } # # if (data.original_title !== data.title) { # <span class="comma"><span class="original_title">#= data.original_title #</span></span> # } # # if (data.release_date) { # <span class="comma"><span class="release_date">#= data.release_date #</span></span> # } # </p> </div> </div> </div> </script> <script id="tv_show_result_template" type="text/x-kendo-tmpl"> <div class="ac_item poster list_item"> <div class="image_content poster"> # if (data.poster_path) { # <img class="" src="https://media.themoviedb.org/t/p/w45_and_h67_bestv2${data.poster_path}" alt="${data.title}" width="45" height="67" srcset="https://media.themoviedb.org/t/p/w45_and_h67_bestv2${data.poster_path} 1x, https://media.themoviedb.org/t/p/w90_and_h134_bestv2${data.poster_path} 2x"> # } else { # <div class="glyphicons_v2 picture grey no_image_holder w45_and_h67"></div> # } # </div> <div class="content"> <p class="name">${data.name}</p> <p class="sub"> # if (data.media_type) { # <span class="media_type tv">#= public_media_type_map[data.media_type] # • </span> # } # # if (data.original_name !== data.name) { # <span class="comma"><span class="original_title">#= data.original_name #</span></span> # } # # if (data.first_air_date) { # <span class="comma"><span class="release_date">#= data.first_air_date #</span></span> # } # </p> </div> </div> </script> <script id="slim_movie_result_template" type="text/x-kendo-tmpl"> <div class="ac_item poster list_item"> <div class="image_content poster"> # if (data.poster_path) { # <img class="" src="https://media.themoviedb.org/t/p/w45_and_h67_bestv2${data.poster_path}" alt="${data.title}" width="45" height="67" srcset="https://media.themoviedb.org/t/p/w45_and_h67_bestv2${data.poster_path} 1x, https://media.themoviedb.org/t/p/w90_and_h134_bestv2${data.poster_path} 2x"> # } else { # <div class="glyphicons_v2 picture grey no_image_holder w45_and_h67"></div> # } # </div> <div class="content"> <p class="name">${data.title}</p> <p class="sub"> # if (data.original_title !== data.title) { # <span class="comma"><span class="original_title">#= data.original_title #</span></span> # } # # if (data.release_date) { # <span class="comma"><span class="release_date">#= data.release_date #</span></span> # } # </p> </div> <p><span class="media_type movie">#= public_media_type_map[data.media_type] #</span></p> </div> </script> <script id="multi_search_template" type="text/x-kendo-tmpl"> <div class="ac_results"> # if (data.media_type == 'movie') { # #= kendo.render(kendo.template($("\\#movie_result_template").html()), [data]) # # } else if (data.media_type == 'tv') { # #= kendo.render(kendo.template($("\\#tv_show_result_template").html()), [data]) # # } else if (data.media_type == 'person') { # #= kendo.render(kendo.template($("\\#person_result_template").html()), [data]) # # } # </div> </script> <script id="search_v4_headerTemplate" type="text/x-kendo-template"> <div id="trending_search_header_template" class="slim_search_results_header"> <div class="wrapper"> <h2><span class="glyphicons_v2 trending"></span> Trending</h2> </div> </div> </script> <script id="search_no_data_template" type="text/x-kendo-template"> <div class="slim_search_results_header no_data"> <div class="wrapper"> <h2>No Results</h2> </div> </div> </script> <script id="slim_multi_search_template" type="text/x-kendo-tmpl"> # if (data.media_type == 'movie') { # <div class="slim_search_results slim"> <div class="wrapper"> <div class="glyphicons_v2 film"></div> <p>#= data.name # <span>in Movies</span></p> </div> </div> # } else if (data.media_type == 'tv') { # <div class="slim_search_results slim"> <div class="wrapper"> <div class="glyphicons_v2 tv"></div> <p>#= data.name # <span>in TV Shows</span></p> </div> </div> # } else if (data.media_type == 'person') { # <div class="slim_search_results slim"> <div class="wrapper"> <div class="glyphicons_v2 user"></div> <p>#= data.name # <span>in People</span></p> </div> </div> # } else { # <div class="slim_search_results slim"> <div class="wrapper"> <div class="glyphicons_v2 search"></div> <p>#= data #</p> </div> </div> # } # </script> <script id="delete-confirmation" type="text/x-kendo-template"> <section class="window_content"> <p class="delete-message">Are you sure?</p> <button class="delete-cancel k-button">No</button> <button class="delete-confirm k-button">Yes</button> </section> </script> <div id="dialog_window"></div> <span id="notification" class="hide"></span> <script id="errorTemplate" type="text/x-kendo-template"> <div class="notification error"> <span> <h2><span class="glyphicons_v2 circle-alert invert svg"></span> #= title #</h2> # if (message instanceof Array) { # <ul> # for (var i = 0; i < message.length; i++) { # <li>#= message[i] #</li> # } # </ul> # } else { # <p>#= message #</p> # } # </span> </div> </script> <script id="successTemplate" type="text/x-kendo-template"> <div class="notification success"> <span> <h2><span class="glyphicons_v2 circle-check invert svg"></span> #= title #</h2> <p>#= message #</p> </span> </div> </script> <script id="network_combo_template" type="text/x-kendo-tmpl"> <span class="k-state-default image"> # if (data.logo_path) { # <img src="https://media.themoviedb.org/t/p/h15${data.logo_path}" alt="${data.name}" srcset="https://media.themoviedb.org/t/p/h15${data.logo_path} 1x, https://media.themoviedb.org/t/p/h30${data.logo_path} 2x" height="15"> - # } # ${data.name}# if (data.origin_country) { # (${data.origin_country}) # } # </span> </script> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "name": "The Movie Database", "alternateName": "TMDB", "url": "https://www.themoviedb.org" } </script> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://www.themoviedb.org/", "potentialAction": { "@type": "SearchAction", "target": "https://www.themoviedb.org/search?query={search_term_string}", "query-input": "required name=search_term_string" } } </script> </body> </html>