---
title: "Weibo User Fans API (V1)"
description: "Retrieves a page of fan accounts that follow a Weibo user identified by UID. Use it to browse the account's follower audience or continue through its fan list."
aiUsagePrompt: true
---

# Weibo User Fans API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/weibo/get-fans/v1\"")'
  :summary='JSON.parse("\"User Fans (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/weibo/user-fans-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"API access token.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"uid\",\"in\":\"query\",\"description\":\"Weibo User ID (UID).\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Page number, starting with 1.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}}]")'
  :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\",\"null\"],\"description\":\"Follower-list result with public profile summaries and reported pagination when available.\",\"properties\":{\"ok\":{\"type\":\"integer\",\"description\":\"List status reported by Weibo. An outer API success can still contain an inner status message without a list.\"},\"msg\":{\"type\":\"string\",\"description\":\"Status message reported when the list is unavailable.\"},\"error_type\":{\"type\":\"string\",\"description\":\"Error type label reported when the list is unavailable.\"},\"screenName\":{\"type\":\"string\",\"description\":\"Display name reported for the account whose follower list was requested.\"},\"total_number\":{\"type\":\"integer\",\"description\":\"Total count reported for the follower list.\"},\"display_total_number\":{\"type\":\"integer\",\"description\":\"Numeric total supplied for display.\"},\"display_total_number_str\":{\"type\":\"string\",\"description\":\"Formatted total count used for display.\"},\"next_cursor\":{\"type\":\"integer\",\"description\":\"Next cursor reported in the response. Use the page query parameter for later requests.\"},\"previous_cursor\":{\"type\":\"integer\",\"description\":\"Previous cursor reported in the response.\"},\"users\":{\"type\":\"array\",\"description\":\"Public follower summaries returned on this page when the list is available.\",\"items\":{\"type\":\"object\",\"description\":\"One follower&#39;s public profile summary.\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"Numeric Weibo account ID.\"},\"idstr\":{\"type\":\"string\",\"description\":\"Weibo account ID returned as a string.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Weibo display name shown for the user.\"},\"name\":{\"type\":\"string\",\"description\":\"Name field returned for the user profile.\"},\"description\":{\"type\":\"string\",\"description\":\"Profile biography text. It can be empty.\"},\"location\":{\"type\":\"string\",\"description\":\"Display location shown in the profile.\"},\"province\":{\"type\":\"string\",\"description\":\"Province code reported in the profile as a string.\"},\"city\":{\"type\":\"string\",\"description\":\"City code reported in the profile as a string.\"},\"gender\":{\"type\":\"string\",\"description\":\"Gender code reported in the profile.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Account creation time as returned in text.\"},\"profile_url\":{\"type\":\"string\",\"description\":\"User profile link returned by Weibo. It can be a relative path.\"},\"url\":{\"type\":\"string\",\"description\":\"External website URL supplied by the user profile when available.\"},\"profile_image_url\":{\"type\":\"string\",\"description\":\"Profile avatar URL.\"},\"avatar_large\":{\"type\":\"string\",\"description\":\"Large profile avatar URL.\"},\"avatar_hd\":{\"type\":\"string\",\"description\":\"High-resolution profile avatar URL.\"},\"verified\":{\"type\":\"boolean\",\"description\":\"Whether the profile is marked as verified.\"},\"verified_type\":{\"type\":\"integer\",\"description\":\"Verification type code reported for the user.\"},\"verified_reason\":{\"type\":\"string\",\"description\":\"Verification description displayed for the user when provided.\"},\"mbrank\":{\"type\":\"integer\",\"description\":\"Weibo membership level reported for the account.\"},\"mbtype\":{\"type\":\"integer\",\"description\":\"Weibo membership type code reported for the account.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Numeric follower count reported for this profile.\"},\"followers_count_str\":{\"type\":\"string\",\"description\":\"Display text for the follower count, which may be abbreviated.\"},\"friends_count\":{\"type\":\"integer\",\"description\":\"Following count reported for the user.\"},\"bi_followers_count\":{\"type\":\"integer\",\"description\":\"Mutual-follow count reported for the user.\"},\"statuses_count\":{\"type\":\"integer\",\"description\":\"Number of posts reported for the user.\"},\"favourites_count\":{\"type\":\"integer\",\"description\":\"Number of favorites reported for the user.\"},\"status_total_counter\":{\"type\":\"object\",\"description\":\"Aggregate post-interaction counters reported for the user.\",\"properties\":{\"comment_cnt\":{\"type\":\"integer\",\"description\":\"Aggregate comment count reported for the user&#39;s posts.\"},\"comment_like_cnt\":{\"type\":\"integer\",\"description\":\"Aggregate comment-like count reported for the user&#39;s posts.\"},\"like_cnt\":{\"type\":\"integer\",\"description\":\"Aggregate post-like count reported for the user.\"},\"repost_cnt\":{\"type\":\"integer\",\"description\":\"Aggregate repost count reported for the user&#39;s posts.\"},\"total_cnt\":{\"type\":\"integer\",\"description\":\"Total interaction count reported in the post counters.\"}}},\"video_status_count\":{\"type\":\"integer\",\"description\":\"Number of video posts reported for the user.\"},\"video_play_count\":{\"type\":\"integer\",\"description\":\"Video play count returned directly in the profile summary.\"},\"video_total_counter\":{\"type\":\"object\",\"description\":\"Aggregate video counters reported for the user.\",\"properties\":{\"play_cnt\":{\"type\":\"integer\",\"description\":\"Aggregate video play count reported in the video counters.\"}}}}}}}}}},\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"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\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"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},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/weibo/get-fans/v1\"")' />

<p>Retrieves a page of fan accounts that follow a Weibo user identified by UID. Use it to browse the account's follower audience or continue through its fan list.</p>

## Parameters

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

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | API access token. |
| <code>uid</code> | query | <code>string</code> | Yes | - | Weibo User ID (UID). |
| <code>page</code> | query | <code>integer</code> | No | <code>1</code> | Page number, starting with 1. |

</div>

## Code Samples

::: code-group

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

```text [🤖 AI Prompt]
I want to use the "User Fans (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/weibo/get-fans/v1?token=YOUR_API_KEY&uid=VALUE
API Endpoint: BASE_URL + /api/weibo/get-fans/v1?token=YOUR_API_KEY&uid=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/weibo/user-fans-v1-en.json

Parameters:
- token (query): API access token. (Required)
- uid (query): Weibo User ID (UID). (Required)
- page (query): Page number, starting with 1.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/weibo/get-fans/v1?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"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/weibo/get-fans/v1?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"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/weibo/get-fans/v1?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" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/weibo/get-fans/v1?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'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/weibo/get-fans/v1?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-fans-v1-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

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

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object &#124; null</code> | Follower-list result with public profile summaries and reported pagination when available. |
| <code>data.ok</code> | <code>integer</code> | List status reported by Weibo. An outer API success can still contain an inner status message without a list. |
| <code>data.msg</code> | <code>string</code> | Status message reported when the list is unavailable. |
| <code>data.error_type</code> | <code>string</code> | Error type label reported when the list is unavailable. |
| <code>data.screenName</code> | <code>string</code> | Display name reported for the account whose follower list was requested. |
| <code>data.total_number</code> | <code>integer</code> | Total count reported for the follower list. |
| <code>data.display_total_number</code> | <code>integer</code> | Numeric total supplied for display. |
| <code>data.display_total_number_str</code> | <code>string</code> | Formatted total count used for display. |
| <code>data.next_cursor</code> | <code>integer</code> | Next cursor reported in the response. Use the page query parameter for later requests. |
| <code>data.previous_cursor</code> | <code>integer</code> | Previous cursor reported in the response. |
| <code>data.users</code> | <code>array</code> | Public follower summaries returned on this page when the list is available. |
| <code>data.users[]</code> | <code>object</code> | One follower's public profile summary. |
| <code>data.users[].id</code> | <code>integer</code> | Numeric Weibo account ID. |
| <code>data.users[].idstr</code> | <code>string</code> | Weibo account ID returned as a string. |
| <code>data.users[].screen_name</code> | <code>string</code> | Weibo display name shown for the user. |
| <code>data.users[].name</code> | <code>string</code> | Name field returned for the user profile. |
| <code>data.users[].description</code> | <code>string</code> | Profile biography text. It can be empty. |
| <code>data.users[].location</code> | <code>string</code> | Display location shown in the profile. |
| <code>data.users[].province</code> | <code>string</code> | Province code reported in the profile as a string. |
| <code>data.users[].city</code> | <code>string</code> | City code reported in the profile as a string. |
| <code>data.users[].gender</code> | <code>string</code> | Gender code reported in the profile. |
| <code>data.users[].created_at</code> | <code>string</code> | Account creation time as returned in text. |
| <code>data.users[].profile_url</code> | <code>string</code> | User profile link returned by Weibo. It can be a relative path. |
| <code>data.users[].url</code> | <code>string</code> | External website URL supplied by the user profile when available. |
| <code>data.users[].profile_image_url</code> | <code>string</code> | Profile avatar URL. |
| <code>data.users[].avatar_large</code> | <code>string</code> | Large profile avatar URL. |
| <code>data.users[].avatar_hd</code> | <code>string</code> | High-resolution profile avatar URL. |
| <code>data.users[].verified</code> | <code>boolean</code> | Whether the profile is marked as verified. |
| <code>data.users[].verified_type</code> | <code>integer</code> | Verification type code reported for the user. |
| <code>data.users[].verified_reason</code> | <code>string</code> | Verification description displayed for the user when provided. |
| <code>data.users[].mbrank</code> | <code>integer</code> | Weibo membership level reported for the account. |
| <code>data.users[].mbtype</code> | <code>integer</code> | Weibo membership type code reported for the account. |
| <code>data.users[].followers_count</code> | <code>integer</code> | Numeric follower count reported for this profile. |
| <code>data.users[].followers_count_str</code> | <code>string</code> | Display text for the follower count, which may be abbreviated. |
| <code>data.users[].friends_count</code> | <code>integer</code> | Following count reported for the user. |
| <code>data.users[].bi_followers_count</code> | <code>integer</code> | Mutual-follow count reported for the user. |
| <code>data.users[].statuses_count</code> | <code>integer</code> | Number of posts reported for the user. |
| <code>data.users[].favourites_count</code> | <code>integer</code> | Number of favorites reported for the user. |
| <code>data.users[].status_total_counter</code> | <code>object</code> | Aggregate post-interaction counters reported for the user. |
| <code>data.users[].status_total_counter.comment_cnt</code> | <code>integer</code> | Aggregate comment count reported for the user's posts. |
| <code>data.users[].status_total_counter.comment_like_cnt</code> | <code>integer</code> | Aggregate comment-like count reported for the user's posts. |
| <code>data.users[].status_total_counter.like_cnt</code> | <code>integer</code> | Aggregate post-like count reported for the user. |
| <code>data.users[].status_total_counter.repost_cnt</code> | <code>integer</code> | Aggregate repost count reported for the user's posts. |
| <code>data.users[].status_total_counter.total_cnt</code> | <code>integer</code> | Total interaction count reported in the post counters. |
| <code>data.users[].video_status_count</code> | <code>integer</code> | Number of video posts reported for the user. |
| <code>data.users[].video_play_count</code> | <code>integer</code> | Video play count returned directly in the profile summary. |
| <code>data.users[].video_total_counter</code> | <code>object</code> | Aggregate video counters reported for the user. |
| <code>data.users[].video_total_counter.play_cnt</code> | <code>integer</code> | Aggregate video play count reported in the video counters. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/weibo/get-fans/v1\"")' />

