Skip to main content

Matches Graphs

This endpoint allows you to retrieve the graphs from matches. If the value field is a bigger number (> 0) that means that the home team had a big pressure that minute. And if the value field is a lower number (< 0) than it means that away team had a bigger pressure that minute. The matches-graph's id is placed in matches endpoint if it has the graph_id field.

Multi-language: This feature allows the user to manually change the language of the API response by adding value to the lang attribute. Example: lang=en.

Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.

Update Period: The endpoint is updated every 10 seconds during a live match.
Recommended Calls: Limit calls to 1 per 10 seconds during a live match.

Use Cases

Get graph based on the id
https://football.sportdevs.com/matches-graphs?id=eq.{id}

Query Parameters
  • id integer

    Default value: eq.1

    The id of the graph

  • offset string

    Default value: 0

    Limiting and Pagination

  • limit string

    Default value: 50

    Limiting and Pagination

  • lang string

    Default value: en

    Multi-language

Responses

OK


Schema array
  • id integer

    The id of the graph

    Note: This is a Primary Key.

  • period_time integer

    The time period of the graph

  • period_count integer

    The periods of the graph

  • points jsonb

    The points of the graph

Loading...