API
The api
field sites at the root of the query. It can take an optional appid
argument to set the API key for the query.
If not provided, the API key must be set as the request header x-owm-appid
.
Query
query ($appid: String) {
api(appid: $appid) {
# ... rest of the query
}
}
Variables
{
"appid": "<API_KEY>"
}