Porn Hub Api With Express
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: 'http://localhost/api/get/pornstars',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
POST /api/video/embed/${id}
Parameter |
Type |
Description |
id |
string |
Required. Id of item to fetch |
POST /api/video/detail/${id}
Parameter |
Type |
Description |
id |
string |
Required. Id of item to fetch |
POST /api/video/album/${keyword}
Parameter |
Type |
Description |
keyword |
string |
Required. Name of item to fetch |
Parameter |
Type |
Description |
page |
number |
Page of item to fetch |
Parameter |
Types |
type |
data , paging , counting |
POST /api/video/gif/${keyword}
Parameter |
Type |
Description |
keyword |
string |
Required. Name of item to fetch |
Parameter |
Type |
Description |
page |
number |
Page of item to fetch |
Parameter |
Types |
type |
data , paging , counting |
POST /api/video/pornstar/${keyword}
Parameter |
Type |
Description |
keyword |
string |
Required. Name of item to fetch |
Parameter |
Type |
Description |
page |
number |
Page of item to fetch |
Parameter |
Types |
type |
data , paging , counting |
POST /api/video/model/${keyword}
Parameter |
Type |
Description |
keyword |
string |
Required. Name of item to fetch |
Parameter |
Types |
sexualOrientation |
straight , gay , transgender |
POST /api/video/${keyword}
Parameter |
Type |
Description |
keyword |
string |
Required. Name of item to fetch |
Parameter |
Types |
hd |
true , false |
premium |
true , false |
freePremium |
true , false |
production |
all , professional , homemade |
type |
data , paging , counting |
๐ ๏ธ Installation ๐ ๏ธ
- Download and install NodeJs on your computer.
- Download the project as Zip to your computer and unzip it.
- Enter the folder you extracted from the zip and open a terminal to the location of that folder, then enter the following commands.
npm install
- Start the bot by entering the following command in Terminal
node .
๐๏ธServer: Node, PornHub.Js, Express, body-parser
![](https://camo.githubusercontent.com/5de9e83856b6f7835e102b4fbbd467cf53f6c6a2acf9c7f071905e74ba37f1d2/68747470733a2f2f6c6963656e7365627574746f6e732e6e65742f6c2f62792d6e632d73612f342e302f38387833312e706e67)