CLI
Install
surf binary and sets up the default configuration under ~/.config/surf/.
Authenticate
No API key required to get started. Every IP gets 30 free credits per day — just install and start querying. For unlimited access, save your API key:Discover Commands
Common Examples
Command Conventions
| Pattern | Recommendation |
|---|---|
| Flags | Use kebab-case CLI flags such as --time-range and --token-address |
| Search | Use --q, not -q, for search parameters |
| Chains | Use canonical names such as ethereum, solana, base, and arbitrum |
| Discovery | Prefer surf <command> --help to inspect enums, defaults, and response fields |
| Structured output | Use -o json for scripts, tooling, and agent workflows |
What You Can Query
The CLI covers the same core domains exposed in the Surf Data API:- Market data and technical indicators
- Exchange data such as ticker, order book depth, funding history, and candlesticks
- Wallet balances, transfers, protocol positions, and net worth
- Social profiles, posts, followers, and mindshare
- Project profiles and DeFi metrics
- Token holders, transfers, DEX trades, and unlock schedules
- Prediction markets across Polymarket and Kalshi
- On-chain transaction lookups, structured query, SQL, and gas prices
- News, web fetch, and unified search