spankbang
v0.0.9
Published
spankbang.com api implementation
Downloads
12
Maintainers
Readme
SpankBang
Install
A Node.js la.spankbang.com Api library
npm install spankbang
Usage
Import
const spankbang = require('spankbang')
fresh
//-- Inside an async function --//
//Retrieve fresh videos
const fresh = await spankbang.videos.fresh()
console.log(fresh)
{
"favorites":[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
}
],
"upcoming":[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
}
],
"trending":[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
}
],
"moreVideos":[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
}
],
}
Sections
//-- Inside an async function --//
const page = 12
//trending
const data = await spankbang.videos.sections.trending({page})
//upcoming
const data = await spankbang.videos.sections.upcoming({page})
//newVideos
const data = await spankbang.videos.sections.newVideos({page})
//popular
const data = await spankbang.videos.sections.popular({page})
console.log(data)
{
"pagination": {
"page",
"pages" [],
"hasNext", //bool
"hasPrevious" //bool
},
"videos": [
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
},
]
}
Details
//-- Inside an async function --//
const url = '/9c8bk/video/hotwifexxx+cheating+asian+wife+sexting+with+black+stud+see+what+happens+next'
const details = await spankbang.videos.details({url})
console.log(details)
{
"name",
"description",
"duration",//"24:07"
"profile":{
"name",
"count"//string
},
"thumbNail",
"tags":[],
"timeline":{
"positions":[
{
"name",
"timeStamp", //int Time in seconds
}
],
"timeline":[
{
"image",
"timeStamp", //int Time in seconds
}
],
},
"files":{
"240p",
"480p",
"720p",
"1080p",
"4k",
"hls"
},
"videos":[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
}
]
}
Search
//-- Inside an async function --//
const { search,page } = req.body
const query = await spankbang.videos.search({search,page})
console.log(search)
{
"pagination": {
"page":1, //int
"pages":1001 //int
"hasNext", //bool
"hasPrevious", //bool
},
"results":[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
}
]
}
Tags
//-- Inside an async function --//
const tags = await spankbang.tags()
console.log(tags)
{
"tags":[
//a total of 1000 tags are obtained
]
}
// To limit the number of items use the limit property passing a number with the required quantity
const {limit} = req.body //10
const tags = await spankbang.tags({limit})
console.log(tags)
{
tags:[
// 10 items
]
}
//To search for a tag you can pass the 'search' property
const {search} = req.body
const tags = await spankbang.tags({search})
console.log(tags)
{
'tags':[]
}
/*In the event that it is required to limit the amount of
the search, it can also be done by passing both the 'limit' and 'search' properties.*/
const { limit, search } = req.body
const tags = await spb.tags({limit,search})
cosole.log(tags)
{
"tags":[]
}
Pornstars
const pstars = await spankbang.pstars()
cosole.log(pstars)
{
"pagination":{
"page": 1,
"pagination":[
"1",
"2",
"3",
"166"
]
},
"hasNext", // bool
"hasPrevious", // bool
"pStars":[
{
"name",
"path",
"thumbNail",
"views",
"videos"
}
]
}
//To change the page you can pass the 'page' parameter.
const { page }= req.body//2
const pstars = await spankbang.pstars({page})
cosole.log(pstars)
{
"pagination":{
"page": 2,
"pagination":[
"1",
"2",
"3",
"166"
]
},
"hasNext", // bool
"hasPrevious", // bool
"pStars":[
{
"name",
"path",
"thumbNail",
"views",
"videos"
}
]
}
Search Pornstars
const {search}= req.body
const pstars = await spankbang.searchPstar({search})
console.log(pstars)
{
"pStars":[
{
"name",
"path",
"videos"
}
]
}
/*
In the event that it is required to limit the number of results, the 'limit' property can be passed.
*/
const { search,limit }= req.body
const pstars = await spankbang.searchPstar({search, limit})
Channels
//-- Inside an async function --//
//hot
const data = await spankbang.channels.hot()
//newChannels
const data = await spankbang.channels.newChannels()
//popular
const data = await spankbang.channels.popular()
//name
const data = await spankbang.channels.name()
console.log(data)
{
"pagination": {
"page",
"pages": [],
"hasNext": true,
"hasPrevious": true
},
"channels": [
{
"path",
"thumbNail",
"name"
},
]
}
Channel Details
const path = '/ho/channel/brazzers/'
const page = 1
//newVideos
const data = await spankbang.channelDetails.newVideos({path, page})
//popular
const data = await spankbang.channelDetails.popular({path, page})
//longest
const data = await spankbang.channelDetails.longest({path, page})
//present
const data = await spankbang.channelDetails.present({path, page})
console.log(data)
{
"name",
"createdBy": {
"name",
"path"
},
"thumbNail",
"pagination": {
"page",
"pages": []
"hasNext", //bool
"hasPrevious": //bool
},
"videos": [
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
},
]
}
Profile Details
async function test() {
const path = '/profile/dealamaju14'
//popular
const data = await spankbang.profileDetails.popular({ path })
//present
const data = await spankbang.profileDetails.present({ path })
//longest
const data = await spankbang.profileDetails.longest({ path })
console.log(data)
}
{
"pagination": {
"page": 1,
"pages": [],
"hasNext": false,
"hasPrevious": false,
}
'name',
'flag',
'thumbNail',
'count' //subs
'videos':[
{
"title",
"duration",
"thumbNail",
"preview",
"path",
"views",
"uploadTime"
},
]
}
- API functions will be added in future versions