---
title: "Saluran WeChat Informasi Dasar Video API (V1)"
description: "Menentukan informasi video dasar untuk tautan video WeChat Channels yang disalin, URL preview, atau ID feed pendek. Gunakan untuk mengidentifikasi video yang dibagikan sebelum pencarian lebih lanjut."
lastUpdated: false
aiUsagePrompt: true
---

# Saluran WeChat Informasi Dasar Video API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/weixin-channels/get-video-basic-info/v1\"")'
  :summary='JSON.parse("\"Informasi Dasar Video (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/wechat-channels/video-basic-info-v1-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token akses untuk layanan API ini.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"feedInfo\",\"in\":\"query\",\"description\":\"Link video yang disalin dari saluran WeChat, URL penemu-peninjauan, atau id feed pendek.\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :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\",\"description\":\"Hasil resolusi tautan berbagi saluran WeChat atau ID feed pendek.\",\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Informasi dasar dan spesifikasi media yang dilaporkan untuk video yang diidentifikasi.\",\"properties\":{\"object_id\":{\"type\":\"string\",\"description\":\"ID objek video saluran WeChat. Pertahankan identifikasi panjang ini sebagai string untuk pencarian video selanjutnya.\"},\"object_nonce_id\":{\"type\":\"string\",\"description\":\"ID nonce yang tidak jelas yang dikembalikan bersama objek video. Serahkan string tersebut tanpa diubah ketika endpoint selanjutnya menerimanya.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul atau teks subjek yang dikembalikan untuk video.\"},\"nickname\":{\"type\":\"string\",\"description\":\"Nama panggilan tampilan akun yang mempublikasikan video.\"},\"v2_name\":{\"type\":\"string\",\"description\":\"Identifikasi akun saluran WeChat dari penerbit video.\"},\"cover_url\":{\"type\":\"string\",\"description\":\"URL gambar untuk sampul video.\"},\"publish_time\":{\"type\":\"integer\",\"description\":\"Waktu publikasi video dalam satuan detik Unix.\"},\"publish_time_str\":{\"type\":\"string\",\"description\":\"Teks waktu publikasi dalam waktu Beijing, sebagaimana yang dikembalikan oleh layanan.\"},\"media_type\":{\"type\":\"integer\",\"description\":\"Kode jenis media platform yang dikembalikan untuk video.\"},\"fav_count\":{\"type\":\"integer\",\"description\":\"Jumlah kali video tersebut dijadikan favorit yang dilaporkan.\"},\"like_count\":{\"type\":\"integer\",\"description\":\"Jumlah like yang dilaporkan untuk video tersebut.\"},\"forward_count\":{\"type\":\"integer\",\"description\":\"Jumlah forward yang dilaporkan untuk video tersebut.\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"Jumlah komentar yang dilaporkan untuk video.\"},\"spec\":{\"type\":\"array\",\"description\":\"Versi media yang dikembalikan untuk video.\",\"items\":{\"type\":\"object\",\"description\":\"Satu versi media dengan dimensi, durasi, dan properti encodingnya sendiri.\",\"properties\":{\"file_format\":{\"type\":\"string\",\"description\":\"Label format file yang dilaporkan untuk versi ini.\"},\"coding_format\":{\"type\":\"string\",\"description\":\"Label format encoding yang dilaporkan untuk versi ini.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar video untuk versi ini, dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi video untuk versi ini, dalam piksel.\"},\"duration_ms\":{\"type\":\"integer\",\"description\":\"Durasi video yang dilaporkan untuk versi ini, dalam milidetik.\"},\"vfps\":{\"type\":\"number\",\"description\":\"Kecepatan frame video yang dilaporkan, dalam frame per detik.\"},\"bit_rate\":{\"type\":\"integer\",\"description\":\"Nilai bitrate keseluruhan yang dilaporkan untuk versi ini.\"},\"video_bitrate\":{\"type\":\"integer\",\"description\":\"Nilai bitrate untuk aliran video.\"},\"audio_bitrate\":{\"type\":\"integer\",\"description\":\"Nilai bitrate untuk aliran audio.\"},\"first_load_bytes\":{\"type\":\"integer\",\"description\":\"Jumlah byte yang dilaporkan untuk pemuatan awal versi ini.\"},\"file_size\":{\"type\":\"integer\",\"description\":\"Nilai ukuran file yang dilaporkan untuk versi ini. Bisa nol.\"},\"dynamic_range_type\":{\"type\":\"integer\",\"description\":\"Kode jenis rentang dinamis yang dilaporkan untuk versi ini.\"},\"quality_score\":{\"type\":\"integer\",\"description\":\"Skor kualitas yang dilaporkan untuk versi ini.\"},\"level_order\":{\"type\":\"integer\",\"description\":\"Nilai urutan yang dilaporkan untuk versi ini.\"}}}}}}}}}},\"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/weixin-channels/get-video-basic-info/v1\"")' />

<p>Menentukan informasi video dasar untuk tautan video WeChat Channels yang disalin, URL preview, atau ID feed pendek. Gunakan untuk mengidentifikasi video yang dibagikan sebelum pencarian lebih lanjut.</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 akses untuk layanan API ini. |
| <code>feedInfo</code> | query | <code>string</code> | Ya | - | Link video yang disalin dari saluran WeChat, URL penemu-peninjauan, atau id feed pendek. |

</div>

## Contoh Kode

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=VALUE'
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Informasi Dasar Video (V1)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=VALUE
Endpoint API: BASE_URL + /api/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/wechat-channels/video-basic-info-v1-id.json

Parameter:
- token (query): Token akses untuk layanan API ini. (Wajib)
- feedInfo (query): Link video yang disalin dari saluran WeChat, URL penemu-peninjauan, atau id feed pendek. (Wajib)

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/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=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/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=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/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=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/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=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/weixin-channels/get-video-basic-info/v1?token=YOUR_API_KEY&feedInfo=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/wechat-channels/video-basic-info-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> | Hasil resolusi tautan berbagi saluran WeChat atau ID feed pendek. |
| <code>data.data</code> | <code>object</code> | Informasi dasar dan spesifikasi media yang dilaporkan untuk video yang diidentifikasi. |
| <code>data.data.object_id</code> | <code>string</code> | ID objek video saluran WeChat. Pertahankan identifikasi panjang ini sebagai string untuk pencarian video selanjutnya. |
| <code>data.data.object_nonce_id</code> | <code>string</code> | ID nonce yang tidak jelas yang dikembalikan bersama objek video. Serahkan string tersebut tanpa diubah ketika endpoint selanjutnya menerimanya. |
| <code>data.data.title</code> | <code>string</code> | Judul atau teks subjek yang dikembalikan untuk video. |
| <code>data.data.nickname</code> | <code>string</code> | Nama panggilan tampilan akun yang mempublikasikan video. |
| <code>data.data.v2_name</code> | <code>string</code> | Identifikasi akun saluran WeChat dari penerbit video. |
| <code>data.data.cover_url</code> | <code>string</code> | URL gambar untuk sampul video. |
| <code>data.data.publish_time</code> | <code>integer</code> | Waktu publikasi video dalam satuan detik Unix. |
| <code>data.data.publish_time_str</code> | <code>string</code> | Teks waktu publikasi dalam waktu Beijing, sebagaimana yang dikembalikan oleh layanan. |
| <code>data.data.media_type</code> | <code>integer</code> | Kode jenis media platform yang dikembalikan untuk video. |
| <code>data.data.fav_count</code> | <code>integer</code> | Jumlah kali video tersebut dijadikan favorit yang dilaporkan. |
| <code>data.data.like_count</code> | <code>integer</code> | Jumlah like yang dilaporkan untuk video tersebut. |
| <code>data.data.forward_count</code> | <code>integer</code> | Jumlah forward yang dilaporkan untuk video tersebut. |
| <code>data.data.comment_count</code> | <code>integer</code> | Jumlah komentar yang dilaporkan untuk video. |
| <code>data.data.spec</code> | <code>array</code> | Versi media yang dikembalikan untuk video. |
| <code>data.data.spec[]</code> | <code>object</code> | Satu versi media dengan dimensi, durasi, dan properti encodingnya sendiri. |
| <code>data.data.spec[].file_format</code> | <code>string</code> | Label format file yang dilaporkan untuk versi ini. |
| <code>data.data.spec[].coding_format</code> | <code>string</code> | Label format encoding yang dilaporkan untuk versi ini. |
| <code>data.data.spec[].width</code> | <code>integer</code> | Lebar video untuk versi ini, dalam piksel. |
| <code>data.data.spec[].height</code> | <code>integer</code> | Tinggi video untuk versi ini, dalam piksel. |
| <code>data.data.spec[].duration_ms</code> | <code>integer</code> | Durasi video yang dilaporkan untuk versi ini, dalam milidetik. |
| <code>data.data.spec[].vfps</code> | <code>number</code> | Kecepatan frame video yang dilaporkan, dalam frame per detik. |
| <code>data.data.spec[].bit_rate</code> | <code>integer</code> | Nilai bitrate keseluruhan yang dilaporkan untuk versi ini. |
| <code>data.data.spec[].video_bitrate</code> | <code>integer</code> | Nilai bitrate untuk aliran video. |
| <code>data.data.spec[].audio_bitrate</code> | <code>integer</code> | Nilai bitrate untuk aliran audio. |
| <code>data.data.spec[].first_load_bytes</code> | <code>integer</code> | Jumlah byte yang dilaporkan untuk pemuatan awal versi ini. |
| <code>data.data.spec[].file_size</code> | <code>integer</code> | Nilai ukuran file yang dilaporkan untuk versi ini. Bisa nol. |
| <code>data.data.spec[].dynamic_range_type</code> | <code>integer</code> | Kode jenis rentang dinamis yang dilaporkan untuk versi ini. |
| <code>data.data.spec[].quality_score</code> | <code>integer</code> | Skor kualitas yang dilaporkan untuk versi ini. |
| <code>data.data.spec[].level_order</code> | <code>integer</code> | Nilai urutan yang dilaporkan untuk versi ini. |

</div>

## Contoh Respons

<ApiExampleSection :api='JSON.parse("\"/api/weixin-channels/get-video-basic-info/v1\"")' />

