Geovisualization Developer's Guide

Retrieving Data with a Query

To fetch the query results from a query, make an authenticated GET request to the following resource where {QUERY_ID} is the unique identifier of your query:
http://datalens.api.here.com/v1/queries/{QUERY_ID}/data?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}
You can also use the queries/_ID_ endpoint in the 07. Query CRUD folder of our Postman collection.

The response will be a JSON object containing the query result in the rows parameter. It will look something like this:

{
  "kind": "datalens#query_result",
  "rows": [
  [
    1.9324894515,
    237,
    "ak"
  ],
  [
    1.629245283,
    212,
    "ci"
  ],
  [
    2.0321428571,
    28,
    "hv"
  ],
  ...
  ],
  "request_id": "eedf8af2-a8a1-4d2e-cd39-c63fbe0f78c3",
  "query": "6fad8374f8bc4470b1d71f802cc5537d",
  "columns": [
  "avg_magnitude",
  "count",
  "src"
  ],
  "dataset": "90af668484394fa782cc103409cafe39"
}