🔗Data API V1
The Data API v1 is now available. Almost all the data obtained by Nucleus can be retrieved using this API.
This API is in beta for now, please let us know if you encounter any issue or if you need to fetch a specific data that isn't documented here, we strive to be fast to respond. We will add more endpoints over time.
Authentication
Nucleus expects the API key to be included in all requests to the server in a auth header:
Authorization: your_access_token
Example:
You may also send it in the body of a POST request as the parameter token
.
Quick Glance
GET
https://app.nucleus.sh/api/v1/apps/:appId/analytics/quickglance
Fetch the number of users, installs, sessions and errors during the last 24 hours (and during the previous 24h period for comparison).
Path Parameters
appId*
String
Your app ID
Example:
Daily Analytics
GET
https://app.nucleus.sh/api/v1/apps/:appId/analytics
The analytics data of your application grouped by day.
You need to supply a date interval as timestamps.
Path Parameters
appId*
String
Your app ID
Query Parameters
start*
String
Timestamp for beginning of interval
end*
String
Timestamp for end of interval
utcOffset
String
Your timezone UTC offset (in minutes) so we can return the appropriate dates
Example:
Events
GET
https://app.nucleus.sh/api/v1/apps/:appId/analytics/events
The daily stats of your application's events.
You need to supply a date interval as timestamps.
Path Parameters
appId*
String
Your app ID
Query Parameters
start*
String
Timestamp for beginning of interval
end*
String
Timestamp for end of interval
utcOffset
String
Your timezone UTC offset (in minutes) so we can return the appropriate dates
Example:
Event Properties
GET
https://app.nucleus.sh/api/v1/apps/:appId/analytics/eventsprops
Get details on the custom data reported alongside your events.
You need to supply a date interval as timestamps.
Path Parameters
appId*
String
Your app ID
Query Parameters
start*
String
Timestamp for beginning of interval
end*
String
Timestamp for end of interval
utcOffset
String
Your timezone UTC offset (in minutes) so we can return the appropriate dates
Example:
Event Attributes
GET
https://app.nucleus.sh/api/v1/apps/:appId/analytics/events/:event/:attr
This will fetch data about a specific event and its attribute.
You need to supply a date interval as timestamps.
Path Parameters
appId*
String
Your app ID
event*
String
The name of the event to retrieve data
attr
String
The name of the attribute of the event to retrieve data for
Query Parameters
start*
String
Timestamp for beginning of interval
end*
String
Timestamp for end of interval
utcOffset
String
Your timezone UTC offset (in minutes) so we can return the appropriate dates
Example:
Errors
GET
https://app.nucleus.sh/api/v1/apps/:appId/analytics/errors
This is your application's error records.
You need to supply a date interval as timestamps.
Path Parameters
appId*
String
Your app ID
Query Parameters
start*
String
Timestamp for beginning of interval
end*
String
Timestamp for end of interval
utcOffset
String
Your timezone UTC offset (in minutes) so we can return the appropriate dates
Example:
Users
The Users list for your application.
GET
https://app.nucleus.sh/api/v1/apps/:appId/users
Path Parameters
appId*
String
Your app ID
Example:
User Details
User data
GET
https://app.nucleus.sh/api/v1/apps/:appId/users/:userId
Path Parameters
appId*
String
Your app ID
userId*
String
ID of the user to fetch details for
Example:
User Session Events
GET
https://app.nucleus.sh/api/v1/apps/:appId/users/:userId/session/:sessionId
This will fetch events data for a specific user session.
You need to supply a device Id in the request parameters, that you can obtain in the previous User Details call.
Path Parameters
appId*
String
Your app ID
userId*
String
ID of the user to fetch details for
sessionId*
Number
ID of the session to retrieve data for
Delete User
DELETE
https://app.nucleus.sh/api/v1/apps/:appId/users/:userId
This will delete a specific user (by id) and it's associated data.
Path Parameters
appId*
String
Your app ID
userID*
String
The ID of the user to delete
Example:
Live Events
GET
https://app.nucleus.sh/api/v1/apps/:appId/live/events
This shows real time events data.
Path Parameters
appId*
String
Your app ID
Example:
Live Users Count
GET
https://app.nucleus.sh/api/v1/apps/:appId/live/users/count
Get the real-time count of how many users are using your app
Path Parameters
appId*
String
Your app ID
Example:
Live Users List
GET
https://app.nucleus.sh/api/v1/apps/:appId/live/users
Get a list of all the users on your app, right now.
Path Parameters
appId*
String
Your app ID
Example:
Last updated