roic-api-v2

A guide to using the legacy v2 REST API from roic.ai, a service that provides company financial data. It covers authentication, company identifiers, lookups, news, transcripts, and financial fundamentals.

In plain words
What is it for?
Use it to retrieve company profiles, news, logos, earnings-call transcripts, financial statements, ratios, and related data by ticker or other company identifiers.
Why use it?
It helps an agent send requests in the format this older API expects and avoid using newer v3 features that v2 does not support.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/roicai/agents-plugin/roic-api-v2
Any agent
npx skills add roicai/agents-plugin --skill roic-api-v2
Clone the repo
git clone --depth 1 https://github.com/roicai/agents-plugin

Made for: Claude Code, Codex.

Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,668 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00216 $0.01668
Opus 5 $0.00108 $0.00834
Sonnet 5 $0.00043 $0.00334
Haiku 4.5 $0.00022 $0.00167

Measured 2d ago against content hash 02d09ecc58a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

roic-api-v2 scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl "https://api.roic.ai/v2/fundamental/income-statement/AAPL?period=annual&limit=250&apikey=$ROIC_API_KEY"
plugin/skills/roic-api-v2/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

roic.ai v2 API

Building something new? Use v3 instead. v2 is the legacy public surface and is kept for existing integrations. v3 adds Authorization: Bearer auth, cursor pagination, and bulk "latest price for every ticker" routes that v2 has no equivalent for. Only stay on v2 when the caller is already on v2, or when they ask for v2 by name.

Basics

  • Base URL: https://api.roic.ai/v2
  • Auth: API key in the query string only?apikey=<key>. There is no bearer-token or header auth on v2. (?key= is accepted as a legacy alias; prefer apikey.) A missing or unknown key returns 401 on every route.
  • Responses: JSON. Success bodies are a bare array (or a bare object for single-row routes) — there is no {data, meta} envelope. Errors are {"error": "..."} with the status on the HTTP response.
  • Identifiers: every {identifier} path segment accepts a ticker symbol, CIK, CUSIP, or ISIN interchangeably — resolution is case-insensitive. You do not need a lookup call before requesting data for a known symbol.
  • Get a key / upgrade: https://roic.ai/pricing
curl "https://api.roic.ai/v2/fundamental/income-statement/AAPL?period=annual&limit=250&apikey=$ROIC_API_KEY"

Endpoint routing

You need… Route family Reference
Find or list tickers; dump an exchange /v2/tickers/... <references/endpoints.md>
Exchanges, sectors, industries, countries /v2/{exchanges,sectors,industries,countries}/list <references/endpoints.md>
Company profile, news, logo /v2/company/... <references/endpoints.md>
Earnings-call transcripts /v2/company/earnings-calls/... <references/endpoints.md>
Daily OHLCV prices, latest price, splits /v2/stock-prices/..., /v2/stock-splits <references/endpoints.md>
Statements, ratios, EV / multiples / per-share /v2/fundamental/... (11 routes) <references/fundamentals.md>
Plan limits, rate-limit state, 401/403/429 handling /v2/usage <references/plans-and-limits.md>
Minimising request count <references/budget-patterns.md>

Read the full file on GitHub · 115 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 115 lines · 216 tokens per session scan A 02d09ecc58a8

Subscribe to this mod's changes

roic-api-v2 is a skill published in the GitHub repository roicai/agents-plugin (2 stars, last pushed 26d ago), licensed MIT. It adds 216 tokens to every session and 1,668 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.