Primeiros passos
Início rápido
Esta referência está em inglês. A navegação e os rótulos estão traduzidos.
Three steps from a new key to your first query. You need a paid Yield Sniper account.
1. Create a key
- Open Settings → API & MCP and choose Create key.
- Name it after where it will run, for example
Research notebook, and keep thereadscope. - Copy the secret. It is shown once; we only store a hash of it.
Keep the secret in an environment variable or a secret manager, never in code you commit or ship to a browser. The samples on these pages read it from YS_API_KEY.
2. Make a request
Send the key as a Bearer token. GET /screens/latest returns the most recent daily screen: how many instruments were screened, how many passed, and why the rest failed.
Check as_of: it is the time of the screen, not of your request. The data changes once a day, so you can cache responses until the next screen.
3. Run a query
GET /instruments takes a query in the query language. This one asks for passing stablecoin instruments in the low risk band paying at least 6.5%, highest yield first:
yield.total_apy >= 6.5 and safety.band = low and asset_class = stablecoin and screen.verdict = pass sort yield.total_apy desc
fieldstrims each row to the paths you list.id,objectandas_ofare always included.totalis the number of matches;has_moreandnext_cursorpage through them.queryechoes the structured query that ran, useful to check how the text was parsed.
Page through results
Pass next_cursor back as cursor with the same query until has_more is false. Cursors are opaque; don't build them yourself.
id in (ins_4c29f40abec73e1b, ins_0abd5ec576be07e6).Go further
- Connect an AI assistant to the same data over MCP.
- The Instrument object: every field, with its unit.
- Errors and rate limits.