# Pornhub scraper (`saswave/pornhub-scraper`) Actor

Pornhub scraper is a toolbox to extract any sort of data from the website pornhub.com . Perfect tool for monitoring trends and crawl multiple sources at scale. New features can be added on demand,
It suits +18 adult content creators or analysts

- **URL**: https://apify.com/saswave/pornhub-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** Automation, Social media, Videos
- **Stats:** 187 total users, 5 monthly users, 99.4% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Pornhub Scraper Toolbox

Pornhub Scraper is a versatile data extraction toolkit designed for analyzing trends, monitoring profiles, and crawling multiple sources at scale. 

Ideal for content creators, marketers, or data analysts, it provides structured insights from profiles, videos, and channels.

### 🚀 Features

Extract profile information: verified status, rankings, subscribers, and more.

Retrieve videos uploaded by or tagged with a specific performer.

Analyze relationships: subscriptions, co-stars, featured channels, and social media links.

Structured JSON output for easy integration with dashboards or analytics tools.

Extensible: new features can be added on demand.

### Output example

Subscriptions / Pornstars / Channels / Friends / Subscribers from 1 profile url
```json
{
  "verified": false,
  "link": "https://pornhub.com/pornstar/marie-madison",
  "id": "5186",
  "image_url": "https://ei.phncdn.com/pics/users/379/723/971/avatar1505751998/(m=ewILGCjadOf)(mh=dSgDSKqsCf--w9VD)200x200.jpg",
  "title": "Marie Madison"
}
````

Profile About

```json
{
  "name": "Marie Madison",
  "username": "marie-madison",
  "model_rank": "16",
  "rank_week": "9",
  "rank_month": "16",
  "rank_last_month": "16",
  "rank_year": "17",
  "total_views": " 983,936,172",
  "subscribers": " 1,085,317",
  "featured_in": [
    {
      "name": "Lena Paul X",
      "url": "https://fr.pornhub.com/channels/lena-paul-x"
    },
    {
      "name": "Girlsway",
      "url": "https://fr.pornhub.com/channels/girlsway"
    },
    {
      "name": "Bang Bros Network",
      "url": "https://fr.pornhub.com/channels/bangbrosnetwork"
    }
  ],
  "twitter": "https://www.twitter.com/Lenaisapeach",
  "instagram": "https://www.instagram.com/Lenapaulxo",
  "about": [
    "Situation amoureuse: Disponible",
    "Intéressé par: Gars et Filles",
    "Ville et Pays: SoCal, US",
    "Vues du profil de la star du porno: 128,226,958",
    "Statut de Carrière: Actif",
    "Début et fin de Carrière: 2016 à Présent",
    "Sexe: Femme",
    "Lieu de Naissance: Florida, United States of America",
    "Étoile: Libra",
    "Mensurations: 32DDD-25-38",
    "Hauteur: 5 pi 4 po (163 cm)",
    "Poids: 128 lb (58 kg)",
    "Ethnicité: White",
    "Arrière-plan: Irish",
    "Couleur des cheveux: Blonde",
    "Couleur des yeux: Grey",
    "Faux Seins: No",
    "Tatouages: No",
    "Piercings: Yes",
    "Affichages de profil: 135 066 349",
    "Vidéos vues: 598"
  ],
  "description": "",
  "achievements": [
    {
      "name": "You survived 2020",
      "description": "You survived 2020",
      "progress": "100%"
    },
    {
      "name": "Amateur newcomer of the month 2016",
      "description": "Hottest amateur to join in the last 90 days",
      "progress": "100%"
    },
    {
      "name": "Model of the month 2020",
      "description": "Model of the month winner for 2020!",
      "progress": "100%"
    },
    {
      "name": "Best Chest",
      "description": "Nominee of the Pornhub Award - Best Chest",
      "progress": ""
    },
    //truncated for example
  ],
  "all_achievements": [
    {
      "name": "NICEST TITS",
      "description": "Nominee of the Fan Voted Award - NICEST TITS",
      "progress": ""
    },
    {
      "name": "Best Chest",
      "description": "Nominee of the Pornhub Award - Best Chest",
      "progress": ""
    },
    //truncated for example
  ]
}
```

Search Profile & Profile Costars

```json
{
  "performer_url": "https://fr.pornhub.com/pornstar/aiden-starr",
  "performer_image_url": "https://ei.phncdn.com/(m=bLqDuhKlbyaT)(mh=WqC0aCggAM_zF8Hx)b2d31bd9-2fee-4117-aa82-2747bb93c02f.jpg",
  "performer_rank_nb": "1941",
  "performer_rank_mov": "rank-up",
  "performer_name": "Aiden Starr",
  "performer_badges": [
    "Verified Model"
  ],
  "performer_videos": "215 Vidéos",
  "performer_views": "46M Vues"
}
```

Search video / Video Uploaded / Video Tagged

```json
{
  "video_id": "65ca2aec1b4f8",
  "video_url": "https://pornhub.com/view_video.php?viewkey=65ca2aec1b4f8",
  "image_url": "https://ei.phncdn.com/videos/202402/12/448055681/original/(m=qVU628YbeafTGgaaaa)(mh=IqIgSCqugKURCHr9)0.jpg",
  "username_url": "https://pornhub.com/model/pantiesqueen",
  "username": "PantiesQueen",
  "views": "117K",
  "rating": "91%",
  "duration": "24:57",
  "title": "Hot professeur clignote d’énormes lèvres de chatte pompées et éjacule sur cam pendant les cours en ligne"
}
```

### 💡 Use Cases

Monitor performer popularity trends over time.

Analyze audience engagement and video performance.

Build dashboards for content analytics.

Aggregate social media profiles and achievements.

### ⚙️ How It Works

Provide a performer profile URL or search query.

Retrieve structured JSON data for profiles, videos, and co-stars.

Integrate with analytics tools, dashboards, or databases.

### 📝 Why Choose Pornhub Scraper

Fast and reliable data extraction.

Easy to extend with new features.

Structured output ready for data analysis.

Perfect for marketers, analysts, or content creators.

### 🔗 Related Resources

JSON data handling for analytics dashboards.

Trend monitoring techniques for media content.

Social media integration with profile analytics.

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `url_videos` (type: `string`):

Any search url with video as results

## `url_profiles` (type: `string`):

Any search url with profile as results

## `url_get_profile_infos` (type: `string`):

Any profile url to get data from different section: about, subscriptions, pornstar subscriptions, channel subscriptions, costars, friends, subscribers, videos uploaded, videos tagged

## `get_profile_type` (type: `string`):

When providing profile URL, select the type of scraping

## `max_page` (type: `integer`):

0 = no limit

## `proxyConfiguration` (type: `object`):

Pornhub is not available in some US states until new state law remove the ID requirements to access website

## Actor input object example

```json
{
  "url_get_profile_infos": "https://pornhub.com/model/sweetie-fox",
  "get_profile_type": "about",
  "max_page": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url_videos": "",
    "url_profiles": "",
    "url_get_profile_infos": "https://pornhub.com/model/sweetie-fox",
    "get_profile_type": "about",
    "max_page": 1,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": []
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/pornhub-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "url_videos": "",
    "url_profiles": "",
    "url_get_profile_infos": "https://pornhub.com/model/sweetie-fox",
    "get_profile_type": "about",
    "max_page": 1,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": [],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("saswave/pornhub-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url_videos": "",
  "url_profiles": "",
  "url_get_profile_infos": "https://pornhub.com/model/sweetie-fox",
  "get_profile_type": "about",
  "max_page": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}' |
apify call saswave/pornhub-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=saswave/pornhub-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Pornhub scraper",
        "description": "Pornhub scraper is a toolbox to extract any sort of data from the website pornhub.com . Perfect tool for monitoring trends and crawl multiple sources at scale. New features can be added on demand,\nIt suits +18 adult content creators or analysts",
        "version": "0.0",
        "x-build-id": "yWggeE619y4NwCrtF"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/saswave~pornhub-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-saswave-pornhub-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/saswave~pornhub-scraper/runs": {
            "post": {
                "operationId": "runs-sync-saswave-pornhub-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/saswave~pornhub-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-saswave-pornhub-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "url_videos": {
                        "title": "Search URL with video as results",
                        "type": "string",
                        "description": "Any search url with video as results"
                    },
                    "url_profiles": {
                        "title": "Search URL with profiles as results",
                        "type": "string",
                        "description": "Any search url with profile as results"
                    },
                    "url_get_profile_infos": {
                        "title": "Profile Url",
                        "type": "string",
                        "description": "Any profile url to get data from different section: about, subscriptions, pornstar subscriptions, channel subscriptions, costars, friends, subscribers, videos uploaded, videos tagged"
                    },
                    "get_profile_type": {
                        "title": "Select scraping type (mandatory for profile scraping)",
                        "enum": [
                            "about",
                            "subscriptions",
                            "pornstar-subscriptions",
                            "channel-subscriptions",
                            "costars",
                            "friends",
                            "subscribers",
                            "videos/upload",
                            "videos"
                        ],
                        "type": "string",
                        "description": "When providing profile URL, select the type of scraping"
                    },
                    "max_page": {
                        "title": "Max page number",
                        "minimum": 0,
                        "type": "integer",
                        "description": "0 = no limit"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration highly recommended",
                        "type": "object",
                        "description": "Pornhub is not available in some US states until new state law remove the ID requirements to access website"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
