Query Docs By Symbols
curl --request POST \
--url https://api.reportify.cn/v1/docs/symbols \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbols": [
"<string>"
],
"page_num": 1,
"page_size": 10,
"categories": [
"financials",
"transcripts",
"reports",
"news",
"filings",
"socials"
],
"markets": [],
"start_date": "<string>",
"end_date": "<string>"
}
'import requests
url = "https://api.reportify.cn/v1/docs/symbols"
payload = {
"symbols": ["<string>"],
"page_num": 1,
"page_size": 10,
"categories": ["financials", "transcripts", "reports", "news", "filings", "socials"],
"markets": [],
"start_date": "<string>",
"end_date": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbols: ['<string>'],
page_num: 1,
page_size: 10,
categories: ['financials', 'transcripts', 'reports', 'news', 'filings', 'socials'],
markets: [],
start_date: '<string>',
end_date: '<string>'
})
};
fetch('https://api.reportify.cn/v1/docs/symbols', 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/docs/symbols",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbols' => [
'<string>'
],
'page_num' => 1,
'page_size' => 10,
'categories' => [
'financials',
'transcripts',
'reports',
'news',
'filings',
'socials'
],
'markets' => [
],
'start_date' => '<string>',
'end_date' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reportify.cn/v1/docs/symbols"
payload := strings.NewReader("{\n \"symbols\": [\n \"<string>\"\n ],\n \"page_num\": 1,\n \"page_size\": 10,\n \"categories\": [\n \"financials\",\n \"transcripts\",\n \"reports\",\n \"news\",\n \"filings\",\n \"socials\"\n ],\n \"markets\": [],\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reportify.cn/v1/docs/symbols")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbols\": [\n \"<string>\"\n ],\n \"page_num\": 1,\n \"page_size\": 10,\n \"categories\": [\n \"financials\",\n \"transcripts\",\n \"reports\",\n \"news\",\n \"filings\",\n \"socials\"\n ],\n \"markets\": [],\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reportify.cn/v1/docs/symbols")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbols\": [\n \"<string>\"\n ],\n \"page_num\": 1,\n \"page_size\": 10,\n \"categories\": [\n \"financials\",\n \"transcripts\",\n \"reports\",\n \"news\",\n \"filings\",\n \"socials\"\n ],\n \"markets\": [],\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"total_count": 0,
"total_page": 0,
"page_num": 1,
"page_size": 10,
"docs": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}文档列表和内容
Docs by Symbols
Retrieve docs for the specified symbols
POST
/
v1
/
docs
/
symbols
Query Docs By Symbols
curl --request POST \
--url https://api.reportify.cn/v1/docs/symbols \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbols": [
"<string>"
],
"page_num": 1,
"page_size": 10,
"categories": [
"financials",
"transcripts",
"reports",
"news",
"filings",
"socials"
],
"markets": [],
"start_date": "<string>",
"end_date": "<string>"
}
'import requests
url = "https://api.reportify.cn/v1/docs/symbols"
payload = {
"symbols": ["<string>"],
"page_num": 1,
"page_size": 10,
"categories": ["financials", "transcripts", "reports", "news", "filings", "socials"],
"markets": [],
"start_date": "<string>",
"end_date": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbols: ['<string>'],
page_num: 1,
page_size: 10,
categories: ['financials', 'transcripts', 'reports', 'news', 'filings', 'socials'],
markets: [],
start_date: '<string>',
end_date: '<string>'
})
};
fetch('https://api.reportify.cn/v1/docs/symbols', 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/docs/symbols",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbols' => [
'<string>'
],
'page_num' => 1,
'page_size' => 10,
'categories' => [
'financials',
'transcripts',
'reports',
'news',
'filings',
'socials'
],
'markets' => [
],
'start_date' => '<string>',
'end_date' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reportify.cn/v1/docs/symbols"
payload := strings.NewReader("{\n \"symbols\": [\n \"<string>\"\n ],\n \"page_num\": 1,\n \"page_size\": 10,\n \"categories\": [\n \"financials\",\n \"transcripts\",\n \"reports\",\n \"news\",\n \"filings\",\n \"socials\"\n ],\n \"markets\": [],\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reportify.cn/v1/docs/symbols")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbols\": [\n \"<string>\"\n ],\n \"page_num\": 1,\n \"page_size\": 10,\n \"categories\": [\n \"financials\",\n \"transcripts\",\n \"reports\",\n \"news\",\n \"filings\",\n \"socials\"\n ],\n \"markets\": [],\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reportify.cn/v1/docs/symbols")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbols\": [\n \"<string>\"\n ],\n \"page_num\": 1,\n \"page_size\": 10,\n \"categories\": [\n \"financials\",\n \"transcripts\",\n \"reports\",\n \"news\",\n \"filings\",\n \"socials\"\n ],\n \"markets\": [],\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"total_count": 0,
"total_page": 0,
"page_num": 1,
"page_size": 10,
"docs": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}根据股票代码获取文档
URL:/v1/docs/symbols方法:
POST描述: 根据指定股票代码(symbol)获取相关文档。
请求参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| categories | array | 文档类别,可选值有 financials,transcripts,reports(国内研报),global_research(外资研报),filings,news, socials。 |
| language | str | 搜索语言,支持值为 all,chinese,english。暂未支持 |
| symbols | array | 股票代码数组,例如 ["AAPL", "TSLA"]。 |
| page_num | int | 当前页码,默认值为 1。 |
| page_size | int | 每页条目数,默认值为 10。 |
| start_date | str | 开始日期,格式为 YYYY-MM-DD。 |
| end_date | str | 结束日期,格式为 YYYY-MM-DD。 |
响应参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| page_num | int | 当前页码。 |
| page_size | int | 每页条目数。 |
| total_page | int | 总页数。 |
| total_count | int | 总条目数。 |
| docs | array | 文档数组,每个文档包含以下字段: |
| id | str | 文档唯一 ID。 |
| title | str | 文档标题。 |
| url | str | 文档网页链接。 |
| institution | str | 发布机构。 |
| author | str | 作者。 |
| published_at | str | 发布时间,格式为 YYYY-MM-DDTHH:MM:SS.000Z。 |
| category | str | 文档类别(financials, transcripts, reports, global_research, filings, news, socials)。 |
| market | str | 市场区域(cn, hk, us)。 |
| symbol | str | 股票代码。 |
| company_name | str | 公司名称。 |
| logo | str | 公司 Logo 链接。 |
| summary | str | 文档摘要。暂未支持 |
| tags | dict | 标签数组。 |
| key | str | 标签类型(如 industry, company, person, event)。 |
| value | array | 标签内容数组。 |
| metadatas | dict | 元数据数组,包含以下字段: |
| key | str | 元数据类型(如 periods, entities)。 |
| value | array | 元数据内容数组。 |
请求示例
cURLcurl -X POST "https://api.reportify.cn/v1/docs/symbols" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"symbols": ["AAPL", "TSLA"],
"categories": ["financials", "transcripts"],
"start_date": "2024-01-01",
"end_date": "2024-12-31",
"page_num": 1,
"page_size": 10
}'
import requests
url = "https://api.reportify.cn/v1/docs/symbols"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"symbols": ["AAPL", "TSLA"],
"categories": ["financials", "transcripts"],
"start_date": "2024-01-01",
"end_date": "2024-12-31",
"page_num": 1,
"page_size": 10
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
响应示例
{
"page_num": 1,
"page_size": 10,
"total_page": 5,
"total_count": 50,
"docs": [
{
"id": "1046895208953942016",
"title": "Apple Q4 Earnings Report",
"url": "https://reportify.cn/financials/1046895208953942016",
"file_url": "https://files.reportify.cn/media/production/TSLA5a08ddfbb97bd6486fff7a3875e7fe28_20241024183012.pdf",
"media_url": "https://files.reportify.cn/media/production/s_4728833_9e25b61b62960211e6040eb2b81b352c.mp3",
"institution": "Morgan Stanley",
"author": "Jane Doe",
"published_at": "2023-12-31T00:00:00.000Z",
"category": "reports",
"type": "research_report_company",
"market": "us",
"symbol": "AAPL",
"company_name": "Apple Inc.",
"logo": "https://files.reportify.cn/logo/AAPL.svg",
"summary": "This report covers Apple's earnings in Q4 2023...",
"tags": {
"key": "industry",
"value": ["AI", "Chips"]
},
"metadatas": {
"key": "periods",
"value": ["Q4 2023"]
}
}
]
}
Authorizations
Enter your Bearer token
Body
application/json
An enumeration.
Available options:
financials, transcripts, reports, news, files, filings, socials, global_research An enumeration.
Available options:
cn, hk, us ⌘I
