This page explains how to read a response of the Genezio API. Each answer has the same envelope:
  • data holds the rows. Each route gives the shape of its rows in the API reference.
  • info holds the facts of the query.

The fields of info

Pages of a list

A list with pages takes page (from 1) and page_size (at most 100, or 200 for the brands). Read the next page while page * page_size < total_rows.

Lists in the query parameters

Repeat a parameter to send a list:

Scales of the values

  • A rate or a share is a number from 0 to 1, for example 0.57 for 57%.
  • A count is a whole number.
  • A date is YYYY-MM-DD, the first day of the period.

Unknown parameters get an error

A parameter with an incorrect name, such as from in place of start_date, gets 422 validation_error. The API does not ignore it. Thus, a typing error does not give a report of the incorrect range.