---
title: "IMDb Harapan Rilis API (V1)"
description: "Mengambil informasi ekspektasi rilis dari IMDb untuk ID judul menggunakan preferensi bahasa dan negara yang dipilih. Gunakan untuk memantau konteks rilis judul atau mendukung penelitian perencanaan rilis."
lastUpdated: false
aiUsagePrompt: true
---

# IMDb Harapan Rilis API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/imdb/title-release-expectation-query/v1\"")'
  :summary='JSON.parse("\"Harapan Rilis (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/imdb/release-expectation-v1-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token autentikasi pengguna.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"id\",\"in\":\"query\",\"description\":\"Pengenal judul IMDb dalam format tt&lt;digits&gt;.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"languageCountry\",\"in\":\"query\",\"description\":\"Preferensi bahasa dan negara.\\n\\nNilai yang tersedia:\\n- `en_US`: Bahasa Inggris (US)\\n- `fr_CA`: Bahasa Prancis (Kanada)\\n- `fr_FR`: Bahasa Prancis (Prancis)\\n- `de_DE`: Bahasa Jerman (Jerman)\\n- `hi_IN`: Bahasa Hindi (India)\\n- `it_IT`: Bahasa Italia (Italia)\\n- `pt_BR`: Bahasa Portugis (Brasil)\\n- `es_ES`: Bahasa Spanyol (Spanyol)\\n- `es_US`: Bahasa Spanyol (US)\\n- `es_MX`: Bahasa Spanyol (Meksiko)\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"en_US\",\"description\":\"Pilihan bahasa dan negara untuk data IMDb\",\"enum\":[\"en_US\",\"fr_CA\",\"fr_FR\",\"de_DE\",\"hi_IN\",\"it_IT\",\"pt_BR\",\"es_ES\",\"es_US\",\"es_MX\"]}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifikasi judul di IMDb.\"},\"titleText\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Judul yang ditampilkan untuk lokalitas yang diminta.\"}}},\"originalTitleText\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Teks judul asli.\"}}},\"releaseYear\":{\"type\":\"object\",\"properties\":{\"year\":{\"type\":\"integer\",\"description\":\"Tahun ketika judul tersebut mulai dirilis atau berjalan.\"},\"endYear\":{\"type\":[\"integer\",\"null\"],\"description\":\"Tahun akhir masa berlakunya judul, jika dilaporkan.\"}}},\"titleType\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifikasi jenis judul di IMDb.\"},\"text\":{\"type\":\"string\",\"description\":\"Jenis judul yang ditampilkan.\"}}},\"primaryImage\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar utama dari judul tersebut.\"}}},\"releaseDate\":{\"type\":\"object\",\"properties\":{\"year\":{\"type\":\"integer\",\"description\":\"Tahun tanggal rilis yang dipilih.\"},\"month\":{\"type\":\"integer\",\"description\":\"Bulan tanggal rilis yang dipilih.\"},\"day\":{\"type\":\"integer\",\"description\":\"Hari tanggal rilis yang dipilih.\"},\"country\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Kode negara atau wilayah untuk tanggal rilis yang dipilih.\"}}}}},\"wideReleaseDates\":{\"type\":\"object\",\"properties\":{\"edges\":{\"type\":\"array\",\"items\":{\"properties\":{\"node\":{\"type\":\"object\",\"properties\":{\"year\":{\"type\":\"integer\",\"description\":\"Tahun rilis besar.\"},\"month\":{\"type\":[\"integer\",\"null\"],\"description\":\"Bulan rilis besar, jika dilaporkan.\"},\"day\":{\"type\":[\"integer\",\"null\"],\"description\":\"Hari rilis besar, jika dilaporkan.\"},\"country\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Kode negara atau wilayah untuk rilis besar.\"}}},\"attributes\":{\"type\":\"array\",\"items\":{\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Kualifikasi yang ditampilkan untuk tanggal rilis besar.\"}}}}}}}}}}},\"excludeWideReleaseDates\":{\"type\":\"object\",\"properties\":{\"edges\":{\"type\":\"array\",\"items\":{\"properties\":{\"node\":{\"type\":\"object\",\"properties\":{\"year\":{\"type\":\"integer\",\"description\":\"Tahun rilis yang berada di luar daftar rilis besar.\"},\"month\":{\"type\":\"integer\",\"description\":\"Bulan rilis yang berada di luar daftar rilis besar.\"},\"day\":{\"type\":[\"integer\",\"null\"],\"description\":\"Hari rilis yang berada di luar daftar rilis besar, jika dilaporkan.\"},\"country\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Kode negara atau wilayah untuk rilis lainnya.\"}}},\"attributes\":{\"type\":\"array\",\"items\":{\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Kualifikasi yang ditampilkan untuk tanggal rilis lainnya.\"}}}}}}}}}}},\"productionStatus\":{\"type\":\"object\",\"properties\":{\"currentProductionStage\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Identifikasi tahap produksi saat ini.\"},\"text\":{\"type\":\"string\",\"description\":\"Label penampilan tahap produksi saat ini.\"}}},\"productionStatusHistory\":{\"type\":\"array\",\"items\":{\"properties\":{\"date\":{\"type\":\"string\",\"description\":\"Tanggal rekaman untuk entri status produksi.\"},\"status\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Tahap produksi tercatat dalam entri sejarah.\"}}},\"comment\":{\"type\":[\"object\",\"null\"],\"description\":\"Komentar opsional mengenai perubahan status produksi.\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Teks komentar status produksi.\"}}}}}}}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Parameter atau isi permintaan yang tidak valid\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Token akses yang tidak valid atau tidak aktif\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Izin ditolak\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Laju permintaan atau batas kuota harian terlampaui\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Kesalahan server internal\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Layanan sementara tidak tersedia\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API produksi global (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/imdb/title-release-expectation-query/v1\"")' />

<p>Mengambil informasi ekspektasi rilis dari IMDb untuk ID judul menggunakan preferensi bahasa dan negara yang dipilih. Gunakan untuk memantau konteks rilis judul atau mendukung penelitian perencanaan rilis.</p>

## Parameter

<div class="api-doc-table api-doc-table--params">

| Nama | Lokasi | Jenis | Wajib | Bawaan | Deskripsi |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Ya | - | Token autentikasi pengguna. |
| <code>id</code> | query | <code>string</code> | Ya | - | Pengenal judul IMDb dalam format tt&lt;digits&gt;. |
| <code>languageCountry</code> | query | <code>string</code> | Tidak | <code>en_US</code> | Preferensi bahasa dan negara.<br /><br><br>Nilai yang tersedia:<br /><br>- <code>en_US</code>: Bahasa Inggris (US)<br /><br>- <code>fr_CA</code>: Bahasa Prancis (Kanada)<br /><br>- <code>fr_FR</code>: Bahasa Prancis (Prancis)<br /><br>- <code>de_DE</code>: Bahasa Jerman (Jerman)<br /><br>- <code>hi_IN</code>: Bahasa Hindi (India)<br /><br>- <code>it_IT</code>: Bahasa Italia (Italia)<br /><br>- <code>pt_BR</code>: Bahasa Portugis (Brasil)<br /><br>- <code>es_ES</code>: Bahasa Spanyol (Spanyol)<br /><br>- <code>es_US</code>: Bahasa Spanyol (US)<br /><br>- <code>es_MX</code>: Bahasa Spanyol (Meksiko) |

</div>

## Contoh Kode

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE'
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Harapan Rilis (V1)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE
Endpoint API: BASE_URL + /api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/imdb/release-expectation-v1-id.json

Parameter:
- token (query): Token autentikasi pengguna. (Wajib)
- id (query): Pengenal judul IMDb dalam format tt<digits>. (Wajib)
- languageCountry (query): Preferensi bahasa dan negara.

Nilai yang tersedia:
- `en_US`: Bahasa Inggris (US)
- `fr_CA`: Bahasa Prancis (Kanada)
- `fr_FR`: Bahasa Prancis (Prancis)
- `de_DE`: Bahasa Jerman (Jerman)
- `hi_IN`: Bahasa Hindi (India)
- `it_IT`: Bahasa Italia (Italia)
- `pt_BR`: Bahasa Portugis (Brasil)
- `es_ES`: Bahasa Spanyol (Spanyol)
- `es_US`: Bahasa Spanyol (US)
- `es_MX`: Bahasa Spanyol (Meksiko)

Format Kembalian: tangani dengan aman JSON atau teks sesuai dengan Content-Type yang sebenarnya.

Penanganan respons dan kode kesalahan:
1. Tentukan hasil pemrosesan dari kolom "code" dalam isi respons (code 0 berarti berhasil).
2. Batas waktu yang disarankan: Atur batas waktu permintaan menjadi 120 detik. Jika 120 detik terlalu lama untuk kebutuhan Anda, gunakan setidaknya 60 detik. Sebagian kecil permintaan mungkin mencapai batas waktu sebelum hasil diterima.
3. Kode hasil:
   - 0: Berhasil
   - 100: Token tidak valid atau tidak aktif
   - 301: Gagal mengambil data. Silakan coba lagi.
   - 302: Batas frekuensi permintaan terlampaui
   - 303: Kuota harian terlampaui
   - 400: Parameter tidak valid
   - 500: Kesalahan internal server
   - 600: Akses ditolak
   - 601: Saldo tidak mencukupi
   - 602: Batas anggaran token tercapai
4. Kode 601 berarti saldo bersama akun tidak mencukupi. Kode 602 berarti token API yang digunakan telah mencapai batas anggaran kumulatifnya sendiri. Menetapkan batas anggaran token tidak memindahkan dana dari saldo bersama akun.

Tolong bantu saya menulis skrip dalam bahasa pemrograman favorit saya untuk memanggil API ini dan menangani responsnya.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Diberikan oleh server OpenAPI

url = BASE_URL + "/api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Diberikan oleh server OpenAPI
const url = BASE_URL + "/api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Diberikan oleh server OpenAPI
        final String url = BASE_URL + "/api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Diberikan oleh server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Diberikan oleh server OpenAPI
$url = $BASE_URL . '/api/imdb/title-release-expectation-query/v1?token=YOUR_API_KEY&id=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/imdb/release-expectation-v1-id.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Definisi OpenAPI (JSON)]</a>
</div>

## Field Respons

Field Kunci dalam respons yang sukses (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Jalur Field | Jenis | Deskripsi |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | - |
| <code>data.title</code> | <code>object</code> | - |
| <code>data.title.id</code> | <code>string</code> | Identifikasi judul di IMDb. |
| <code>data.title.titleText</code> | <code>object</code> | - |
| <code>data.title.titleText.text</code> | <code>string</code> | Judul yang ditampilkan untuk lokalitas yang diminta. |
| <code>data.title.originalTitleText</code> | <code>object</code> | - |
| <code>data.title.originalTitleText.text</code> | <code>string</code> | Teks judul asli. |
| <code>data.title.releaseYear</code> | <code>object</code> | - |
| <code>data.title.releaseYear.year</code> | <code>integer</code> | Tahun ketika judul tersebut mulai dirilis atau berjalan. |
| <code>data.title.releaseYear.endYear</code> | <code>integer &#124; null</code> | Tahun akhir masa berlakunya judul, jika dilaporkan. |
| <code>data.title.titleType</code> | <code>object</code> | - |
| <code>data.title.titleType.id</code> | <code>string</code> | Identifikasi jenis judul di IMDb. |
| <code>data.title.titleType.text</code> | <code>string</code> | Jenis judul yang ditampilkan. |
| <code>data.title.primaryImage</code> | <code>object</code> | - |
| <code>data.title.primaryImage.url</code> | <code>string</code> | URL gambar utama dari judul tersebut. |
| <code>data.title.releaseDate</code> | <code>object</code> | - |
| <code>data.title.releaseDate.year</code> | <code>integer</code> | Tahun tanggal rilis yang dipilih. |
| <code>data.title.releaseDate.month</code> | <code>integer</code> | Bulan tanggal rilis yang dipilih. |
| <code>data.title.releaseDate.day</code> | <code>integer</code> | Hari tanggal rilis yang dipilih. |
| <code>data.title.releaseDate.country</code> | <code>object</code> | - |
| <code>data.title.releaseDate.country.id</code> | <code>string</code> | Kode negara atau wilayah untuk tanggal rilis yang dipilih. |
| <code>data.title.wideReleaseDates</code> | <code>object</code> | - |
| <code>data.title.wideReleaseDates.edges</code> | <code>array</code> | - |
| <code>data.title.wideReleaseDates.edges[].node</code> | <code>object</code> | - |
| <code>data.title.wideReleaseDates.edges[].node.year</code> | <code>integer</code> | Tahun rilis besar. |
| <code>data.title.wideReleaseDates.edges[].node.month</code> | <code>integer &#124; null</code> | Bulan rilis besar, jika dilaporkan. |
| <code>data.title.wideReleaseDates.edges[].node.day</code> | <code>integer &#124; null</code> | Hari rilis besar, jika dilaporkan. |
| <code>data.title.wideReleaseDates.edges[].node.country</code> | <code>object</code> | - |
| <code>data.title.wideReleaseDates.edges[].node.country.id</code> | <code>string</code> | Kode negara atau wilayah untuk rilis besar. |
| <code>data.title.wideReleaseDates.edges[].node.attributes</code> | <code>array</code> | - |
| <code>data.title.wideReleaseDates.edges[].node.attributes[].text</code> | <code>string</code> | Kualifikasi yang ditampilkan untuk tanggal rilis besar. |
| <code>data.title.excludeWideReleaseDates</code> | <code>object</code> | - |
| <code>data.title.excludeWideReleaseDates.edges</code> | <code>array</code> | - |
| <code>data.title.excludeWideReleaseDates.edges[].node</code> | <code>object</code> | - |
| <code>data.title.excludeWideReleaseDates.edges[].node.year</code> | <code>integer</code> | Tahun rilis yang berada di luar daftar rilis besar. |
| <code>data.title.excludeWideReleaseDates.edges[].node.month</code> | <code>integer</code> | Bulan rilis yang berada di luar daftar rilis besar. |
| <code>data.title.excludeWideReleaseDates.edges[].node.day</code> | <code>integer &#124; null</code> | Hari rilis yang berada di luar daftar rilis besar, jika dilaporkan. |
| <code>data.title.excludeWideReleaseDates.edges[].node.country</code> | <code>object</code> | - |
| <code>data.title.excludeWideReleaseDates.edges[].node.country.id</code> | <code>string</code> | Kode negara atau wilayah untuk rilis lainnya. |
| <code>data.title.excludeWideReleaseDates.edges[].node.attributes</code> | <code>array</code> | - |
| <code>data.title.excludeWideReleaseDates.edges[].node.attributes[].text</code> | <code>string</code> | Kualifikasi yang ditampilkan untuk tanggal rilis lainnya. |
| <code>data.title.productionStatus</code> | <code>object</code> | - |
| <code>data.title.productionStatus.currentProductionStage</code> | <code>object</code> | - |
| <code>data.title.productionStatus.currentProductionStage.id</code> | <code>string</code> | Identifikasi tahap produksi saat ini. |
| <code>data.title.productionStatus.currentProductionStage.text</code> | <code>string</code> | Label penampilan tahap produksi saat ini. |
| <code>data.title.productionStatus.productionStatusHistory</code> | <code>array</code> | - |
| <code>data.title.productionStatus.productionStatusHistory[].date</code> | <code>string</code> | Tanggal rekaman untuk entri status produksi. |
| <code>data.title.productionStatus.productionStatusHistory[].status</code> | <code>object</code> | - |
| <code>data.title.productionStatus.productionStatusHistory[].status.text</code> | <code>string</code> | Tahap produksi tercatat dalam entri sejarah. |
| <code>data.title.productionStatus.productionStatusHistory[].comment</code> | <code>object &#124; null</code> | Komentar opsional mengenai perubahan status produksi. |
| <code>data.title.productionStatus.productionStatusHistory[].comment.text</code> | <code>string</code> | Teks komentar status produksi. |

</div>

## Contoh Respons

<ApiExampleSection :api='JSON.parse("\"/api/imdb/title-release-expectation-query/v1\"")' />

