Google Weather

Use the Google Weather API to get current weather conditions for a given location

get
Query parameters
latitudeanyRequired

The latitude of the location.

Example: 37.422
longitudeanyRequired

The longitude of the location.

Example: -122.0841
unitsstring · enumOptional

The unit system to return results in

Example: metricPossible values:
Header parameters
Accept-LanguagestringOptional

The language to return the results in

Responses
chevron-right
200

Success

application/json
Responseany
get
/google-weather/v1/current

No content

Use the Google Weather API to forecast the weather daily for a given amount of days

get
Query parameters
latitudeanyRequired

The latitude of the location.

Example: 37.422
longitudeanyRequired

The longitude of the location.

Example: -122.0841
daysinteger · min: 1 · max: 10Required

The amount of days to return a forecast for.

Example: 3
unitsstring · enumOptional

The unit system to return results in

Example: metricPossible values:
pageSizeinteger · min: 1Optional

The amount of results to return per page

Example: 2
pageTokenstringOptional

If another page is available, this token signifies the start of the next page.

Header parameters
Accept-LanguagestringOptional

The language to return the results in

Responses
chevron-right
200

Success

application/json
Responseany
get
/google-weather/v1/forecast/days

No content

Use the Google Weather API to forecast the weather hourly for a given amount of hours

get
Query parameters
latitudeanyRequired

The latitude of the location.

Example: 37.422
longitudeanyRequired

The longitude of the location.

Example: -122.0841
hoursinteger · min: 1 · max: 240Required

The amount of hours to return a forecast for.

Example: 24
unitsstring · enumOptional

The unit system to return results in

Example: metricPossible values:
pageSizeinteger · min: 1Optional

The amount of results to return per page

Example: 12
pageTokenstringOptional

If another page is available, this token signifies the start of the next page.

Header parameters
Accept-LanguagestringOptional

The language to return the results in

Responses
chevron-right
200

Success

application/json
Responseany
get
/google-weather/v1/forecast/hours

No content

Use the Google Weather API to fetch hourly weather history for a given amount of hours

get
Query parameters
latitudeanyRequired

The latitude of the location.

Example: 37.422
longitudeanyRequired

The longitude of the location.

Example: -122.0841
hoursinteger · min: 1 · max: 240Required

The amount of hours to return historical weather for.

Example: 24
unitsstring · enumOptional

The unit system to return results in

Example: metricPossible values:
pageSizeinteger · min: 1Optional

The amount of results to return per page

Example: 12
pageTokenstringOptional

If another page is available, this token signifies the start of the next page.

Header parameters
Accept-LanguagestringOptional

The language to return the results in

Responses
chevron-right
200

Success

application/json
Responseany
get
/google-weather/v1/history/hours

No content

Last updated