ic-api is a wrapper to connect you trough Intersection Controller game datas. You can get/search for users, trending maps and other things from the game.
Before you get into these example, remember this package is using much asynchronomous function
const ic = require("ic-api")
ic.user.search("ShadowTree").then(x => console.log(x)) //will return of User
This thing require id, so make sure to request user search and then use the ObjectId to use this function
ic.map.getAll(userid).then(x => console.log(x)) //will return array of Map