get
https://api-ss-sandbox.betprophet.co/partner/affiliate/get_markets
Retrieve a list of markets for a specified event with filtering options.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
List Markets
This endpoint retrieves a list of markets for a specified event. It supports filtering by market types and minimum liquidity.
Endpoint
GET /affiliate/get_markets
Description
Fetches a list of available markets for a given event. This endpoint is useful for obtaining market data such as moneyline, spread, and total markets.
Parameters
- event_id (integer, required): The unique identifier for the event.
- get_all_market (boolean, optional): If true, retrieves all markets.
- market_types (array of strings, optional): Comma-separated list of market types to filter by. Available values are
moneyline,spread,total. Example:moneyline,total. - min_liquidity (number, optional): Filters markets by minimum liquidity.
Responses
- 200 OK: Returns a JSON object containing the list of markets.
- 400 Bad Request: Indicates a problem with the request parameters.
- 500 Internal Server Error: Indicates a server-side error.
Security
- Token: Required for authentication.
Example Request
GET /affiliate/get_markets?event_id=123&market_types=moneyline,spread&min_liquidity=100
Authorization: Bearer YOUR_TOKENExample Response
{
"event_id": 123,
"markets": [
{
"id": 1,
"name": "Moneyline",
"type": "moneyline",
"selections": [...]
},
...
]
}