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


searchVideo

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

Parameters:
  • category (Optional - String) Name of the category
  • 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

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

Categories are included in JSON structure

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


isVideoActive

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

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


getVideoEmbedCode

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

Retrieves embed code (base64 encoded)

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


getDeletedVideos

http://www.hd-pornos.net/app/api.php?f=getDeletedVideos
http://www.hd-pornos.net/app/api.php?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

http://www.hd-pornos.net/app/api.php?f=getCategoriesList

There are no parameters

getTagList

http://www.hd-pornos.net/app/api.php?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.