{
  "openapi": "3.0.1",
  "info": {
    "title": "Pornhub Data Extractor | Videos, Channels, Categories & Actors",
    "description": "Unofficial Pornhub API to extract videos, actors, channels, and category data. Get direct video URLs, thumbnails, views, ratings, tags, and more. Perfect for content research, SEO, or automation. Export structured data for use in apps, reports, or dashboards.",
    "version": "0.0",
    "x-build-id": "wTjQziHO5usJdPUjS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pintxuki~pornhub-data-extractor-videos-channels-categories-actors/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pintxuki-pornhub-data-extractor-videos-channels-categories-actors",
        "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/pintxuki~pornhub-data-extractor-videos-channels-categories-actors/runs": {
      "post": {
        "operationId": "runs-sync-pintxuki-pornhub-data-extractor-videos-channels-categories-actors",
        "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/pintxuki~pornhub-data-extractor-videos-channels-categories-actors/run-sync": {
      "post": {
        "operationId": "run-sync-pintxuki-pornhub-data-extractor-videos-channels-categories-actors",
        "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": {
          "type": {
            "title": "🎯 Type",
            "enum": [
              "VIDEOS",
              "ACTORS",
              "CHANNELS",
              "CATEGORIES"
            ],
            "type": "string",
            "description": "Select the content type you want to scrape: Videos, Actors, Channels or Categories",
            "default": "VIDEOS"
          },
          "category": {
            "title": "📙 Category",
            "enum": [
              "all",
              "video?c=28",
              "categories/teen",
              "video?c=29",
              "video?c=17",
              "video?c=35",
              "video?c=181",
              "video?c=27",
              "video?c=65",
              "video?c=111",
              "categories/hentai",
              "video?c=105",
              "video?c=3",
              "video?c=98",
              "video?c=1",
              "categories/babe",
              "video?c=89",
              "video?c=6",
              "video?c=141",
              "video?c=4",
              "video?c=7",
              "video?c=8",
              "video?c=76",
              "video?c=9",
              "video?c=13",
              "video?c=10",
              "video?c=102",
              "video?c=96",
              "video?c=11",
              "video?c=14",
              "video?c=86",
              "video?c=90",
              "video?c=12",
              "video?c=732",
              "categories/college",
              "video?c=57",
              "video?c=241",
              "video?c=15",
              "video?c=242",
              "video?c=16",
              "video?c=100",
              "described-video",
              "video?c=72",
              "video?c=55",
              "video?c=115",
              "video?c=93",
              "video?c=502",
              "video?c=18",
              "video?c=592",
              "video?c=19",
              "video?c=94",
              "video?c=32",
              "video?c=881",
              "video?c=80",
              "video?c=95",
              "video?c=20",
              "video?c=21",
              "hd",
              "video?c=101",
              "interactive",
              "video?c=25",
              "video?c=97",
              "video?c=103",
              "video?c=26",
              "video?c=78",
              "video?c=22",
              "video?c=512",
              "video?c=121",
              "video?c=2",
              "video?c=201",
              "video?c=53",
              "video?c=211",
              "video?c=891",
              "popularwithwomen",
              "categories/pornstar",
              "video?c=41",
              "video?c=24",
              "video?c=131",
              "video?c=31",
              "video?c=42",
              "video?c=81",
              "video?c=522",
              "video?c=67",
              "video?c=99",
              "video?c=88",
              "sfw",
              "video?c=59",
              "video?c=91",
              "video?c=492",
              "video?c=92",
              "video?c=69",
              "video?c=444",
              "video?c=542",
              "video?c=33",
              "video?c=562",
              "video?c=23",
              "transgender",
              "video?c=138",
              "video?c=482",
              "video?c=139",
              "video?c=43",
              "vr",
              "video?c=61"
            ],
            "type": "string",
            "description": "Select a category to filter results",
            "default": "all"
          },
          "search": {
            "title": "🔍 Search",
            "type": "string",
            "description": "Enter a keyword to search for specific content (e.g., 'Lana Rhoades', 'Kriss Kiss', etc)"
          },
          "startPage": {
            "title": "📄 Start Page",
            "minimum": 0,
            "type": "integer",
            "description": "Page number to start scraping from. Use 0 for homepage (default), 1 for first paginated page, etc.",
            "default": 0
          },
          "endPage": {
            "title": "📄 End Page",
            "minimum": 0,
            "type": "integer",
            "description": "Page number to end scraping at (0 means no limit). Note: 0 is homepage, 1 is first paginated page, etc.",
            "default": 0
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of items to extract",
            "default": 50
          },
          "nameDataset": {
            "title": "Name Dataset",
            "type": "boolean",
            "description": "Whether to name the dataset",
            "default": false
          },
          "useRandomDelays": {
            "title": "Use Random Delays",
            "type": "boolean",
            "description": "Add random delays between requests to mimic human behavior",
            "default": false
          },
          "maxRequestsPerCrawl": {
            "title": "Max Requests Per Crawl",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of requests the crawler will make",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}