US company historical financial metrics
financialdatasets.financial-metricsGet valuation, profitability, liquidity, growth and per-share metrics across reporting periods
- 价格
- $0.02/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年9月15日实测可用
GEThttps://toolswitch.dev/v1/tools/financialdatasets.financial-metrics?limit=1&period=annual&ticker=AAPL预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
Supply ticker or cik unless continuing with cursor.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
cik | 字符串 | 可选 | SEC Central Index Key; supply ticker or cik | |
limit | 整数 | 可选 | 1 | |
cursor | 字符串 | 可选 | opaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them | |
period | 字符串 | 必填 | annual | quarterly | ttm | annual |
ticker | 字符串 | 可选 | US stock ticker; supply ticker or cik | AAPL |
filing_date | 字符串 | 可选 | exact filing date, YYYY-MM-DD | |
report_period | 字符串 | 可选 | exact report date, YYYY-MM-DD | |
filing_date_gt | 字符串 | 可选 | filing date after YYYY-MM-DD | |
filing_date_lt | 字符串 | 可选 | filing date before YYYY-MM-DD | |
filing_date_gte | 字符串 | 可选 | filing date on or after YYYY-MM-DD | |
filing_date_lte | 字符串 | 可选 | filing date on or before YYYY-MM-DD | |
report_period_gt | 字符串 | 可选 | report date after YYYY-MM-DD | |
report_period_lt | 字符串 | 可选 | report date before YYYY-MM-DD | |
report_period_gte | 字符串 | 可选 | report date on or after YYYY-MM-DD | |
report_period_lte | 字符串 | 可选 | report date on or before YYYY-MM-DD | |
- 查询参数
cik字符串可选SEC Central Index Key; supply ticker or cik
limit整数可选示例:
1cursor字符串可选opaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them
period字符串必填annual | quarterly | ttm
示例:
annualticker字符串可选US stock ticker; supply ticker or cik
示例:
AAPLfiling_date字符串可选exact filing date, YYYY-MM-DD
report_period字符串可选exact report date, YYYY-MM-DD
filing_date_gt字符串可选filing date after YYYY-MM-DD
filing_date_lt字符串可选filing date before YYYY-MM-DD
filing_date_gte字符串可选filing date on or after YYYY-MM-DD
filing_date_lte字符串可选filing date on or before YYYY-MM-DD
report_period_gt字符串可选report date after YYYY-MM-DD
report_period_lt字符串可选report date before YYYY-MM-DD
report_period_gte字符串可选report date on or after YYYY-MM-DD
report_period_lte字符串可选report date on or before YYYY-MM-DD
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/financialdatasets.financial-metrics?limit=1&period=annual&ticker=AAPL' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/financialdatasets.financial-metrics?limit=1&period=annual&ticker=AAPL",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/financialdatasets.financial-metrics?limit=1&period=annual&ticker=AAPL", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.02/success 计费,已含服务费。