The Graph API
Azuro uses multiple subgraphs to index and organize data from its smart contracts, hosted on The Graph service. This makes querying Azuro data efficient and intuitive.
Public endpoints cover various environments and blockchain networks both on the testnet (development (opens in a new tab) endpoints) and in production environments (production (opens in a new tab)). Note that the testing of live betting occurs in the pre-production (opens in a new tab) environment.
Important Links:
- Subgraph Endpoints and API reference can be found here (opens in a new tab).
- Don’t forget to optimize requests (opens in a new tab) and load game data faster in your frontend.
- There is also an option to enhance performance by creating your own Azuro subgraph (opens in a new tab) since we provide the source code (opens in a new tab) under the GNU GPL v2 license.
WebSocket API for Live
This API ensures real-time data streaming, critical for live betting applications. It's about keeping you updated the moment something happens.
Find out how to use it for live market updates here (opens in a new tab).
Freebet API
Freebets get a dedicated API (opens in a new tab) in Azuro where you can find the info about your distributed freebets.