Matches Weather
This endpoint allows you to retrieve the weather from matches.
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 hour. Recommended Calls: Limit calls to 1 every hour.
Use Cases
Get weather based on the idhttps://cricket.sportdevs.com/matches-weather?id=eq.{id}
Query Parameters
- id integer
Default value:
eq.1
The id of the weather
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the weather
Note: This is a Primary Key.
- dt timestamp with time zone
The date of the weather
- temp numeric
The temperature of the weather
Kelvin
- feels_like numeric
The human perception of the weather
- pressure numeric
The pressure of the weather
- humidity numeric
The humidity of the weather in
%
- dew_point numeric
The minimum temperature of the weather
Kelvin
- uvi numeric
The maximum value of UV index for the day
- clouds numeric
The cloudiness of the weather in
%
- wind_speed numeric
The wind speed
Metre/Sec
- wind_deg numeric
The wind direction
Degrees
- wind_gust numeric
The wind gust
Metre/Sec
- weather_id integer
The random id of the weather
- weather_main text
The title of the weather
- weather_description text
The description of the weather
- weather_icon text
The name of the image
- pop numeric
The probability of precipitation in
%
[
{
"id": 1,
"dt": "2023-10-28T01:00:00+00:00",
"temp": 292.25,
"feels_like": 291.31,
"pressure": 1024,
"humidity": 42,
"dew_point": 278.68,
"uvi": 4.77,
"clouds": 100,
"wind_speed": 7.8,
"wind_deg": 359,
"wind_gust": 12.14,
"weather_id": 804,
"weather_main": "Clouds",
"weather_description": "overcast clouds",
"weather_icon": "04d",
"pop": 0
}
]