Constructing a Request
A request to the HERE Destination Weather API includes the basic elements shown in the following table and resource-specific parameters.
Element | Value/Example | Description |
---|---|---|
Base URL | https://weather.cit.cc.api.here.com https://weather.cc.api.here.com | Customer Integration Testing (CIT) environment. Production environment. |
Path | /weather/1.0/ | |
Resource | report | Uses HTTP GET |
Format specifier | .xml .json | We recommend that you specify whether you expect XML or JSON output. The default output format is XML. |
Parameters | For more information on query parameters in general, see the sub-sections under Resources. | |
Application Id - Legacy | | Substitute your own unique |
Application Code - Legacy | | Substitute your own unique |
API key | | Substitute your own unique |
Authorization header | | Substitute your own unique |
The following example query uses the HTTP GET method to retrieve a weather report for Berlin, Germany.
curl https://weather.cc.api.here.com/weather/1.0/report.json
?product=observation
&name=Berlin-Tegel
&apiKey={YOUR_API_KEY}