Data requests

Work with data request

1. You should get your app key at https://datalight.me/profile/reports

2. List of all fields available at https://api.datalight.me/v1/object

get
Get data

https://api.datalight.me/v1/request/
Request
Response
Headers
authorization
required
string
Create/Edit your app key at https://datalight.me/profile/reports
Query Parameters
time_interval
optional
string
Data detail
coin
optional
string
The coins by which the data will be shown
order
optional
string
The field by which the query will be sorted
from_date
optional
string
The date from which the query will be filtered
to_date
optional
string
The date until which the query will be filtered
offset
optional
number
The number of record from which the query result will be shown
limit
optional
number
Number of records in query
fields
optional
string
You can get list of fields at https://api.datalight.me/v1/object For data requests you should use field "id" from request above.
200: OK
Cake successfully retrieved.
{
"fields": [
"twitter.hype.twitter_hype",
"coinmarketcap.coin.price_usd",
"Coin",
"Date"
],
"limit": 1,
"offset": 0,
"time_interval": "5m",
"coin": [
"BTC"
],
"from_date": "2019-01-15T14:41:03.464728",
"to_date": "2019-01-16T14:41:03.464728",
"order": "date",
"response_time": "0.095467 seconds",
"result": [
{
"Coin": "BTC",
"coinmarketcap.coin.price_usd": 3706.05222041,
"processed_date": 1547510400,
"twitter.hype.twitter_hype": 187446.5
}
]
}

Default/Possible values

Parameter

Default values

Possible values

order

"date"

Any available field

to_date

today

Any date in YYYY-MM-DD format

from_date

to_date - today

Any date in YYYY-MM-DD format

time_interval

"1d"

"1m", "5m", "15m", "30m", "1h", "2h", "3h", "4h", "6h", "12h", "1d"

offset

0

0..10000

limit

100

0..10000

coin

"BTC"

Any coin from https://api.datalight.me/v1/coin/?limit=10000

fields

"price_usd"

Any field from https://api.datalight.me/v1/object