---
title: "Zhihu User Followees API (V1)"
description: "Retrieve accounts followed by a Zhihu user, with offset pagination. Use it to explore the outgoing connections of a known account."
aiUsagePrompt: true
---

# Zhihu User Followees API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/zhihu/get-user-followees/v1\"")'
  :summary='JSON.parse("\"User Followees (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/zhihu/user-followees-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"TOKEN\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"userUrlToken\",\"in\":\"query\",\"description\":\"Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"offset\",\"in\":\"query\",\"description\":\"Start offset, begins with 0.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":0}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"description\":\"Public accounts followed by the requested Zhihu user.\",\"items\":{\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Zhihu account ID returned as text.\"},\"url_token\":{\"type\":\"string\",\"description\":\"Public Zhihu profile identifier used in profile links and the userUrlToken request parameter.\"},\"name\":{\"type\":\"string\",\"description\":\"Public name displayed for the Zhihu account.\"},\"type\":{\"type\":\"string\",\"description\":\"Record type reported by Zhihu for the account.\"},\"user_type\":{\"type\":\"string\",\"description\":\"User type code reported by Zhihu.\"},\"url\":{\"type\":\"string\",\"description\":\"Account link returned by Zhihu.\"},\"headline\":{\"type\":\"string\",\"description\":\"Public headline displayed on the profile.\"},\"headline_render\":{\"type\":\"string\",\"description\":\"Formatted headline used for display.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Image URL for the account avatar.\"},\"avatar_url_template\":{\"type\":\"string\",\"description\":\"Avatar URL template returned for this profile.\"},\"use_default_avatar\":{\"type\":\"boolean\",\"description\":\"Whether the profile is marked as using the default avatar.\"},\"is_org\":{\"type\":\"boolean\",\"description\":\"Whether the account is marked as an organization.\"},\"gender\":{\"type\":\"integer\",\"description\":\"Gender code reported by the profile.\"},\"answer_count\":{\"type\":\"integer\",\"description\":\"Reported number of answers by this account.\"},\"articles_count\":{\"type\":\"integer\",\"description\":\"Reported number of articles by this account.\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"Reported number of followers for this account.\"},\"follower_count_text\":{\"type\":\"string\",\"description\":\"Formatted follower-count text displayed by Zhihu.\"},\"follower_count_num\":{\"type\":\"string\",\"description\":\"Numeric text component of the formatted follower count.\"},\"follower_count_unit\":{\"type\":\"string\",\"description\":\"Unit text used in the formatted follower count, which may be empty.\"},\"available_medals_count\":{\"type\":\"integer\",\"description\":\"Medal count reported for this profile.\"},\"badge\":{\"type\":\"array\",\"description\":\"Public badge records returned for this account.\"},\"badge_v2\":{\"type\":\"object\",\"description\":\"Public badge display information returned by Zhihu.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title for the displayed badge bundle.\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon link for the displayed badge bundle.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Dark-mode icon link for the displayed badge bundle.\"},\"detail_badges\":{\"type\":\"array\",\"description\":\"Detailed badge entries for this account.\",\"items\":{\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Displayed badge title.\"},\"description\":{\"type\":\"string\",\"description\":\"Description shown for this badge.\"},\"type\":{\"type\":\"string\",\"description\":\"Type code reported for this badge.\"},\"detail_type\":{\"type\":\"string\",\"description\":\"Detail type reported for this badge.\"},\"badge_status\":{\"type\":\"string\",\"description\":\"Status label reported for this badge.\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon URL returned for the badge.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Dark-mode icon URL returned for the badge.\"},\"url\":{\"type\":\"string\",\"description\":\"Link accompanying the badge.\"}}}},\"merged_badges\":{\"type\":\"array\",\"description\":\"Merged badge entries for display on this account.\",\"items\":{\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Displayed badge title.\"},\"description\":{\"type\":\"string\",\"description\":\"Description shown for this badge.\"},\"type\":{\"type\":\"string\",\"description\":\"Type code reported for this badge.\"},\"detail_type\":{\"type\":\"string\",\"description\":\"Detail type reported for this badge.\"},\"badge_status\":{\"type\":\"string\",\"description\":\"Status label reported for this badge.\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon URL returned for the badge.\"},\"night_icon\":{\"type\":\"string\",\"description\":\"Dark-mode icon URL returned for the badge.\"},\"url\":{\"type\":\"string\",\"description\":\"Link accompanying the badge.\"}}}}}}}}},\"paging\":{\"type\":\"object\",\"description\":\"Pagination metadata returned for the relationship list.\",\"properties\":{\"is_start\":{\"type\":\"boolean\",\"description\":\"Whether this is the first result page.\"},\"is_end\":{\"type\":\"boolean\",\"description\":\"Whether the API reports the final page. Stop when true even if a next URL is present.\"},\"totals\":{\"type\":\"integer\",\"description\":\"Total number of matching accounts reported for the relationship.\"},\"next\":{\"type\":\"string\",\"description\":\"Next-page link reported by Zhihu. When another page is available, use its offset with the same user and API route.\"},\"previous\":{\"type\":\"string\",\"description\":\"Previous-page link reported by Zhihu.\"}}}}}}},\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"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\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"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\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"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\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"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\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"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\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"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\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/zhihu/get-user-followees/v1\"")' />

<p>Retrieve accounts followed by a Zhihu user, with offset pagination. Use it to explore the outgoing connections of a known account.</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 | - | TOKEN |
| <code>userUrlToken</code> | query | <code>string</code> | Yes | - | Zhihu user URL token, such as the value in <code>zhihu.com/people/{userUrlToken}</code>. |
| <code>offset</code> | query | <code>integer</code> | No | <code>0</code> | Start offset, begins with 0. |

</div>

## Code Samples

::: code-group

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

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

Parameters:
- token (query): TOKEN (Required)
- userUrlToken (query): Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`. (Required)
- offset (query): Start offset, begins with 0.

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/zhihu/get-user-followees/v1?token=YOUR_API_KEY&userUrlToken=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/zhihu/get-user-followees/v1?token=YOUR_API_KEY&userUrlToken=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/zhihu/get-user-followees/v1?token=YOUR_API_KEY&userUrlToken=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/zhihu/get-user-followees/v1?token=YOUR_API_KEY&userUrlToken=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/zhihu/get-user-followees/v1?token=YOUR_API_KEY&userUrlToken=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/zhihu/user-followees-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</code> | - |
| <code>data.data</code> | <code>array</code> | Public accounts followed by the requested Zhihu user. |
| <code>data.data[].id</code> | <code>string</code> | Zhihu account ID returned as text. |
| <code>data.data[].url_token</code> | <code>string</code> | Public Zhihu profile identifier used in profile links and the userUrlToken request parameter. |
| <code>data.data[].name</code> | <code>string</code> | Public name displayed for the Zhihu account. |
| <code>data.data[].type</code> | <code>string</code> | Record type reported by Zhihu for the account. |
| <code>data.data[].user_type</code> | <code>string</code> | User type code reported by Zhihu. |
| <code>data.data[].url</code> | <code>string</code> | Account link returned by Zhihu. |
| <code>data.data[].headline</code> | <code>string</code> | Public headline displayed on the profile. |
| <code>data.data[].headline_render</code> | <code>string</code> | Formatted headline used for display. |
| <code>data.data[].avatar_url</code> | <code>string</code> | Image URL for the account avatar. |
| <code>data.data[].avatar_url_template</code> | <code>string</code> | Avatar URL template returned for this profile. |
| <code>data.data[].use_default_avatar</code> | <code>boolean</code> | Whether the profile is marked as using the default avatar. |
| <code>data.data[].is_org</code> | <code>boolean</code> | Whether the account is marked as an organization. |
| <code>data.data[].gender</code> | <code>integer</code> | Gender code reported by the profile. |
| <code>data.data[].answer_count</code> | <code>integer</code> | Reported number of answers by this account. |
| <code>data.data[].articles_count</code> | <code>integer</code> | Reported number of articles by this account. |
| <code>data.data[].follower_count</code> | <code>integer</code> | Reported number of followers for this account. |
| <code>data.data[].follower_count_text</code> | <code>string</code> | Formatted follower-count text displayed by Zhihu. |
| <code>data.data[].follower_count_num</code> | <code>string</code> | Numeric text component of the formatted follower count. |
| <code>data.data[].follower_count_unit</code> | <code>string</code> | Unit text used in the formatted follower count, which may be empty. |
| <code>data.data[].available_medals_count</code> | <code>integer</code> | Medal count reported for this profile. |
| <code>data.data[].badge</code> | <code>array</code> | Public badge records returned for this account. |
| <code>data.data[].badge_v2</code> | <code>object</code> | Public badge display information returned by Zhihu. |
| <code>data.data[].badge_v2.title</code> | <code>string</code> | Title for the displayed badge bundle. |
| <code>data.data[].badge_v2.icon</code> | <code>string</code> | Icon link for the displayed badge bundle. |
| <code>data.data[].badge_v2.night_icon</code> | <code>string</code> | Dark-mode icon link for the displayed badge bundle. |
| <code>data.data[].badge_v2.detail_badges</code> | <code>array</code> | Detailed badge entries for this account. |
| <code>data.data[].badge_v2.detail_badges[].title</code> | <code>string</code> | Displayed badge title. |
| <code>data.data[].badge_v2.detail_badges[].description</code> | <code>string</code> | Description shown for this badge. |
| <code>data.data[].badge_v2.detail_badges[].type</code> | <code>string</code> | Type code reported for this badge. |
| <code>data.data[].badge_v2.detail_badges[].detail_type</code> | <code>string</code> | Detail type reported for this badge. |
| <code>data.data[].badge_v2.detail_badges[].badge_status</code> | <code>string</code> | Status label reported for this badge. |
| <code>data.data[].badge_v2.detail_badges[].icon</code> | <code>string</code> | Icon URL returned for the badge. |
| <code>data.data[].badge_v2.detail_badges[].night_icon</code> | <code>string</code> | Dark-mode icon URL returned for the badge. |
| <code>data.data[].badge_v2.detail_badges[].url</code> | <code>string</code> | Link accompanying the badge. |
| <code>data.data[].badge_v2.merged_badges</code> | <code>array</code> | Merged badge entries for display on this account. |
| <code>data.data[].badge_v2.merged_badges[].title</code> | <code>string</code> | Displayed badge title. |
| <code>data.data[].badge_v2.merged_badges[].description</code> | <code>string</code> | Description shown for this badge. |
| <code>data.data[].badge_v2.merged_badges[].type</code> | <code>string</code> | Type code reported for this badge. |
| <code>data.data[].badge_v2.merged_badges[].detail_type</code> | <code>string</code> | Detail type reported for this badge. |
| <code>data.data[].badge_v2.merged_badges[].badge_status</code> | <code>string</code> | Status label reported for this badge. |
| <code>data.data[].badge_v2.merged_badges[].icon</code> | <code>string</code> | Icon URL returned for the badge. |
| <code>data.data[].badge_v2.merged_badges[].night_icon</code> | <code>string</code> | Dark-mode icon URL returned for the badge. |
| <code>data.data[].badge_v2.merged_badges[].url</code> | <code>string</code> | Link accompanying the badge. |
| <code>data.paging</code> | <code>object</code> | Pagination metadata returned for the relationship list. |
| <code>data.paging.is_start</code> | <code>boolean</code> | Whether this is the first result page. |
| <code>data.paging.is_end</code> | <code>boolean</code> | Whether the API reports the final page. Stop when true even if a next URL is present. |
| <code>data.paging.totals</code> | <code>integer</code> | Total number of matching accounts reported for the relationship. |
| <code>data.paging.next</code> | <code>string</code> | Next-page link reported by Zhihu. When another page is available, use its offset with the same user and API route. |
| <code>data.paging.previous</code> | <code>string</code> | Previous-page link reported by Zhihu. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/zhihu/get-user-followees/v1\"")' />

