πŸ‘¨πŸš€
Unique User Data
With this data API, one can find out the no of unique users who have interacted with the dapp over time.
get
https://data.biconomy.io/api/v1/dapp/uniqueUserData
Fetches unique user data for a particular dapp

API Call via NodeJS:

1
const fetch = require("node-fetch");
2
const { URL, URLSearchParams } = require('url');
3
const authToken = "<Account's AUTH TOKEN>";
4
const apiKey = "<Dapp's API KEY>";
5
const getUniqueUserData = () => {
6
const url = new URL("https://data.biconomy.io/api/v1/dapp/uniqueUserData");
7
​
8
const params = {
9
startDate : "11-14-2021",
10
endDate : "01-19-2022"
11
}
12
13
url.search = new URLSearchParams(params).toString();
14
​
15
const requestOptions = {
16
method: 'GET',
17
headers: { "Content-Type": "application/x-www-form-urlencoded", "authToken": authToken, "apiKey" : apiKey }
18
};
19
20
fetch(url, requestOptions)
21
.then(response => response.json())
22
.then(data => console.log(data))
23
.catch(error => console.error('Error:', error));
24
}
25
​
26
getUniqueUserData()
Copied!