Huya Video Scraper avatar

Huya Video Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Huya Video Scraper

Huya Video Scraper

Extract detailed data about videos from the Huya (虎牙直播) platform. Scrape video details using direct video URLs, profile URLs, listing URLs, or search terms, allowing you to gather comprehensive data on a wide range of videos available on Huya.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Nataniel Santos

Nataniel Santos

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Categories

Share

Extract detailed information about videos from the Huya platform. This Apify Actor can scrape video details using direct video URLs, profile URLs, listing URLs, or search terms, allowing you to gather comprehensive data on a wide range of videos available on Huya.

✨ Features

  • 🔎 Scrape by search terms, profiles, listings, or video URLs
  • ⚡ Fast and reliable scraping
  • 🧑‍💻 Perfect for non-technical users
  • 🔒 No need for authentication
  • 🔄 Automatically handles retries for failed requests
  • 📦 Outputs data in JSON format for easy integration with other tools
  • 🎬 Supports multiple video quality levels (360P, 720P, 1080P)

🎯 Who Is This For?

  • Content creators and marketers looking to analyze Huya video content
  • Researchers studying trends and patterns in online video content
  • Developers needing structured data from Huya for their applications
  • Anyone interested in gathering insights from Huya's vast video library

⬇️ Input Options

🔗 URLs to Scrape

  • urls (optional) - List of URLs to scrape. Can be:
    • Video URLs: https://www.huya.com/video/play/1115457256.html
    • Profile URLs: https://www.huya.com/video/u/1199568157971
    • Listing URLs: https://www.huya.com/video/cat/51

🔍 Search Terms

  • searchTerms (optional) - Search terms to query on Huya. The Actor will search for each term and scrape results until it reaches the maxItemsPerUrl limit.

⚙️ Scraping Options

  • maxItemsPerUrl (optional) - Maximum number of items to scrape per profile URL, listing URL, or search term. Default is 100.
  • profileSortBy (optional) - Sorting order for profile videos. Options: latest, popular. Default is latest.

💡 Input Examples

🔗 Scrape by Video URL

{
"urls": [
"https://www.huya.com/video/play/1115457256.html"
]
}

🔗 Scrape by Profile URL

{
"urls": [
"https://www.huya.com/video/u/1199568157971"
],
"maxItemsPerUrl": 50,
"profileSortBy": "popular"
}

🔗 Scrape by Listing URL

{
"urls": [
"https://www.huya.com/video/cat/51"
],
"maxItemsPerUrl": 25
}

🔍 Scrape by Search Terms

{
"searchTerms": [
"dance",
"music",
"gaming"
],
"maxItemsPerUrl": 50
}

📤 Output Format

The scraper returns detailed video information including metadata, media properties, and engagement metrics.

Output Fields

  • id - Unique identifier for the video
  • uid - User ID of the video uploader
  • title - Title of the video
  • description - Description of the video
  • url - URL of the video on Huya
  • coverUrl - URL of the video's cover/thumbnail image
  • authorName - Display name of the uploader
  • authorAvatarUrl - URL of the uploader's avatar image
  • category - Category of the video (e.g., "主播舞蹈", "Dance")
  • duration - Duration of the video in seconds
  • uploadTime - Timestamp of when the video was uploaded
  • playCount - Total number of plays/views
  • commentCount - Number of comments on the video
  • favorCount - Number of times the video was favorited
  • browseCount - Number of times the video was viewed in listings
  • shareCount - Number of times the video was shared
  • channel - Video channel/category
  • playInfo - Array of available video quality options with URLs. Available quality definitions: 360P, 720P, 1080P
  • position - Position of the video in the listing or search results

🗂️ Output Example

{
"id": 1120061472,
"uid": 1199665265343,
"title": "屁股摇",
"description": "舞蹈",
"url": "https://www.huya.com/video/play/1120061472.html",
"coverUrl": "https://v-huya-img2.msstatic.com/transfer/2631/1120061472/104.jpg",
"authorName": "纯欲少女风",
"authorAvatarUrl": "https://huyaimg.msstatic.com/avatar/1054/d9/9b6f60586ab819752a0458955a03d1_180_135.jpg",
"category": "主播舞蹈",
"duration": 9,
"uploadTime": "2026-07-30 14:33:49",
"playCount": 307870,
"commentCount": 33,
"favorCount": 1745,
"browseCount": 2863,
"shareCount": 53,
"channel": "Dance",
"playInfo": [
{
"size": 1575479,
"width": 576,
"height": 1098,
"definition": "1080P",
"url": "http://videotx-platform.cdn.huya.com/leaf/1048585/...",
"m3u8Url": "http://videotx-platform.cdn.huya.com/leaf/1048585/..."
},
{
"size": 1575479,
"width": 576,
"height": 1098,
"definition": "720P",
"url": "http://videotx-platform.cdn.huya.com/leaf/1048585/...",
"m3u8Url": "http://videotx-platform.cdn.huya.com/leaf/1048585/..."
},
{
"size": 565327,
"width": 336,
"height": 640,
"definition": "360P",
"url": "http://videotx-platform.cdn.huya.com/leaf/1048585/...",
"m3u8Url": "http://videotx-platform.cdn.huya.com/leaf/1048585/..."
}
],
"position": 1
}

💲 How much will scraping Youku cost you?

The pricing changes according to your Apify plan.

PlanPricing
Free$5/1000 videos
Starter$3.5/1000 videos
Scale$3/1000 videos
Business$2.8/1000 videos

💡 Note: As a free user, you are limited to extracting a maximum of 50 items per run and only the first 5 URLs will be processed.

🧩 Integrations and Huya Video Scraper

Huya Video Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Huya Video Scraper successfully finishes a run.

🔌 Using Huya Video Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

💬 Giving feedback

We're always working on improving the performance of our Actors. So if you've got any technical feedback for Huya Video Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console. 📧 Email: nathan.santos159@hotmail.com