> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rushed.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Entity by Ticker

> Look up an entity by its stock ticker symbol

## Description

Returns the entity associated with a stock ticker symbol. Useful for quick lookups when you know the ticker (e.g., PETR4, VALE3, ITUB4).

## Headers

<ParamField header="X-API-Key" type="string" required>
  Your Rushed API key
</ParamField>

## Path Parameters

<ParamField path="ticker" type="string" required>
  Stock ticker symbol (e.g., `PETR4`, `VALE3`, `BBDC4`)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://worker.rushed.com.br/api/entities/by-ticker/PETR4" \
    -H "X-API-Key: rsh_live_xxxxxxxxxxxx"
  ```

  ```javascript Node.js theme={null}
  const res = await fetch(
    'https://worker.rushed.com.br/api/entities/by-ticker/PETR4',
    { headers: { 'X-API-Key': 'rsh_live_xxxxxxxxxxxx' } }
  );
  const { data } = await res.json();
  console.log(data.canonicalName); // "Petrobras"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 — Success theme={null}
  {
    "success": true,
    "data": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "entityType": "COMPANY",
      "canonicalName": "Petrobras",
      "aliases": ["Petroleo Brasileiro S.A.", "PETR"],
      "ticker": "PETR4",
      "cnpj": "33.000.167/0001-01",
      "createdAt": "2024-11-15T10:30:00Z"
    }
  }
  ```

  ```json 404 — Not Found theme={null}
  {
    "success": false,
    "error": "Not found",
    "statusCode": 404
  }
  ```
</ResponseExample>
