Skip to main content
Connect to Dune using Trino SDKs in your preferred language. Dune supports any Trino, Presto, or Starburst-compatible client library.

Code Examples

# Install: brew install trino
trino --server https://trino.api.dune.com:443 \
  --user dune --password \
  --catalog delta_prod \
  --schema runtime \
  --execute "SELECT count(*) FROM base.transactions WHERE block_time > now() - interval '1' day"
Besides the code samples shown above, Trino supports a variety of other official and unofficial SDKs. Please check the official Trino SDKs page to see which ones are available and to view their GitHub repositories for updated code samples and documentation.

Connection Parameters

For all SDK integrations, use the following connection parameters:
ParameterValue
Hosttrino.api.dune.com
Port443
Usernamedune
PasswordYour Dune API key
Catalogdelta_prod
HTTP schemehttps
See the Overview for complete connection details.