Inferences API

You can access the inferred insights or unprocessed data from our cloud by using LotaData's APIs. Note that it typically takes up to a week for collecting meaningful data in order to generate insights.

Summary Statistics

You can query the API to fetch the summary statistics for your entire installed base of devices.

https://api2.lotadata.com/v2/profiles/stats?
api_key=your_API_key&
bucket=your_Bucket_ID

Devices and Locations

To fetch the complete list of all devices and the count of location signals for each device, use the below API.

[Recommendation]
Note that you could potentially fetch millions of devices and hundreds of millions of signals using this API, so we have enabled paging through results with offset and limit.

https://api2.lotadata.com/v2/profiles/devices?
api_key=your_API_key&
bucket=your_Bucket_ID&
limit=100&
offset=0&
fieldset=internal,id

Weekly Aggregations

You can sort and plot the weekly counts of devices and location signals, across your entire installed base of devices.

https://api2.lotadata.com/v2/trail/signalAggs?
api_key=your_API_key&
bucket=your_Bucket_ID&
agg_weekly=7

Daily Aggregations

You can sort and plot the weekly counts of devices and location signals, across your entire installed base of devices.

https://api2.lotadata.com/v2/trail/signalAggs?
api_key=your_API_key&
bucket=your_Bucket_ID&
agg_daily=7

Location Heat Map

For those of you who like to visualize the real world locations for your installed base of devices, we have provided a heat map API with the ability to set the geohash aggregation, bounding box and date range.

[Recommendation]
Be sure to set a bounding box, or you might end up fetching too many data points in your resultset.

https://api2.lotadata.com/v2/profiles/?
api_key=your_API_key&
bucket=your_Bucket_ID&
bbox=25.06579047298773,121.56528927914246&
bbox=25.027882794096765,121.51534654728516&
from_day=2017-11-12&
to_day=2017-11-18&
agg_geo=8

Top Place Categories

You can fetch the top categories of places visited by your mobile users, by using the below API.

https://api2.lotadata.com/v2/profiles/?
api_key=your_API_key&
bucket=your_Bucket_ID&
bbox=25.06579047298773,121.56528927914246&
bbox=25.027882794096765,121.51534654728516&
from_day=2017-11-12&
to_day=2017-11-18&
agg_category=33

Top Places Visited

If you'd like to query the actual places visited by your mobile users, the below API let's you do just that.

https://api2.lotadata.com/v2/profiles/?
api_key=your_API_key&
bucket=your_Bucket_ID&
bbox=25.06579047298773,121.56528927914246&
bbox=25.027882794096765,121.51534654728516&
from_day=2017-11-12&
to_day=2017-11-18&
agg_place=100&
limit=100

Top Cities Visited

You can fetch the list of cities and towns where your mobile users were seen by using the below API.

https://api2.lotadata.com/v2/session/bucket/your_Bucket_ID?api_key=your_API_key

Device Details

If you'd like to fetch the details for a specific device, you can us the API below. You would of course need to know the device ifa in order to construct a query like below.

https://api2.lotadata.com/v2/profiles/your_device_ifa?
api_key=your_API_key&
bucket=your_Bucket_ID&
fieldset=detail

Questions?

We are eager to hear from you and happy to share best practices for integrating the SDK. There are many ways for you to reach us:

But first, please sign up for an account with LotaData so that we may send you the link to download our SDK.


Was this helpful? Yes, thanks! Not really

results matching ""

    No results matching ""