API keys: use Value Investor from your own code
Make a key, send it as a header, and call the same lookups from a script, a spreadsheet or any tool that takes a key.
What a key is
A key is a long password for programs. Anything that sends your key can read Value Investor data as you, within your plan's limits. Keep it private, like a password.
You do not need a key for Claude or ChatGPT. They sign you in through the browser instead.
Make a key
- Sign in and open Settings, then API keys.
- Type a name that says where you will use it, such as Laptop, and choose Create key.
- Copy the key straight away. We show it once and cannot show it again.
You can hold up to 5 keys. Make one for each place you use it, so you can revoke one without breaking the others.
Send it with every request
Authorization: Bearer YOUR_KEY
This line is called a header. Every request must carry it. Replace YOUR_KEY with your key.
The plain web address
https://value-investor.io/api/v1 curl -H "Authorization: Bearer YOUR_KEY" "https://value-investor.io/api/v1/get_stock?ticker=AAPL" curl -H "Authorization: Bearer YOUR_KEY" "https://value-investor.io/api/v1/find_undervalued_stocks?sector[]=energy&low_debt=true"
Each lookup has its own address. Reading uses GET. The one lookup that spends a credit, ordering a deep dive, uses POST.
Open the first address below in a browser to see every lookup, what it takes, and what your plan allows. It needs no key.
For tools that speak MCP
https://value-investor.io/api/mcp
MCP, the Model Context Protocol, is the standard way AI tools plug into outside data. If your tool lets you add an MCP server with a header, use this address and the header above.
What comes back
- Answers are JSON, a format every programming language reads.
- Each answer has source_url, the page on Value Investor it came from, and as_of, the date of the data where it has one.
- Each answer has calls_left_today.
- At your daily limit you still get a normal answer, with limit_reached set to true and the time the limit resets.
When a request fails
- 401: the key is missing, mistyped or revoked.
- 403: you used a key on a page that is not part of the API. Keys only work on the addresses above.
- 404: there is no lookup with that name.
- 405: you used GET on the lookup that needs POST.
- 422: something in the request is missing or wrong. The answer says what.
- 429: too many requests in a minute. Wait and try again.