[LangChain](https://www.langchain.com) is an open-source framework for building agents. The [`langchain-equibles`](https://github.com/equibles/equibles-integrations/tree/main/langchain-equibles) package turns 14 read-only Equibles REST endpoints into LangChain tools: search SEC filings and earnings call transcripts, read financial statements, daily prices, insider trades, 13F holders, short interest, company guidance and analyst estimates. Each tool calls the REST API with your key and hands the endpoint's JSON to the agent, so its answer can cite the filing or call a figure came from.

To reach the full catalog of over 100 tools instead, connect the agent to the [MCP server](/docs/mcp).

## 1. Install

```bash
pip install langchain-equibles
```

The package needs Python 3.10 or later. The agent below also needs LangChain and a model provider:

```bash
pip install langchain langchain-anthropic
```

## 2. Add your API key

Create an API key at [/dashboard/apikeys](/dashboard/apikeys) (it starts with `eq_` and is shown once) and export it:

```bash
export EQUIBLES_API_KEY=eq_your_api_key
```

The tools read `EQUIBLES_API_KEY`, or take the key as `api_key="eq_..."`.

## 3. Give the tools to an agent

`EquiblesToolkit` returns every tool, sharing one API client:

```python
from langchain.agents import create_agent
from langchain_equibles import EquiblesToolkit

tools = EquiblesToolkit().get_tools()
agent = create_agent("anthropic:claude-sonnet-5-5", tools=tools)

result = agent.invoke(
    {"messages": [{"role": "user", "content": "Who are NVIDIA's largest institutional holders, and as of which 13F report date?"}]}
)
print(result["messages"][-1].content)
```

To give the agent only some tools, pick them by name with `get_tool`:

```python
from langchain_equibles import get_tool

tools = [get_tool("search_company_filings"), get_tool("read_filing_lines")]
```

## 4. Call a tool without a model

A tool runs on its own, which shows what the agent will see. This uses one request from your daily allowance and no model tokens:

```python
from langchain_equibles import get_tool

holders = get_tool("get_institutional_holders")
print(holders.invoke({"ticker": "NVDA", "limit": 3}))
```

The answer is the endpoint's JSON as one string, formatted here and trimmed to two holders. `percentOfTotal` is a percentage of the shares all 13F filers report:

```json
{
  "data": [
    {
      "name": "BlackRock, Inc.",
      "cik": "2012383",
      "shares": 1940885915,
      "value": 443259525254,
      "percentOfTotal": 10.971424013488857,
      "listedTicker": null,
      "positionType": "Common",
      "holderType": "Holding company",
      "style": "Index-like"
    },
    {
      "name": "VANGUARD CAPITAL MANAGEMENT LLC",
      "cik": "2100119",
      "shares": 1540600742,
      "value": 351842397457,
      "percentOfTotal": 8.708695264027174,
      "listedTicker": null,
      "positionType": "Common",
      "holderType": "Registered adviser",
      "style": "Index-like"
    }
  ],
  "meta": {
    "reportDate": "2026-09-30",
    "isCombinedQuarter": true,
    "totalInstitutions": 6145,
    "totalShares": 17690373762,
    "totalValue": 3920892775489,
    "styleReportDate": "2026-06-30",
    "limit": 3,
    "offset": 0,
    "count": 3,
    "hasMore": true
  }
}
```

## Tools

Each tool wraps one endpoint; its parameters are the endpoint's, and the linked reference documents its response.

| Tool | Endpoint |
|---|---|
| `search_listings` | [Listings](/docs/api/endpoints/listings#listings) |
| `get_stock_profile` | [Stock profile](/docs/api/endpoints/listings#stock-profile) |
| `get_stock_prices` | [Daily prices](/docs/api/endpoints/prices#daily-prices) |
| `get_financial_statement` | [Financial statements](/docs/api/endpoints/fundamentals#financial-statements) |
| `search_company_filings` | [Search a company's filings](/docs/api/endpoints/filings#search-a-companys-filings) |
| `search_all_filings` | [Search all filings](/docs/api/endpoints/filings#search-all-filings) |
| `read_filing_lines` | [Read filing lines](/docs/api/endpoints/filings#read-filing-lines) |
| `list_investor_events` | [Investor events](/docs/api/endpoints/earnings#investor-events) |
| `get_earnings_call_transcript` | [Earnings call transcript](/docs/api/endpoints/earnings#earnings-call-transcript) |
| `get_insider_transactions` | [Insider transactions](/docs/api/endpoints/insider#insider-transactions) |
| `get_institutional_holders` | [Institutional holders](/docs/api/endpoints/holdings#institutional-holders) |
| `get_short_interest` | [Short interest](/docs/api/endpoints/short#short-interest) |
| `get_guidance` | [Guidance](/docs/api/endpoints/fundamentals#guidance) |
| `get_analyst_estimates` | [Analyst estimates](/docs/api/endpoints/analyst-estimates#analyst-estimates) |

A US stock takes its bare ticker (`AAPL`, `BRK-B`); a listing on another exchange takes `MIC:TICKER` (`XETR:SIE`), which `search_listings` returns. All 14 tools work on the Free plan, within its daily request limit ([Plans & limits](/docs/rate-limits)).

## Errors

An API error, such as an unknown ticker or a spent daily limit, comes back as the tool's answer text, so the agent can read the message and correct its call. To raise a `ToolException` instead, set `handle_tool_error = False` on the tool. The [error reference](/docs/api/errors) lists the codes.

The package is open source under the MIT license; report problems on [GitHub](https://github.com/equibles/equibles-integrations/issues).