ConsumerView API Developer Guide
Page 7 Version 2.5 | February 2022
The API returns the values of the variables and propensities defined in the asset
that match the consumer(s) identified in the lookup request.
The values of the matching ConsumerView data are extracted from the response
and used within your bespoke application to create the required output, e.g. a
report, bespoke mailshot, advertising, or sales script.
You can also send a lookup request for more than one asset at a time. This is known
as a multi-asset request and has the advantage of the application receiving all of the
data in one request, rather than having to send individual single record requests for
each asset. The assets can be associated with any dataset or API to which you
subscribe, with the exception of the Catalist API. Multi-asset requests use a different
endpoint to single and batch lookup requests. Multi-asset lookups are only supported
for single record requests and not batch record requests.
1.3 Purpose of this document
This document provides technical information about:
• how to get an API account;
• the log in request and response, including examples;
• the single record lookup request and the response, including examples;
• the batch record lookup request and the response; including examples;
• the various HTTP responses that may be received from the API. For error
responses this includes possible causes and their resolution.
Note: For information about all ConsumerView variables and propensities supported
by the API, refer to the ConsumerView API Variables and Propensities Reference
Guide. This includes a description of each variable and propensity and its possible
values, as well as the name given to the variable or propensity in the response data,
and a typical example response.
1.4 Document audience and pre-requisites
This document is intended to be used by developers wanting to use the API in their
own bespoke Web-based or desktop applications.
There are many ways to create the HTTP requests needed to log in and query the API
and to consume the responses. This can be from simple browser development tools
and add-ins, tools and libraries such as cURL and JQuery, to development
environments for programming languages such C# and Java which provide libraries
that include creating instances of an HTTP client or Web request.
It follows, therefore, that any API guide cannot be too prescriptive and can only give
the ‘bare bones’ of information about the API. For this reason, the request examples
used in this guide are in the Windows version of cURL. However, sufficient information
is given about the construction of each HTTP request to allow you to build them using
any preferred language or tool.