BANG BNG Public API
Use the public API to retrieve service status, privacy-safe aggregate statistics and supported market prices and BNG platform pricing. The initial release is read-only and requires no API key for GET requests.
Getting started
Send HTTPS GET requests to an endpoint below. Responses use JSON. No sign-in or API key is required for these public read-only endpoints.
For production integrations, cache responses where appropriate, use reasonable request intervals, and handle non-200 responses.
Available endpoints
Returns the service status response.
Alias for the status endpoint.
Returns aggregate visitor, active-session and connection counts. It does not return account IDs, email addresses or IP addresses.
Returns the current price information for one supported pair.
| Pair | Meaning |
|---|---|
| BNGUSDT | BNG / USDT price |
| BNGBNB | BNG / BNB price |
| BTCUSDT | BTC / USDT market data |
| BNBUSDT | BNB / USDT market data |
JavaScript example
Response fields and errors
Successful responses include apiVersion, ok and endpoint-specific fields. Market responses may include priceUsd, priceChange24h, volume24h, liquidityUsd, updatedAt, and market-provider metadata.
| HTTP status | Meaning |
|---|---|
| 200 | Request completed. |
| 400 | Unsupported query value. |
| 404 | Endpoint or verified market not found. |
| 405 | Method not allowed. This API is read-only. |
| 502 / 503 | Upstream market provider or service temporarily unavailable. |
Important data and security notes
- This public API is read-only. It cannot create transfers, withdraw funds, change balances, execute swaps, or manage accounts.
- Never place Firebase service-account credentials, private keys, passwords or administrator tokens in browser code.
- Do not treat platform account records as proof of public blockchain settlement.
- Use only the documented endpoints. Private wallet, user, mining-control and administrative endpoints are not part of this public API.
- Responses may be cached briefly. Consumers should tolerate temporary provider errors and missing optional fields.
OpenAPI specification
Import this machine-readable OpenAPI 3.1 document into Swagger UI, Postman or another compatible API client.