# Tendata API on SandBase

> Tendata data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/tendata

- Endpoints: 12
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [Tendata Customs Trade by Destination Country](https://www.sandbase.ai/apis/tendata/trade/destination-countries.md): From $0.016 per call
  Break down the customs records that match a trade query by destination country, with weight, USD value and shipment count for each country.
- [Tendata Customs Trade by HS Code](https://www.sandbase.ai/apis/tendata/trade/hs-codes.md): From $0.016 per call
  Break down the customs records that match a trade query by HS code, with weight, USD value and shipment count for each code.
- [Tendata Customs Trade by Origin Country](https://www.sandbase.ai/apis/tendata/trade/origin-countries.md): From $0.016 per call
  Break down the customs records that match a trade query by country of origin, with weight, USD value and shipment count for each country.
- [Tendata Customs Trade Exporter Names](https://www.sandbase.ai/apis/tendata/trade/exporter-names.md): From $0.0016 per call
  List the names of exporters that match a customs trade query, without aggregates, as a low-cost way to build a supplier list.
- [Tendata Customs Trade Exporters](https://www.sandbase.ai/apis/tendata/trade/exporters.md): From $0.019 per call
  Rank exporters that match a customs trade query (HS code, product, countries, ports, date window), with aggregated weight, USD value and shipment count per exporter.
- [Tendata Customs Trade Exporters Summary](https://www.sandbase.ai/apis/tendata/trade/exporters-summary.md): From $0.064 per call
  Get one aggregate summary of the exporters that match a customs trade query: exporter count, total weight, USD value and shipments.
- [Tendata Customs Trade Importer Names](https://www.sandbase.ai/apis/tendata/trade/importer-names.md): From $0.0016 per call
  List the names of importers that match a customs trade query, without aggregates, as a low-cost way to build a prospect list.
- [Tendata Customs Trade Importers](https://www.sandbase.ai/apis/tendata/trade/importers.md): From $0.019 per call
  Rank importers that match a customs trade query (HS code, product, countries, ports, date window), with aggregated weight, USD value and shipment count per importer.
- [Tendata Customs Trade Importers Summary](https://www.sandbase.ai/apis/tendata/trade/importers-summary.md): From $0.064 per call
  Get one aggregate summary of the importers that match a customs trade query: importer count, total weight, USD value and shipments.
- [Tendata Customs Trade Record Count](https://www.sandbase.ai/apis/tendata/trade/record-count.md): From $0 per call
  Count the customs records that match a trade query before paying for rows, to check that filters are narrow enough.
- [Tendata Customs Trade Volume Trend](https://www.sandbase.ai/apis/tendata/trade/volume-trend.md): From $0.019 per call
  Get the weight, USD value and shipment count of the customs records that match a trade query for each month or year in the date window.
- [Tendata Trade Company Search](https://www.sandbase.ai/apis/tendata/company/search.md): From $0 per call
  Fuzzy-match a company name to trade company IDs, optionally filtered by ISO3 country code, for use in other customs trade queries.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
