---
title: "Weibo User Followers API (V1)"
description: "Retrieves a page of accounts followed by a Weibo user identified by UID. Use it to examine the account's outgoing follow network or continue through its following list."
aiUsagePrompt: true
---

# Weibo User Followers API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/weibo/get-followers/v1\"")'
  :summary='JSON.parse("\"User Followers (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/weibo/user-followers-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\":{\"description\":\"Weibo response for accounts followed by the requested user. A status-only response can omit the list.\",\"properties\":{\"ok\":{\"type\":\"integer\",\"description\":\"List status reported by Weibo. An outer API success can still contain an inner status message without a list.\"},\"screenName\":{\"type\":\"string\",\"description\":\"Screen name reported alongside the followed-accounts list.\"},\"total_number\":{\"type\":\"integer\",\"description\":\"Total followed-account count reported by Weibo.\"},\"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\":\"Accounts followed by the requested user, when the list is available.\",\"items\":{\"type\":\"object\",\"description\":\"One followed account in the returned list.\",\"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.\"}}},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the account profile.\"},\"cover_image\":{\"type\":\"string\",\"description\":\"Profile cover image URL, when returned.\"},\"cover_image_phone\":{\"type\":\"string\",\"description\":\"Profile cover image URL for mobile display, when returned.\"},\"verified_type_ext\":{\"type\":\"integer\",\"description\":\"Additional verification type code reported for the account.\"},\"video_cover\":{\"type\":\"object\",\"description\":\"Video cover information returned for the profile, when present.\",\"properties\":{\"mid\":{\"type\":\"integer\",\"description\":\"Numeric Weibo message ID returned with the video cover.\"}}}}}}}}}},\"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-followers/v1\"")' />

<p>Retrieves a page of accounts followed by a Weibo user identified by UID. Use it to examine the account's outgoing follow network or continue through its following 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-followers/v1?token=YOUR_API_KEY&uid=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "User Followers (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/weibo/get-followers/v1?token=YOUR_API_KEY&uid=VALUE
API Endpoint: BASE_URL + /api/weibo/get-followers/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-followers-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-followers/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-followers/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-followers/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-followers/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-followers/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-followers-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> | - | Weibo response for accounts followed by the requested user. A status-only response can omit the list. |
| <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.screenName</code> | <code>string</code> | Screen name reported alongside the followed-accounts list. |
| <code>data.total_number</code> | <code>integer</code> | Total followed-account count reported by Weibo. |
| <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> | Accounts followed by the requested user, when the list is available. |
| <code>data.users[]</code> | <code>object</code> | One followed account in the returned list. |
| <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. |
| <code>data.users[].lang</code> | <code>string</code> | Language code reported for the account profile. |
| <code>data.users[].cover_image</code> | <code>string</code> | Profile cover image URL, when returned. |
| <code>data.users[].cover_image_phone</code> | <code>string</code> | Profile cover image URL for mobile display, when returned. |
| <code>data.users[].verified_type_ext</code> | <code>integer</code> | Additional verification type code reported for the account. |
| <code>data.users[].video_cover</code> | <code>object</code> | Video cover information returned for the profile, when present. |
| <code>data.users[].video_cover.mid</code> | <code>integer</code> | Numeric Weibo message ID returned with the video cover. |

</div>

## Response Example

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

