Sports Filtering
Price-Based Filtering
Smart Search supports price-based filtering to refine sports searches based on specific price criteria. These filters can be applied directly within the query parameter, enhancing the search experience.
Available Filters:
Any valid search term, e.g., “football”, “liverpool”, “premier league” can be combined with the following filters (represented as {search} placeholder):
- "{search} favourites": Returns the lowest price selection for each market.
- "{search} odds on": Returns selections with a decimal price < 2.
- "{search} odds against": Returns selections with a decimal price > 2.
- "{search} evens": Returns selections with a decimal price equal to 2.
- "{search} pr:1.5-3.5": Returns selections with a decimal price > 1.5 and < 3.5. Use the keyword "pr:" with prices in a range, separated by "-".
Time-Based Filtering
Smart Search also allows filtering based on event times, improving the search precision for time-specific queries. Time-based filters can be added to the query parameter to refine search results based on when events are happening.
Available Filters:
Any valid search term, e.g., “football”, “liverpool”, “premier league” can be combined with the following filters (represented as {search} placeholder):
- "{search} today": Returns events happening today.
- "{search} tomorrow": Returns events happening tomorrow.
- "{search} live": Returns events that are currently live or have started.
- "{search} at 3pm" / "football at 15:00": Returns events starting at 3pm.
- "{search} around 3pm": Returns events between 2pm and 4pm.
- "{search} tr:19:00-20:00" / "football tr:7am-8pm": Returns events between a specified time range.
Usage
These filters can be used to refine search results based on price or time criteria. You can integrate them into your front-end search interface (e.g., sliders or dropdowns), or they can be generated dynamically via GPT responses.
To apply these filters, include them directly in the query parameter of the search API request.
Example query with filters:
{
"context": {
"product": "Sports",
"category": "Football",
"page": {
"url": "sports.graphytesports.com",
"title": "Football Home"
},
"channel": "Mobile"
},
"query": "football favourites pr:1.5-3.5",
"userId": "12345",
"type": "search"
}
Updated 20 days ago