Using the API to fetch odds just got a lot more customisable and quicker with a new endpoint and solid improvements to our existing ones. First, we have pushed updates to /fixtures:
When using the /fixtures endpoints, you can now bring in the odds for multiple bookmakers and also filter on markets, making sure you get
just the data you're looking for. You can do this like so:
`/fixtures/upcoming&bookmakers=bet365,pinnacle&markets=ft_result&has_odds=true`
This will give you a response just like the one on the left in the attached image. In your code, you will need to access the odds via the bookmaker's label, but after that they are exactly the same as before.
For example, `odds.ft_result.home` in your code might now become `odds.bet365.ft_result.home`
A very simple but effective addition. And that's not all, you may have noticed that in the example URL above that I used slugs and not IDs. We now support slugs for both markets and bookmakers, making it easier to quickly test endpoints without having to find the correct IDs. You can find all the market slugs at `/odds/markets`
New Endpoint: Upcoming Feed for Odds
If you already have your fixtures saved, or don't need all the bloat that the /fixtures feed can provide, then we have a new odds feed. This feed shows upcoming games that have odds, and allows you to fetch from multiple bookmakers, adjust the dates, the odds types, and more.
Here's an example request, and you can see the response on the right of the attached image:
`/odds/upcoming?bookmakers=bet365,pinnacle,williamhill&markets=ft_result,btts`
Adding the market filters will result in you getting the odds you want much quicker, with fewer calls.
MORE:
https://oddalerts.com/football-data-api
DOCS:
https://documenter.getpostman.com/view/17615275/2s935uG1WF