API

With the MyPornProfile API, you can easily integrate our content into your site.

Registration

You need to register for an API token. All API calls require this token, and you should keep it a secret. Users that abuse the API (with excessive requests, etc.) can be disabled.

Making API Calls

All calls to the API are delivered via HTTP GET requests to https://mypornprofile.com/api/{method}. Each and every call must include your api_token, delivered as part of the URL, not as a querystring parameter. See the usage examples below.

API Methods

The API currently has three methods:

user_pics

Required parameters: api_token, user_id

Description: This method returns a JSON object containing links to all of a user's pictures.

Example: This query will retrieve all of the pictures for user #1337:


https://mypornprofile.com/api/user_pics/{api_token}/1337

user_info

Required parameters: api_token, user_id

Description: This method returns a JSON object containing the user's MPP user_id as well as their username, Twitter handle and profile URL.

Example: This query will retrieve information for user #1337:


https://mypornprofile.com/api/user_info/{api_token}/1337

pic_info

Required parameters: api_token, pic_id

Description: This method returns a JSON object containing information about a specific picture, including its owner's MPP user_id, its viewcount, comment count and description, as well as its direct URL.

Example: This query will retrieve information for picture #1337:


https://mypornprofile.com/api/pic_info/{api_token}/1337