extube v4.0.0 Extube.Pornhub View Source

Pornhub API Wrapper.

For more information on the hubtraffic Pornhub API, see here

https://www.hubtraffic.com/resources/api?site_id=3

Link to this section Summary

Functions

Retrieves all available categories

Retrieves all deleted videos

Retrieves all pornstars available with details (page url and star’s thumb)

Retrieves all pornstars available

Retrieves all tags available

Retrieves additional information about specific video by id parameter

Retrieves embed code for specific video by video_id parameter, which is useful to automatically embed videos

Retrieves state of a specific video specified by is_video_active parameter, which is useful in order to keep your embedded videos up to date

Queries the hubtraffic API to search for videos given a map of parameters. Parameters right now include the following

Link to this section Functions

Retrieves all available categories.

Link to this function get_deleted_videos(page) View Source

Retrieves all deleted videos.

Parameters:

page (Required) Integer

Link to this function get_star_detailed_list() View Source

Retrieves all pornstars available with details (page url and star’s thumb).

Retrieves all pornstars available.

Link to this function get_tags_list(starts_with) View Source

Retrieves all tags available.

Parameters:

list a-z for tag starting letter, 0 for other.

Link to this function get_video_by_id(video_id, thumbsize \\ "medium") View Source

Retrieves additional information about specific video by id parameter.

Parameters:

id (Required) Integer

thumbsize (Optional) If set, provides additional thumbnails in different formats. Possible values are small,medium,large,small_hd,medium_hd,large_hd

Link to this function get_video_embed_code(video_id) View Source

Retrieves embed code for specific video by video_id parameter, which is useful to automatically embed videos.

Parameters:

id (Required) Integer

Link to this function is_video_active(video_id) View Source

Retrieves state of a specific video specified by is_video_active parameter, which is useful in order to keep your embedded videos up to date.

Parameters:

id (Required) Integer

Link to this function search_videos(params \\ %{thumbsize: "medium"}) View Source

Queries the hubtraffic API to search for videos given a map of parameters. Parameters right now include the following:

:category (Optional)

:page (Optional) Integer

:search (Optional) Text

:ordering (Optional) Text. Possible values are featured, newest, mostviewed and rating

:period (Optional) Text. Only works with ordering parameter. Possible values are weekly, monthly, and alltime

:thumbsize (Required). Possible values are small,medium,large,small_hd,medium_hd,large_hd