This service cleverly transforms weather web pages into a usable (and free!) rest API. It uses accuweather and/or foreca under the hood. source code
Define a weather provider to start using the API.
Parameter | Type | Required | Description |
---|---|---|---|
provider | accuweather, foreca | required | Choose the weather provider. By default returns all available data, see "data". |
geo | any | optional | Geo returns a list of found locations. |
query | string | optional | Matches a location based on your query. Best to use as "City,CountryCode". Adding "query" overrides "lat" & "lon" parameters. |
lat | string | optional | Location latitude. |
lon | string | optional | Location longitude. |
lang | string | optional |
English by default. Some languages are only available on accuweather, see
language list below. Incorrect
lang
does not fallback to english.
|
unit | C, F | optional | Useful for accuweather or when using "simple" data. Foreca always returns celsius and farenheit. |
data | all, simple | optional | Select "all" to retrieve all the data from the provider's webpage. "simple" returns only data available for all providers. "all" by default. |
debug | nodes, content, geo | optional | Debugging "nodes" returns a list of found html tags. "content" shows strings collected before being manipulated. |