# Pornhub Scraper - Video Metadata, Views & Uploaders (`bovi/pornhub-scraper`) Actor

Scrape public Pornhub video listings with no login: title, URL, viewkey, video ID, duration, views, upload age, uploader and type, verified badge, thumbnail and preview clip. Search by keyword or tags, or browse a category, pornstar, model or channel.

- **URL**: https://apify.com/bovi/pornhub-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Other, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 pornhub scraper - video metadata, views & uploaders

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Pornhub Scraper - Video Metadata, Views & Uploaders

Scrape public **Pornhub video listings** with no login and no API key. The actor opens Pornhub listing pages in a real browser, reads every video card and returns one clean record per video: title, URL, viewkey, numeric video ID, segment, duration in seconds, view count, upload age, uploader name, profile URL and type, verified badge, thumbnail and preview clip. Export the dataset as JSON, CSV or Excel for content-trend, tag and creator analytics. No media is downloaded — only public listing metadata is read.

### What it collects

| Field | Type | Description |
|---|---|---|
| `title` | string | Video title |
| `url` | string | Video page URL |
| `viewkey` | string | Alphanumeric video key |
| `videoId` | integer | Numeric video ID |
| `segment` | string | `straight`, `gay` or `trans` |
| `durationSeconds` | integer | Duration in seconds |
| `views` | integer | View count shown on the listing (rounded by the site, e.g. `80.4K` → `80400`) |
| `addedAgo` | string | Relative upload age as shown by the site |
| `uploader` | string | Uploader display name |
| `uploaderUrl` | string | Uploader profile URL |
| `uploaderType` | string | `model`, `channel`, `pornstar` or `user` |
| `isVerifiedUploader` | boolean | The uploader carries the verified badge |
| `thumbnail` | string | Thumbnail image URL (signed by the CDN, expires) |
| `previewVideoUrl` | string | Short preview clip URL (signed by the CDN, expires) |
| `observedAt` | string | Scrape time, ISO 8601 |

### Input

Pick **one source**. When several are filled, the first non-empty one in this order is used: `searchQuery`, `category`, `pornstar`, `model`, `channel`. With everything empty the actor lists all videos.

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQuery` | string | `cars` (prefill) | Keyword search |
| `category` | select | any | Browse a public category |
| `pornstar` | string | — | Pornstar slug or name, e.g. `riley-reid` |
| `model` | string | — | Model slug, e.g. `kitty` |
| `channel` | string | — | Channel slug, e.g. `brazzers` |
| `tags` | string\[] | — | Added to the search query |
| `sort` | select | `relevance` | `relevance`, `mostRecent`, `mostViewed`, `topRated`, `longest` |
| `period` | select | all time | `today`, `week`, `month`, `year` (search, category, all videos) |
| `startPage` | integer | `1` | Listing page to start from |
| `maxResults` | integer | `50` | Maximum number of videos to return |
| `proxyConfiguration` | object | Apify RESIDENTIAL | Proxy settings; residential is recommended |

```json
{
  "searchQuery": "cars",
  "sort": "mostViewed",
  "period": "month",
  "maxResults": 50,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### Example output

```json
{
  "title": "Big Booty Latina sets boundaries and breaks them - Zoey Di Giacomo",
  "url": "https://www.pornhub.com/view_video.php?viewkey=6a8c66583bb41",
  "viewkey": "6a8c66583bb41",
  "videoId": 490034185,
  "segment": "straight",
  "durationSeconds": 1475,
  "views": 1300000,
  "addedAgo": "2 months ago",
  "uploader": "Jak Knife",
  "uploaderUrl": "https://www.pornhub.com/pornstar/jak-knife",
  "uploaderType": "pornstar",
  "isVerifiedUploader": true,
  "thumbnail": "https://pix-cdn77.phncdn.com/c6251/videos/202608/24/60041565/original/...jpg",
  "previewVideoUrl": "https://ew.phncdn.com/c6251/videos/202608/24/60041565/180P_225K_60041565.webm?...",
  "observedAt": "2026-10-29T06:20:00+00:00"
}
```

### Price per result

The actor is billed **per dataset item**: you pay only for the video records it returns, a fraction of a cent per result (see the Pricing tab for the current rate). `maxResults` caps how many records — and therefore how much — a run can cost.

### Notes

- Only public pages are read; the actor never logs in.
- Missing values are returned as `null`, never invented.
- The site is age-gated and geo-restricted; keep a residential proxy for reliable runs.

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword to search public videos for, for example "yoga" or "gaming". Leave empty to use a category, pornstar, model or channel instead (or leave everything empty to list all videos).

## `category` (type: `string`):

Browse a public category instead of searching. Ignored when a search query is set.

## `pornstar` (type: `string`):

Public pornstar page slug or display name, for example "riley-reid" (or "Riley Reid") from pornhub.com/pornstar/riley-reid. Ignored when a search query or category is set.

## `model` (type: `string`):

Public model / verified amateur page slug, for example "kitty" from pornhub.com/model/kitty. Ignored when a higher-priority source is set.

## `channel` (type: `string`):

Public channel page slug, for example "brazzers" from pornhub.com/channels/brazzers. Ignored when a higher-priority source is set.

## `tags` (type: `array`):

Optional. One or more tags, for example \["amateur", "pov"]. Added to your search query, or used on their own as the search terms when no other source is set.

## `sort` (type: `string`):

Order of the listing results. Channels support most recent, most viewed and top rated.

## `period` (type: `string`):

Optional. Restrict results to a recent time window (search, category and all-videos sources).

## `startPage` (type: `integer`):

Listing page number to start collecting from. Useful for resuming or skipping ahead.

## `maxResults` (type: `integer`):

Maximum number of video records to collect.

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

Pornhub geo-restricts and rate-limits datacenter IPs, so a residential proxy is recommended.

## Actor input object example

```json
{
  "searchQuery": "cars",
  "category": "",
  "sort": "relevance",
  "period": "",
  "startPage": 1,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with the scraped records.

# 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 = {
    "searchQuery": "cars",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/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 = {
    "searchQuery": "cars",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

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

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

```

## CLI example

```bash
echo '{
  "searchQuery": "cars",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/pornhub-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/pornhub-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/27UdqRuuWYv2XOaxo/builds/tgzjVza4kST7IU92z/openapi.json
