Webmaster API


The API of hd-pornos.net is equal to the API of RedTube (except small differences)

  • Functions are called with the parameter "f".
  • There are no functions for pornstars yet.
  • Only thumbnail size medium1 (240x180) is available.
  • Output format: JSON only
  • Old requests with the url: https://www.hd-pornos.net/app/api.php are still available


searchVideo

https://www.hd-pornos.net/api/?f=searchVideos
https://www.hd-pornos.net/api/?f=searchVideos&search=anal&page=2&ordering=mostviewed

Parameters:
  • category (Optional - String) Name of the category
  • channel (Optional - String) Name of the channel
  • page (Optional - Integer) Pagenumber, Default is 1.
  • limit (Optional - Integer) Number of entries per page, Default is 24. Minimum is 1. Maximum is 100.
  • search (Optional - String) Search query. Use "+" for spaces
  • ordering (Optional - String) Possible values: newest (default), mostviewed, rating

The parameters tags, stars, thumbsize and period are not available.

getVideoById

https://www.hd-pornos.net//api/?f=getVideoById&video_id=1

Categories are included in JSON structure

Parameters:
  • video_id (Required - Integer) ID of video


isVideoActive

https://www.hd-pornos.net/api/?f=isVideoActive&video_id=1

Parameters:
  • video_id (Required - Integer) ID of video


getVideoEmbedCode

https://www.hd-pornos.net/api/?f=getVideoEmbedCode&video_id=1

Retrieves embed code (base64 encoded)

Parameters:
  • video_id (Required - Integer) ID of video


getDeletedVideos

https://www.hd-pornos.net/api/?f=getDeletedVideos
https://www.hd-pornos.net/api/?f=getDeletedVideos&page=2

Parameters:
  • page (Optional - Integer) Pagenumber, Default is 1.
  • limit (Optional - Integer) Number of entries per page, Default is 24. Minimum is 1. Maximum is 100.


getCategoriesList

https://www.hd-pornos.net/api/?f=getCategoriesList

There are no parameters

getChannelsList

https://www.hd-pornos.net/api/?f=getChannelsList

There are no parameters

getTagList

https://www.hd-pornos.net/api/?f=getTagList

The 2000 most popular tags are listed. The tag object contains the id, name and the URI

There are no parameters

Error messages


  • 1001:No such method.
  • 1003:No input parameters specified.
  • 2001:No videos found.
  • 2002:No video with this ID.
  • 3001:No categories found.
  • 3002:No tags found.