Weather API Developer's Guide

Weather Observation Example

This section provides an example of a weather observation request.

Note: The code examples use the placeholder text {YOUR_APP_CODE} and {YOUR_APP_ID} to indicate places where you should substitute your own unique app_id and app_code values. For more information about these authentication credentials, see Acquiring Credentials.

User Story

The user wants to obtain the current weather conditions for Berlin, Germany.

Request Summary

Resource: report – note that resource representation is specified via extensions .xml or .json
Parameters: product – indicates what kind of report the query requests; in this example, the query uses the parameter value observation to request a report on the current weather conditions at the eight closest reporting points to the specified location
  name – indicates the name of the city for which the query requests a weather report


The code block below demonstrates the complete request, specifying that the response data are to be delivered in JSON.

Here is the same request indicating that the response data are to be delivered in XML.


The response to the request contains:

  • a series of locations with observation information
  • weather report information for each location

The example response in JSON format is as follows:

          "description":"Partly sunny. Chilly.",
          "skyDescription":"Partly sunny",

The example response in XML format is as follows:

    <location timezone="1" distance="0.00" longitude="13.31" latitude="52.56" city="Berlin-Tegel" state="Berlin" country="Germany">
      <observation utcTime="2015-01-21T13:20:00.00+01:00" elevation="31.00" distance="0.00" longitude="13.3100" latitude="52.5600" city="Berlin-Tegel" state="Berlin"
        <description>Partly sunny. Chilly.</description>
        <skyDescription>Partly sunny</skyDescription>
        <airDescription />
        <barometerTrend />

For more details about responses to this type of request, see Report Response.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on