Skip to main content
GET
/
v1
/
followings
List Followings
curl --request GET \
  --url https://api.reportify.cn/v1/followings \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.reportify.cn/v1/followings"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.reportify.cn/v1/followings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reportify.cn/v1/followings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.reportify.cn/v1/followings"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.reportify.cn/v1/followings")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.reportify.cn/v1/followings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "total_count": 0,
  "total_page": 0,
  "page_num": 1,
  "page_size": 20,
  "items": [
    {
      "follow_id": "<string>",
      "follow_type": 123,
      "follow_sub_type": 123,
      "follow_value": "<string>",
      "name": "<string>",
      "logo": "<string>",
      "title": "<string>",
      "followed_at": 123
    }
  ]
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

说明

URL: /v1/followings 方法: GET
描述: 统一关注列表,返回当前用户关注的公司、话题、渠道等,支持分页并可按 follow_type / follow_sub_type 过滤。

请求参数

参数名类型必填描述
follow_typeint关注类型:1 公司,2 话题,3 渠道。
follow_sub_typeint关注子类型:1 机构,2 媒体,3 社交。
page_numint页码,从 1 开始,默认 1
page_sizeint每页数量,默认 20

响应参数

参数名类型描述
total_countint关注总数。
total_pageint总页数。
page_numint当前页码。
page_sizeint每页数量。
itemsarray关注列表。
  follow_idstr关注 ID。
  follow_typeint关注类型:1 公司,2 话题,3 渠道。
  follow_sub_typeint关注子类型:1 机构,2 媒体,3 社交。
  follow_valuestr关注对象的取值(如股票代码、话题内容等)。
  namestr名称。
  logostr图标 URL。
  titlestr标题。
  followed_atint关注时间戳(毫秒)。

请求示例

cURL
curl -X GET "https://api.reportify.cn/v1/followings?follow_type=1&page_num=1&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
Python
import requests

url = "https://api.reportify.cn/v1/followings"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

params = {
    "follow_type": 1,
    "page_num": 1,
    "page_size": 20
}

response = requests.get(url, headers=headers, params=params)
print(response.json())

响应示例

{
  "total_count": 2,
  "total_page": 1,
  "page_num": 1,
  "page_size": 20,
  "items": [
    {
      "follow_id": "1001",
      "follow_type": 1,
      "follow_sub_type": 0,
      "follow_value": "00700",
      "name": "腾讯控股",
      "logo": "https://static.reportify.cn/logo/00700.png",
      "title": "",
      "followed_at": 1720000000000
    },
    {
      "follow_id": "2002",
      "follow_type": 2,
      "follow_sub_type": 0,
      "follow_value": "AI 芯片行业趋势",
      "name": "AI 芯片行业趋势",
      "logo": "",
      "title": "AI 芯片行业趋势",
      "followed_at": 1720000100000
    }
  ]
}

错误响应

状态码描述
422请求参数验证失败。

Authorizations

Authorization
string
header
required

Enter your Bearer token

Query Parameters

follow_type
integer

1 company, 2 topic, 3 channel

follow_sub_type
integer

1 institution, 2 media, 3 social

page_num
integer
default:1
page_size
integer
default:20

Response

Successful Response

Paginated list of followings

total_count
integer
default:0
total_page
integer
default:0
page_num
integer
default:1
page_size
integer
default:20
items
OAIFollowingItem · object[]