Skip to content

Field Selection

By default, all fields available in the API are included by default.

Some of the newer API methods support the ability to select which fields should be included. This feature can be utilized to save on memory, bandwidth and latency. Fields can be selected by sending a query string fields parameter with the list of fields. For example, such a query string might look like this:

text
...?fields[]=firstName&fields[]=lastName&fields=duration&...

Note [] at the end of each fields key when including multiple values, as explained in the Request Parameters section.

The API methods which support field selection are annotated below.

Fareclock API Documentation