kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
21 wiersze
1003 B
Markdown
21 wiersze
1003 B
Markdown
![]() |
<h1 align="center">WeatherAPI Agentic Service</h1>
|
||
|
|
||
|
## Intro
|
||
|
|
||
|
[WeatherAPI.com][weather-api] is a powerful fully managed weather and geolocation API provider that provides extensive APIs that range from the realtime and weather forecast, historical weather, Air Quality Data, Bulk Request, IP lookup, and astronomy through to sports, time zone, and geolocation.
|
||
|
|
||
|
## Pre-requisites
|
||
|
|
||
|
Ensure the following environment variable is set:
|
||
|
|
||
|
- `WEATHER_API_KEY` - API key for WeatherAPI.com service
|
||
|
|
||
|
Otherwise, you can pass it in as an argument to the `WeatherClient ` constructor.
|
||
|
|
||
|
### How to Retrieve API Key
|
||
|
|
||
|
1. Open https://www.weatherapi.com in your browser and click on the "Signup" button in the top right corner to create a new account or "Login" to sign in with your existing account.
|
||
|
2. Once you are logged in, the API key will be displayed on the dashboard at the top of the page next to the "API Key" label. You can copy it by clicking on the "Copy" button.
|
||
|
|
||
|
[weather-api]: https://www.weatherapi.com
|