Post-match News
Our Post-Match news offers Match recaps are AI written in collaboration with United Robots, a renowned AI news provider. The articles are based on match results, goals, injuries, and other important events. They are available instantly after the final whistle.
You can choose a two endpoints to retrieve the Post-match News.
An overview of all available options:
GET Post-Match News: returns all the Post-Match News articles available within your subscription.
GET Post-Match News by Season ID: returns the all the Post-Match news articles from your requested season id.
For all the Post-Match News endpoints the base URL is the same:
https://api.sportmonks.com/v3/football/news/post-match
Per endpoint the rest of the URL requires additional information. We will explain this per endpoint.
Requesting Post-Match News
GET Post-Match News
The first option is to request all the post-match articles available in your subscription. The URL to retrieve all these articles is the same as the base URL for post-match news. All you have to do is authorize the request with your API token. Check our authentication section for more info.
In the response, you will see the unique id of the article, the fixture its related to and the league its related to. Furthermore, you will see the title of the specific article and the type of the article, which is either "prematch"
or "postmatch"
.
GET Post-Match News by Season ID
The GET Post-Match News by Season ID is the most commonly used endpoint to return all the post-match articles from the requested season ID. So, how do you request all of this data yourself? We’re going to show you how!
This section will show you how to request articles for the Champions League season 2023/2024 (season id: 21638). You will need to add the season_id
parameters to your request.
https://api.sportmonks.com/v3/football/news/post-match/
seasons/{season_id}
This will result in the following request:
As you can see, the response is an will retrieve all the articles for that specific Champions League season.
Adding useful information
Now, you might have noticed that the API returns only the necessary information. But you will still need the actual, written article. Or if you’re interested in more details? You can use certain includes for this.
Let’s say you want the Post-Match articles of the Champions League 2023/2024 season, but this time with the actual written article and fixture information. As you’ve learnt earlier, your request is:
Now, you can add the lines
and fixture
includes for more info:
Filtering
Let’s continue with the another example. You've used the GET Post-Match News endpoint. You now have included the lines in the response, but you’re only interested in the articles for the Premier League (ID: 8). You can filter for that league via the filter option:
Last updated
Was this helpful?