website logo
⌘K
Quickstart
User
Metrics
Webhooks
Mobile SDK
V2
React Native
Flutter
Android (Kotlin)
Swift
V1
Errors
FAQ
Docs powered by
Archbee
Metrics
API Version 2 (V2)

Info

You can retrieve user info data by user_id and filter by date range


Get info data by user_id
GET
Params
Query Parameters
user_id
required
String
User ID returned by add integration request. This key should be stored in your database against the user and used for all interactions with the Spike API.
start_date
required
String
Date from in YYYY-MM-DD format
end_date
required
String
Date to in YYYY-MM-DD format
Header Parameters
authorizationtoken
optional
String
Client access token (deprecated)
x-spike-auth
required
String
Client access token
Python
Node.js
Ruby
Java
Curl
|
curl -X GET \
  'https://api.spikeapi.com/v2/metrics/info/?user_id=282812818&start_date=2020-05-01&end_date=2020-05-03' \
  -H 'x-spike-auth: fa0b3803-1111-2222-9788-eccce210d30c'
RESPONSES
200
|
{
    "user_id": "282812818",
    "start_date": "2020-05-01",
    "end_date": "2020-05-03",
    "type": "info",
    "source": [
        {
            "name": "fitbit",
            "status": "ok"
        }
    ],
    "data": [
        {
          "gender": "male",
          "source": "fitbit"
        }
    ]
}




<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

.h2, .h3, .list, .description{
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
}

.h2 {
    margin-top: -20px;
    margin-bottom: 20px;

    font-size: 30px;
}

.h3 {
    font-size: 22px;
	margin-top: -20px;
}

.list-wrapper {
    white-space: normal;
     margin-top: -10px;
}

.list, .description {
    font-size: 14px;
}

</style>
<h2 class="h2">Fields</h2>
<h3 class="h3">Info.gender</h3>
<ul class="list-wrapper">
    <li class="list">Type: String</li>
    <li class="list">Example: male</li>
</ul><p class="description">Gender of the user</p>




Did this page help you?
PREVIOUS
Body
NEXT
Goals
Docs powered by
Archbee
Get Info data
TABLE OF CONTENTS
GET
Get Info data
Docs powered by
Archbee