Weather Service A RESTful weather service



The Talk Python weather service.

Endpoints

  • Current weather in a city
    GET /api/weather/?city={city}&country={country}

    Parameters
    • Required: city={city} - the city you want to get the weather at.
    • Optional: state={state} - the state of the city (US only, two letter abbreviations).
    • Optional: country={country} - country, US if none specific (two letter abbreviations).
    • Optional: units={units} - units: {metric, imperial, standard}, defaults to metric.
    Response JSON

Note: This service has limited data. It is for educational purposes only. Other uses are strictly forbidden. If you need a proper weather API, openweathermap.org has a great free tier.