pionxzh / Pornhub.js

Powerful PornHub API for Node.js
MIT License
93 stars 17 forks source link

Is there an option for random videos from pornhub #108

Closed bobwatcherx closed 6 months ago

bobwatcherx commented 6 months ago

Suppose I have a website and on my home page it contains random videos from the tag or pornstar . Is there an example of the code?

https://github.com/pionxzh/pornhub.js/blob/HEAD/doc/WebMaster.md#search-video

pionxzh commented 6 months ago

You can try these APIs:

You can also use .pornstarList to get pornstars and use .modelVideos to get their video list. I would suggest you storing them in a DB or Redis to reduce the query number.

.autoComplete is also a useful API for you to show some recommendations based on keywords or topics.