---
title: "Weibo Profil Pengguna API (V3)"
description: "Mengambil profil pengguna Weibo yang diidentifikasi dengan UID. Digunakan untuk mencari akun yang diketahui guna penelitian tentang pencipta, peninjauan profil, atau pengambilan kembali unggahan dan video akun tersebut."
lastUpdated: false
aiUsagePrompt: true
---

# Weibo Profil Pengguna API \(V3\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/weibo/get-user-detail/v3\"")'
  :summary='JSON.parse("\"Profil Pengguna (V3)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/weibo/user-profile-v3-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token akses API.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"uid\",\"in\":\"query\",\"description\":\"ID Pengguna Weibo (UID).\",\"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 profil pengguna Weibo. Respons keberhasilan bisnis dapat berisi pesan status dan objek pengguna yang kosong.\",\"properties\":{\"ok\":{\"type\":\"integer\",\"description\":\"Kode status internal yang dilaporkan oleh Weibo. Objek pengguna yang kosong masih dapat memiliki kode status 1.\"},\"abnormal\":{\"type\":\"boolean\",\"description\":\"Apakah Weibo menandai hasil sebagai abnormal, ketika dilaporkan.\"},\"message\":{\"type\":\"string\",\"description\":\"Pesan status yang dikembalikan oleh Weibo.\"},\"user\":{\"type\":\"object\",\"description\":\"Objek pengguna yang dikembalikan bersama dengan pesan status. Objek tersebut kosong dalam respons abnormal yang terpilih.\"},\"data\":{\"type\":\"object\",\"description\":\"Profil dan tab profil yang dikembalikan ketika tersedia.\",\"properties\":{\"user\":{\"type\":\"object\",\"description\":\"Profil pengguna Weibo yang publik.\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"Identifikator pengguna Weibo yang dikembalikan sebagai bilangan bulat.\"},\"idstr\":{\"type\":\"string\",\"description\":\"Identifikator pengguna Weibo yang dikembalikan sebagai teks.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Nama tampilan yang dilaporkan untuk akun Weibo.\"},\"description\":{\"type\":\"string\",\"description\":\"Deskripsi profil publik untuk akun Weibo.\"},\"location\":{\"type\":\"string\",\"description\":\"Teks lokasi yang ditampilkan dalam profil akun publik.\"},\"gender\":{\"type\":\"string\",\"description\":\"Kode jenis kelamin yang dilaporkan untuk profil Weibo.\"},\"profile_url\":{\"type\":\"string\",\"description\":\"Jalur atau URL profil Weibo yang dikembalikan untuk akun.\"},\"domain\":{\"type\":\"string\",\"description\":\"Label domain profil yang dikembalikan untuk akun.\"},\"profile_image_url\":{\"type\":\"string\",\"description\":\"URL gambar profil yang dikembalikan untuk akun.\"},\"avatar_large\":{\"type\":\"string\",\"description\":\"URL gambar avatar besar yang dikembalikan untuk akun.\"},\"avatar_hd\":{\"type\":\"string\",\"description\":\"URL gambar avatar resolusi tinggi yang dikembalikan untuk akun.\"},\"cover_image_phone\":{\"type\":\"string\",\"description\":\"URL gambar sampul profil untuk tampilan mobile.\"},\"verified\":{\"type\":\"boolean\",\"description\":\"Apakah akun Weibo terverifikasi.\"},\"verified_type\":{\"type\":\"integer\",\"description\":\"Kode jenis verifikasi yang dilaporkan untuk akun tersebut.\"},\"verified_type_ext\":{\"type\":\"integer\",\"description\":\"Kode jenis verifikasi tambahan yang dilaporkan untuk akun tersebut.\"},\"verified_reason\":{\"type\":\"string\",\"description\":\"Teks alasan verifikasi yang dilaporkan untuk akun tersebut.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Jumlah pengikut yang dilaporkan untuk akun Weibo.\"},\"followers_count_str\":{\"type\":\"string\",\"description\":\"Jumlah pengikut yang ditampilkan dalam bentuk teks.\"},\"friends_count\":{\"type\":\"integer\",\"description\":\"Jumlah akun yang diikuti oleh pengguna Weibo, sebagaimana dilaporkan.\"},\"statuses_count\":{\"type\":\"integer\",\"description\":\"Jumlah postingan untuk akun Weibo yang dilaporkan.\"},\"status_total_counter\":{\"type\":\"object\",\"description\":\"Pengontrol interaksi untuk postingan akun, ditampilkan sebagai teks.\",\"properties\":{\"total_cnt\":{\"type\":\"string\",\"description\":\"Jumlah total interaksi yang dilaporkan sebagai teks.\"},\"total_cnt_format\":{\"type\":\"string\",\"description\":\"Teks tampilan yang diformat untuk jumlah total interaksi.\"},\"comment_cnt\":{\"type\":\"string\",\"description\":\"Jumlah komentar yang dilaporkan sebagai teks.\"},\"repost_cnt\":{\"type\":\"string\",\"description\":\"Jumlah posting ulang yang dilaporkan sebagai teks.\"},\"like_cnt\":{\"type\":\"string\",\"description\":\"Jumlah like yang dilaporkan sebagai teks.\"}}},\"mbrank\":{\"type\":\"integer\",\"description\":\"Tingkat keanggotaan yang dilaporkan untuk akun Weibo.\"},\"mbtype\":{\"type\":\"integer\",\"description\":\"Kode jenis keanggotaan yang dilaporkan untuk akun Weibo.\"},\"svip\":{\"type\":\"integer\",\"description\":\"Nilai keanggotaan SVIP dilaporkan sebagai bilangan bulat.\"},\"vvip\":{\"type\":\"integer\",\"description\":\"Nilai keanggotaan VVIP dilaporkan sebagai bilangan bulat.\"},\"icon_list\":{\"type\":\"array\",\"description\":\"Ikon profil publik yang dilaporkan untuk akun Weibo.\",\"items\":{\"type\":\"object\",\"description\":\"Satu ikon profil yang dikembalikan untuk akun tersebut.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Label jenis untuk ikon profil yang dikembalikan.\"},\"data\":{\"type\":\"object\",\"description\":\"Informasi keanggotaan yang dikembalikan bersama ikon profil ini.\",\"properties\":{\"mbrank\":{\"type\":\"integer\",\"description\":\"Tingkat keanggotaan yang dilaporkan untuk akun Weibo.\"},\"mbtype\":{\"type\":\"integer\",\"description\":\"Kode jenis keanggotaan yang dilaporkan untuk akun Weibo.\"},\"svip\":{\"type\":\"integer\",\"description\":\"Nilai keanggotaan SVIP dilaporkan sebagai bilangan bulat.\"},\"vvip\":{\"type\":\"integer\",\"description\":\"Nilai keanggotaan VVIP dilaporkan sebagai bilangan bulat.\"}}}}}}}},\"tabList\":{\"type\":\"array\",\"description\":\"Tab profil publik yang dikembalikan untuk akun Weibo.\",\"items\":{\"type\":\"object\",\"description\":\"Satu tab publik yang tercantum untuk profil tersebut.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan tab profil.\"},\"tabName\":{\"type\":\"string\",\"description\":\"Kata kunci yang dilaporkan untuk tab profil.\"}}}}}}}}}},\"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/weibo/get-user-detail/v3\"")' />

<p>Mengambil profil pengguna Weibo yang diidentifikasi dengan UID. Digunakan untuk mencari akun yang diketahui guna penelitian tentang pencipta, peninjauan profil, atau pengambilan kembali unggahan dan video akun tersebut.</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 API. |
| <code>uid</code> | query | <code>string</code> | Ya | - | ID Pengguna Weibo (UID). |

</div>

## Contoh Kode

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=VALUE'
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Profil Pengguna (V3)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=VALUE
Endpoint API: BASE_URL + /api/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/weibo/user-profile-v3-id.json

Parameter:
- token (query): Token akses API. (Wajib)
- uid (query): ID Pengguna Weibo (UID). (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/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=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/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=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/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=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/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=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/weibo/get-user-detail/v3?token=YOUR_API_KEY&uid=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/weibo/user-profile-v3-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 profil pengguna Weibo. Respons keberhasilan bisnis dapat berisi pesan status dan objek pengguna yang kosong. |
| <code>data.ok</code> | <code>integer</code> | Kode status internal yang dilaporkan oleh Weibo. Objek pengguna yang kosong masih dapat memiliki kode status 1. |
| <code>data.abnormal</code> | <code>boolean</code> | Apakah Weibo menandai hasil sebagai abnormal, ketika dilaporkan. |
| <code>data.message</code> | <code>string</code> | Pesan status yang dikembalikan oleh Weibo. |
| <code>data.user</code> | <code>object</code> | Objek pengguna yang dikembalikan bersama dengan pesan status. Objek tersebut kosong dalam respons abnormal yang terpilih. |
| <code>data.data</code> | <code>object</code> | Profil dan tab profil yang dikembalikan ketika tersedia. |
| <code>data.data.user</code> | <code>object</code> | Profil pengguna Weibo yang publik. |
| <code>data.data.user.id</code> | <code>integer</code> | Identifikator pengguna Weibo yang dikembalikan sebagai bilangan bulat. |
| <code>data.data.user.idstr</code> | <code>string</code> | Identifikator pengguna Weibo yang dikembalikan sebagai teks. |
| <code>data.data.user.screen_name</code> | <code>string</code> | Nama tampilan yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.description</code> | <code>string</code> | Deskripsi profil publik untuk akun Weibo. |
| <code>data.data.user.location</code> | <code>string</code> | Teks lokasi yang ditampilkan dalam profil akun publik. |
| <code>data.data.user.gender</code> | <code>string</code> | Kode jenis kelamin yang dilaporkan untuk profil Weibo. |
| <code>data.data.user.profile_url</code> | <code>string</code> | Jalur atau URL profil Weibo yang dikembalikan untuk akun. |
| <code>data.data.user.domain</code> | <code>string</code> | Label domain profil yang dikembalikan untuk akun. |
| <code>data.data.user.profile_image_url</code> | <code>string</code> | URL gambar profil yang dikembalikan untuk akun. |
| <code>data.data.user.avatar_large</code> | <code>string</code> | URL gambar avatar besar yang dikembalikan untuk akun. |
| <code>data.data.user.avatar_hd</code> | <code>string</code> | URL gambar avatar resolusi tinggi yang dikembalikan untuk akun. |
| <code>data.data.user.cover_image_phone</code> | <code>string</code> | URL gambar sampul profil untuk tampilan mobile. |
| <code>data.data.user.verified</code> | <code>boolean</code> | Apakah akun Weibo terverifikasi. |
| <code>data.data.user.verified_type</code> | <code>integer</code> | Kode jenis verifikasi yang dilaporkan untuk akun tersebut. |
| <code>data.data.user.verified_type_ext</code> | <code>integer</code> | Kode jenis verifikasi tambahan yang dilaporkan untuk akun tersebut. |
| <code>data.data.user.verified_reason</code> | <code>string</code> | Teks alasan verifikasi yang dilaporkan untuk akun tersebut. |
| <code>data.data.user.followers_count</code> | <code>integer</code> | Jumlah pengikut yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.followers_count_str</code> | <code>string</code> | Jumlah pengikut yang ditampilkan dalam bentuk teks. |
| <code>data.data.user.friends_count</code> | <code>integer</code> | Jumlah akun yang diikuti oleh pengguna Weibo, sebagaimana dilaporkan. |
| <code>data.data.user.statuses_count</code> | <code>integer</code> | Jumlah postingan untuk akun Weibo yang dilaporkan. |
| <code>data.data.user.status_total_counter</code> | <code>object</code> | Pengontrol interaksi untuk postingan akun, ditampilkan sebagai teks. |
| <code>data.data.user.status_total_counter.total_cnt</code> | <code>string</code> | Jumlah total interaksi yang dilaporkan sebagai teks. |
| <code>data.data.user.status_total_counter.total_cnt_format</code> | <code>string</code> | Teks tampilan yang diformat untuk jumlah total interaksi. |
| <code>data.data.user.status_total_counter.comment_cnt</code> | <code>string</code> | Jumlah komentar yang dilaporkan sebagai teks. |
| <code>data.data.user.status_total_counter.repost_cnt</code> | <code>string</code> | Jumlah posting ulang yang dilaporkan sebagai teks. |
| <code>data.data.user.status_total_counter.like_cnt</code> | <code>string</code> | Jumlah like yang dilaporkan sebagai teks. |
| <code>data.data.user.mbrank</code> | <code>integer</code> | Tingkat keanggotaan yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.mbtype</code> | <code>integer</code> | Kode jenis keanggotaan yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.svip</code> | <code>integer</code> | Nilai keanggotaan SVIP dilaporkan sebagai bilangan bulat. |
| <code>data.data.user.vvip</code> | <code>integer</code> | Nilai keanggotaan VVIP dilaporkan sebagai bilangan bulat. |
| <code>data.data.user.icon_list</code> | <code>array</code> | Ikon profil publik yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.icon_list[]</code> | <code>object</code> | Satu ikon profil yang dikembalikan untuk akun tersebut. |
| <code>data.data.user.icon_list[].type</code> | <code>string</code> | Label jenis untuk ikon profil yang dikembalikan. |
| <code>data.data.user.icon_list[].data</code> | <code>object</code> | Informasi keanggotaan yang dikembalikan bersama ikon profil ini. |
| <code>data.data.user.icon_list[].data.mbrank</code> | <code>integer</code> | Tingkat keanggotaan yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.icon_list[].data.mbtype</code> | <code>integer</code> | Kode jenis keanggotaan yang dilaporkan untuk akun Weibo. |
| <code>data.data.user.icon_list[].data.svip</code> | <code>integer</code> | Nilai keanggotaan SVIP dilaporkan sebagai bilangan bulat. |
| <code>data.data.user.icon_list[].data.vvip</code> | <code>integer</code> | Nilai keanggotaan VVIP dilaporkan sebagai bilangan bulat. |
| <code>data.data.tabList</code> | <code>array</code> | Tab profil publik yang dikembalikan untuk akun Weibo. |
| <code>data.data.tabList[]</code> | <code>object</code> | Satu tab publik yang tercantum untuk profil tersebut. |
| <code>data.data.tabList[].name</code> | <code>string</code> | Nama tampilan tab profil. |
| <code>data.data.tabList[].tabName</code> | <code>string</code> | Kata kunci yang dilaporkan untuk tab profil. |

</div>

## Contoh Respons

<ApiExampleSection :api='JSON.parse("\"/api/weibo/get-user-detail/v3\"")' />

