Yup API

Base URL: http://api.yup.io​

GET Post

Requests
Response
Requests

Method

Endpoint

Usage

GET

/posts/post/{postid}

Fetch post information for a given vote/post.

GET

/comments/post/{postid}

Fetch comments on a given vote/post.

​

GET

/posts/interactions/{postid}

Fetch user interactions on a given vote/post.

GET

/votes/post/{postid}/voter/{username}

​

Fetch a user's vote on a given vote/post (if it exists).

Example: https://api.yup.io/posts/post/12294​

Response

​https://api.yup.io/posts/post/12294​

{
"avatar": "",
"quantiles": {
"overall": "none",
"popularity": "none",
"intelligence": "none",
"funny": "none",
"chill": "none",
"useful": "none",
"knowledgeable": "none",
"engaging": "none",
"easy": "none",
"interesting": "none",
"affordable": "none",
"beautiful": "none",
"expensive": "none",
"wouldelect": "none",
"agreewith": "none",
"trustworthy": "none"
},
"weights": {
"overall": 0,
"popularity": 0,
"intelligence": 0,
"funny": 0,
"chill": 0,
"useful": 0,
"knowledgeable": 0,
"engaging": 0,
"easy": 0,
"interesting": 0,
"affordable": 0,
"beautiful": 0,
"expensive": 0,
"wouldelect": 0,
"agreewith": 0,
"trustworthy": 0
},
"sextiles": {
"overall": "none",
"popularity": "none",
"intelligence": "none",
"funny": "none",
"chill": "none",
"useful": "none",
"knowledgeable": "none",
"engaging": "none",
"easy": "none",
"interesting": "none",
"affordable": "none",
"beautiful": "none",
"expensive": "none",
"wouldelect": "none",
"agreewith": "none",
"trustworthy": "none"
},
"_id": {
"postid": "12294"
},
"previewData": {
"img": "https://i.ytimg.com/vi/hEMm7gxBYSc/maxresdefault.jpg",
"url": "https://www.youtube.com/watch?v=hEMm7gxBYSc",
"title": "Nirvana - Where Did You Sleep Last Night (Live On MTV Unplugged Unedited)",
"description": "REMASTERED IN HD! Taken from the 25th Anniversary Editions of Nirvana – MTV Unplugged in New York Order Now: https://Nirvana.lnk.to/Unplugged25 #Nirvana #Whe..."
},
"tag": "youtube.com",
"catVotes": {
"overall": {
"up": 2,
"down": 0
},
"popularity": {
"up": 2,
"down": 0
},
"intelligence": {
"up": 0,
"down": 0
},
"funny": {
"up": 0,
"down": 0
}
},
"rating": {
"popularity": {
"ratingAvg": 1,
"ratingSum": 2,
"ratingCount": 2
},
"overall": {
"ratingAvg": 1,
"ratingSum": 2,
"ratingCount": 2
}
},
"postConfirmed": false,
"author": "yupcreators1",
"timestamp": "1578275254500",
"caption": "https://www.youtube.com/watch?v=hEMm7gxBYSc",
"imgHash": "",
"videoHash": "",
"__v": 0,
"lastUpdated": "1578275254500",
"assocPostId": "10074"
}

GET User

Requests
Response
Requests

Method

Endpoint

Usage

GET

/levels

Fetch all Yup users (extremely large json).

GET

/levels/users/{username}

​

​

GET

/accounts/{username}.

Fetch data on a particular Yup user.

GET

/followers/{username}

Fetch followers for a particular Yup user.

GET

/following/{username}

Fetch accounts followed by a Yup user.

GET

/accounts/actionusage/{eosname}

​

Fetch action usage by user's EOS name.

Example: http://api.yup.io/levels/user/darren_yup or http://api.yup.io/accounts/darren_yup​

Response
{
"balance": {
"EOS": 0,
"YUPX": 98.8791,
"YUP": 80.172,
"YUPETH": 0
},
"total_stake": {
"YUPETH": 0
},
"twitterInfo": {
"_id": "5f6c3961769e4200111cee18",
"avatar": "https://pbs.twimg.com/profile_images/1277686232764440576/3trk6EFd.jpg",
"bio": "",
"email": "[email protected]",
"fullname": "Darren Wang",
"userId": "1277685255256674304",
"username": "darren_yupio",
"isTracked": true,
"isMirror": false,
"favorites": 284,
"followers": 0,
"friends": 57,
"language": null,
"location": "pale blue dot",
"oauthType": "loginWithOAuth",
"verified": false
},
"bio": "off to the races",
"avatar": "https://ipfs.yup.io/ipfs/Qmf2FgbNFrEst6kAZWDty9jztjdhZHAtMwqExvwWAiWVn1",
"fullname": "Darren",
"weight": 99,
"_id": "darrenyupxxx",
"__v": 0,
"eosname": "darrenyupxxx",
"skey": "3461924983",
"username": "darren_yup",
"cum_deposit_time": 1335366,
"claimed_creator_rewards": 0,
"total_claimed_rewards": 0,
"total_creator_rewards": 0,
"total_vote_value": 3.0535885700480683,
"quantile": "first",
"sextile": "first"
}