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 |
- 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
