AI-powered US stock research API covering 5,700+ stocks. Ask in natural language, get structured financial data.
How to use
Use the web_fetch tool to query the InvestLog API. The system automatically detects the stock ticker and selects the right data to return.
Basic query
CODEBLOCK0
Query with specific skill and symbol
For more precise results, specify the skill name and ticker:
CODEBLOCK1
Compound analysis (multiple calls)
For comprehensive stock analysis, make multiple calls to combine different data:
CODEBLOCK2
Combine the results from multiple calls to provide a thorough analysis.
Steps
- 1. Map user input to query parameters (URL-encode spaces as +)
- Call the API endpoint using web_fetch
- Extract data from the
results array in the response - Reply in user's language (Chinese or English)
Response format
CODEBLOCK3
Parameters
| Parameter | Required | Description |
|---|
| INLINECODE2 | Yes | Natural language question about US stocks |
| INLINECODE3 |
No | Skill name for direct routing (see list below). If omitted, auto-detected from query |
|
symbol | No | US stock ticker (e.g. NVDA, AAPL). If omitted, extracted from query automatically |
Available skills
| Skill | What it returns |
|---|
| INLINECODE5 | Real-time price, daily change, multi-period returns (1D/1M/1Y/5Y) |
| INLINECODE6 |
PE, PB, PS, PEG, ROE, margins, FCF yield, DCF intrinsic value |
|
financials | Income statement, balance sheet, cash flow, growth rates, earnings history |
|
analyst-view | Analyst ratings, rating trends, price targets, EPS/revenue estimates |
|
company-profile | Business description, sector, executives, compensation, revenue segmentation |
|
insider-activity | Insider buy/sell transactions, quarterly insider trading statistics |
|
congress-trades | US Senate and House stock trading records |
|
fund-exposure | Institutional 13F holdings, ETF exposure, ETF holdings |
|
financial-health | Altman Z-Score, Piotroski F-Score, composite financial rating |
|
dividends-splits | Dividend history, stock splits, shares float |
|
news | Latest stock-specific news articles |
|
market-overview | Top gainers/losers/most active, IPO calendar, index constituents (no symbol required) |
|
technicals | RSI, MACD, SMA, EMA, Bollinger, KDJ, ATR, OBV, CCI, crossover signals |
Security
- - Network: GET requests to https://api.investlog.ai only
- No files read or written on your machine
- No system commands executed
- API key is optional (first 10 queries free, no key needed)
Setup
- - Free trial: No setup needed. First 10 queries are free — just start asking.
- API key: After free trial, register at https://api.investlog.ai to get your API key and pass it as a query parameter: INLINECODE18
- Plans: Basic ($9.9/mo, 100 queries/day) | Pro ($19.9/mo, 300 queries/day)
Output guidelines
- - Present data in a clear, readable format
- For list data (holdings, transactions), use tables when possible
- Highlight key metrics and trends
- Include the stock ticker with every data point
Chinese language support
Supports Chinese natural language queries:
- - "巴菲特前十大持仓股票是哪几个?"
- "英伟达的分析师评级是怎么样的?"
- "哪个参议员买了PLTR?"
技能名称: investlog-ai
详细描述:
AI驱动的美股研究API,覆盖5700+只股票。用自然语言提问,获取结构化金融数据。
使用方法
使用 web_fetch 工具查询InvestLog API。系统会自动检测股票代码并选择合适的数据返回。
基础查询
web_fetch url=https://api.investlog.ai/api/v1/query?query=Is+NVDA+overvalued extractMode=text
指定技能和代码查询
如需更精确的结果,请指定技能名称和股票代码:
web_fetch url=https://api.investlog.ai/api/v1/query?query=AAPL+earnings&skill=financials&symbol=AAPL extractMode=text
综合分析(多次调用)
如需全面的股票分析,可多次调用以组合不同数据:
1. 获取当前价格和估值
web_fetch url=https://api.investlog.ai/api/v1/query?query=NVDA+valuation&skill=valuation&symbol=NVDA extractMode=text
2. 获取分析师评级和目标价
web_fetch url=https://api.investlog.ai/api/v1/query?query=NVDA+analyst+ratings&skill=analyst-view&symbol=NVDA extractMode=text
3. 获取近期财报表现
web_fetch url=https://api.investlog.ai/api/v1/query?query=NVDA+earnings+history&skill=financials&symbol=NVDA extractMode=text
将多次调用的结果合并,以提供全面的分析。
步骤
- 1. 将用户输入映射为查询参数(URL编码,空格替换为+)
- 使用web_fetch调用API端点
- 从响应的 results 数组中提取数据
- 使用用户语言回复(中文或英文)
响应格式
json
{
data: {
skill: valuation,
symbol: NVDA,
results: [
{tool: getstockquote, symbol: NVDA, data: {price: 172.7, change_percent: -3.28}},
{tool: getfinancialratios, symbol: NVDA, data: {pe: 34.96, peg: 0.54}}
]
},
usage: {queries_remaining: 9}
}
参数
| 参数 | 必填 | 描述 |
|---|
| query | 是 | 关于美股的自然语言问题 |
| skill |
否 | 直接路由的技能名称(见下方列表)。如省略,则从查询中自动检测 |
| symbol | 否 | 美股股票代码(如NVDA、AAPL)。如省略,则从查询中自动提取 |
可用技能
| 技能 | 返回内容 |
|---|
| stock-quote | 实时价格、日涨跌幅、多周期收益率(1日/1月/1年/5年) |
| valuation |
市盈率、市净率、市销率、PEG、ROE、利润率、自由现金流收益率、DCF内在价值 |
| financials | 利润表、资产负债表、现金流量表、增长率、历史财报 |
| analyst-view | 分析师评级、评级趋势、目标价、每股收益/营收预估 |
| company-profile | 业务描述、行业、高管、薪酬、收入细分 |
| insider-activity | 内部人买卖交易、季度内部人交易统计 |
| congress-trades | 美国参众两院股票交易记录 |
| fund-exposure | 机构13F持仓、ETF持仓、ETF成分股 |
| financial-health | Altman Z-Score、Piotroski F-Score、综合财务评级 |
| dividends-splits | 股息历史、股票拆分、流通股数 |
| news | 最新个股相关新闻文章 |
| market-overview | 涨幅榜/跌幅榜/最活跃股、IPO日历、指数成分股(无需股票代码) |
| technicals | RSI、MACD、SMA、EMA、布林带、KDJ、ATR、OBV、CCI、交叉信号 |
安全性
- - 网络:仅向 https://api.investlog.ai 发送GET请求
- 不读取或写入您机器上的任何文件
- 不执行任何系统命令
- API密钥为可选(前10次查询免费,无需密钥)
设置
- - 免费试用:无需设置。前10次查询免费——直接提问即可。
- API密钥:免费试用后,请访问 https://api.investlog.ai 注册获取API密钥,并将其作为查询参数传递:&apikey=ilyour_key
- 套餐:基础版($9.9/月,100次查询/天)| 专业版($19.9/月,300次查询/天)
输出指南
- - 以清晰、易读的格式呈现数据
- 对于列表数据(持仓、交易),尽量使用表格
- 突出关键指标和趋势
- 每个数据点都包含股票代码
中文支持
支持中文自然语言查询:
- - 巴菲特前十大持仓股票是哪几个?
- 英伟达的分析师评级是怎么样的?
- 哪个参议员买了PLTR?