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>"
}
]
}账号关注
List Followings
List all followings (companies/topics/channels) unified + paginated; filter by follow_type/follow_sub_type.
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_type | int | 否 | 关注类型:1 公司,2 话题,3 渠道。 |
| follow_sub_type | int | 否 | 关注子类型:1 机构,2 媒体,3 社交。 |
| page_num | int | 否 | 页码,从 1 开始,默认 1。 |
| page_size | int | 否 | 每页数量,默认 20。 |
响应参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| total_count | int | 关注总数。 |
| total_page | int | 总页数。 |
| page_num | int | 当前页码。 |
| page_size | int | 每页数量。 |
| items | array | 关注列表。 |
| follow_id | str | 关注 ID。 |
| follow_type | int | 关注类型:1 公司,2 话题,3 渠道。 |
| follow_sub_type | int | 关注子类型:1 机构,2 媒体,3 社交。 |
| follow_value | str | 关注对象的取值(如股票代码、话题内容等)。 |
| name | str | 名称。 |
| logo | str | 图标 URL。 |
| title | str | 标题。 |
| followed_at | int | 关注时间戳(毫秒)。 |
请求示例
cURLcurl -X GET "https://api.reportify.cn/v1/followings?follow_type=1&page_num=1&page_size=20" \
-H "Authorization: Bearer YOUR_API_KEY"
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
Enter your Bearer token
Query Parameters
1 company, 2 topic, 3 channel
1 institution, 2 media, 3 social
