> ## Documentation Index
> Fetch the complete documentation index at: https://octo-98895abd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# REST quickstart

> Make an anonymous SILO API v2 request, check data coverage, and read your first closing price.

The examples use anonymous access.

## Retrieve a closing price

Resolve PETR4 to the listing you mean, check the quotes dataset's coverage, and use the resolved ticker for the price request.

```bash cURL theme={null}
SILO_V2="https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2"

curl -fsS --get "$SILO_V2/search/any" --data-urlencode "q=PETR4"
curl -fsS --get "$SILO_V2/coverage/freshness" --data-urlencode "dataset=quotes"
curl -fsS --get "$SILO_V2/prices/latest" --data-urlencode "ticker=PETR4"
```

```python Python theme={null}
import json
from urllib.parse import urlencode
from urllib.request import urlopen

base = "https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2"

for resource, params in (
    ("search/any", {"q": "PETR4"}),
    ("coverage/freshness", {"dataset": "quotes"}),
    ("prices/latest", {"ticker": "PETR4"}),
):
    with urlopen(f"{base}/{resource}?{urlencode(params)}", timeout=20) as response:
        print(json.load(response))
```

For pandas or Polars, use the [Python client](https://octo-98895abd.mintlify.site/api-docs/v2/python.md).

## Read the response

* Use `data[].trade_date` and `data[].close` for the observed date and raw closing price. Daily history can adjust for splits and excludes dividends.
* Compare the period you need with coverage's `data_through` and `complete_through`. Save the request URL; use `details=true` when you need the applied defaults and diagnostic metadata.
* Follow `next_page_url` for remaining pages. For paged POST requests, resend the original body unchanged. `meta.tier_cap_reached` marks a partial result even when no next page remains.
* An empty `data` array represents no matching rows. A `null` field represents a missing or inapplicable observation. For errors, branch on `error.code` and `error.reason`, then read `error.message`. Narrow an `over_limit` query (`reason: row_cap` or `tier_cap`), look an `unknown_id` (HTTP 404) up again with search, and honor `Retry-After` on HTTP 429.

## Authenticate and discover resources

If you received a 60-day integration key, use it as `Authorization: Bearer <integration key>`. Store it as a client secret. For an integration granted Pro, a successful data call reports `meta.tier: pro`. An expired or revoked key returns HTTP 401. Contact the issuer for rotation.

For signed-in access, use [SILO sign-in](https://silo-bz-deloslabs.vercel.app/signin.html) and configure the user access token as `Authorization: Bearer <access token>`. Keep it in a secret store. Verify `meta.tier` on a data call. `screens` and `portfolio` require signed-in access. Pro is granted separately.

Open the [operation directory](https://octo-98895abd.mintlify.site/api-docs/v2/endpoints.md) to try a request. Leave the Bearer field blank for anonymous calls, even if the playground labels the field as required. The live resource index is at the base URL. Append `?help=all` to a resource to see its accepted parameters and defaults. To use the same data from an agent, follow the [MCP setup](https://octo-98895abd.mintlify.site/api-docs/v2/mcp.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.