# XVideos Search Rank & Keyword Extractor (`xpd26/xvideos-search-rank-keyword-extractor`) Actor

Fast, lightweight scraper to extract search rankings, video metadata, view counts, ratings, and uploader info for target keywords on XVideos. Ideal for content creators, SEO tag research, and competitor analysis. Export to JSON, CSV, or Excel.

- **URL**: https://apify.com/xpd26/xvideos-search-rank-keyword-extractor.md
- **Developed by:** [XPD](https://apify.com/xpd26) (community)
- **Categories:** MCP servers, Agents, SEO tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## 🔍 XVideos Search Rank & Keyword Extractor

Fast, cost-effective, and lightweight Apify Actor designed to extract video search rankings, metadata, view counts, ratings, and uploader details for given search terms on [XVideos](https://www.xvideos.com).

Built on **CheerioCrawler**, this tool bypasses heavy headless browsers—delivering results **up to 10x faster** while using minimal compute memory.

***

### ⚡ Features

- **Search Rank Tracking:** Collect video ranking positions ($1, 2, 3 \dots$) for specific search terms.
- **Rich Metadata:** Extract video title, URL, duration, view count, rating percentage, uploader/channel name, and thumbnail link.
- **Multi-Keyword Support:** Run batches of search keywords in a single execution.
- **Custom Pagination:** Set exact maximum video limits per search term.
- **Export-Ready Data:** Download output in JSON, CSV, Excel, XML, or integrate directly via API and Webhooks.

***

### 🎯 Use Cases

- **SEO & Tag Research:** Analyze high-performing titles and keyword demand to optimize content discoverability.
- **Competitor Intelligence:** Monitor search visibility for key terms over time and benchmark against competitor uploaders.
- **Trend & Market Analysis:** Track overall view trends and engagement metrics across specific video categories.

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| `searchKeywords` | Array | Yes | `["fitness"]` | List of search phrases or keywords to scrape search rank results for. |
| `maxResultsPerKeyword` | Integer | No | `20` | Max number of video rankings to extract per search keyword. |
| `proxyConfiguration` | Object | No | `{ "useApifyProxy": true }` | Proxy settings to bypass IP rate limits. |

#### Example Input JSON

````json
{
  "searchKeywords": ["fitness", "vlog"],
  "maxResultsPerKeyword": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}

#### Example Output JSON
[
  {
    "searchKeyword": "fitness",
    "rankPosition": 1,
    "title": "Morning Routine & Workout Session",
    "url": "[https://www.xvideos.com/video1234567/morning_routine](https://www.xvideos.com/video1234567/morning_routine)",
    "duration": "12 min",
    "views": "1.2M",
    "rating": "96%",
    "uploader": "FitnessStudio",
    "thumbnailUrl": "[https://static-thumbs.xvideos.com/thumbs123/img.jpg](https://static-thumbs.xvideos.com/thumbs123/img.jpg)",
    "scrapedAt": "2026-08-01T15:30:00.000Z"
  }
]

# Actor input Schema

## `searchKeywords` (type: `array`):

List of keywords or search phrases to scrape search rank results for.
## `maxResultsPerKeyword` (type: `integer`):

Maximum number of video rank results to collect per keyword.
## `proxyConfiguration` (type: `object`):

Proxy settings to bypass IP rate limits and geo-restrictions.

## Actor input object example

```json
{
  "searchKeywords": [
    "fitness"
  ],
  "maxResultsPerKeyword": 100
}
````

# 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 = {
    "searchKeywords": [
        "fitness"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xpd26/xvideos-search-rank-keyword-extractor").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 = { "searchKeywords": ["fitness"] }

# Run the Actor and wait for it to finish
run = client.actor("xpd26/xvideos-search-rank-keyword-extractor").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 '{
  "searchKeywords": [
    "fitness"
  ]
}' |
apify call xpd26/xvideos-search-rank-keyword-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xpd26/xvideos-search-rank-keyword-extractor"
        }
    }
}

```

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/4rlFjLFqOrXbqdMAS/builds/ESR0QJFerWmcjL8uD/openapi.json
