API

Quick start guide

URL scheme looks like this:

http://pornporn.to/api/v1/videos

URL scheme with pagination looks like this:

http://pornporn.to/api/v1/videos?page=2

Here is a quick example of how you can get started with the API using PHP

<?php
    $response = file_get_contents('http://pornporn.to/api/v1/videos');
    if ($response) {
        // handle the response 
    }
?>

Example JSON video response

{
    "id":16754,
    "title":"BangBros - Huge ass on the white girl that gets fucked",
    "description":null,
    "thumb":"http:\/\/pornporn.to\/assets\/img\/vid\/Vlbangbros-huge-ass-on-the-white-girl-that-gets-fucked.jpg",
    "duration":"55:32",
    "embed":"https:\/\/dbofporn.com\/embed/vshare\/fwjqw64\/width-750\/height-400\/6",
    "added":"2018-12-08 07:01:08",
    "stars":[
        {"name":"Chris Strokes"},
        {"name":"Madison Chandler"}
    ],
    "categories":[
        {"name":"Blonde"},
        {"name":"Teen"}
    ],
    "tags":[
        {"name":"White Girl"},
        {"name":"Blonde"},
        {"name":"Professional"},
        {"name":"Cumshot"},
        {"name":"White Guy"},
        {"name":"SD"},
        {"name":"Bangbros"},
        {"name":"Natural Tits"},
        {"name":"Medium Tits"},
        {"name":"Cute"},
        {"name":"Bubble Butt"},
        {"name":"Oiled"},
        {"name":"Teen"},
        {"name":"Cum On Face"},
        {"name":"Big Butt"},
        {"name":"Huge Dick"},
        {"name":"2013"},
        {"name":"Chris Strokes"},
        {"name":"PAWG"},
        {"name":"Madison Chandler"}
    ]
}

Videos

[GET] Latest videos:

http://pornporn.to/api/v1/videos
15 videos per page, next page url: http://pornporn.to/api/v1/videos?page=2

[GET] Popular videos:

http://pornporn.to/api/v1/videos/popular
15 videos per page, next page url: http://pornporn.to/api/v1/videos/popular?page=2

[POST] Add video:

http://pornporn.to/api/v1/videos/submit
Example how to submit new video
<?php
    $curl = curl_init();

    $data = [
        //required data
        'title' => 'WoodmanCastingX - Viola Bailey',
        'video' => 'http://vshare.io/d/5209336',
        //min 1 categories max 3
        'categories' => [
            'Big Tits'
        ],
        //min 1 tag
        'tags' => [
            'Professional',
            'Big Tits',
            'Cum On Face',
            'Footjob',
            'Busty',
            'PierreWoodman.com'
        ],
        //video duration in seconds
        'duration' => 1701,

        //additionally data
        'stars' => [
            'Lisa Ann'
        ]
    ];

    curl_setopt_array($curl, [
      CURLOPT_URL => 'http://pornporn.to/api/v1/videos/submit',
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => 'POST',
      CURLOPT_POSTFIELDS => http_build_query($data),
    ]);

    $response = curl_exec($curl);
    $err = curl_error($curl);

    curl_close($curl);

    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
?>

Stars

[GET] List of stars:

http://pornporn.to/api/v1/stars
30 stars per page, next page url: http://pornporn.to/api/v1/stars?page=2

[GET] Detail star with videos:

http://pornporn.to/api/v1/stars/6
15 videos per page, next page url: http://pornporn.to/api/v1/stars/6?page=2

Tags

[GET] List of tags:

http://pornporn.to/api/v1/tags
30 tags per page, next page url: http://pornporn.to/api/v1/tags?page=2

[GET] Detail tag with videos:

http://pornporn.to/api/v1/tag/1
15 videos per page, next page url: http://pornporn.to/api/v1/tag/1?page=2

Categories

[GET] List of categories:

http://pornporn.to/api/v1/categories
30 cateogries per page, next page url: http://pornporn.to/api/v1/categories?page=2

[GET] Detail category with videos:

http://pornporn.to/api/v1/categories/1
15 videos per page, next page url: http://pornporn.to/api/v1/categories/1?page=2