{"id":34836937,"url":"https://github.com/rodrigogs/xvideos","last_synced_at":"2026-04-26T23:00:37.314Z","repository":{"id":40281080,"uuid":"138671028","full_name":"rodrigogs/xvideos","owner":"rodrigogs","description":"xvideos API library","archived":false,"fork":false,"pushed_at":"2026-04-26T18:07:46.000Z","size":333,"stargazers_count":255,"open_issues_count":12,"forks_count":69,"subscribers_count":24,"default_branch":"master","last_synced_at":"2026-04-26T18:18:46.158Z","etag":null,"topics":["api","crawler","library","nodejs","npm","porn","scrapper","xvideos"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodrigogs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-06-26T01:55:30.000Z","updated_at":"2026-04-25T14:40:21.000Z","dependencies_parsed_at":"2023-02-08T02:03:16.992Z","dependency_job_id":"a6fcf063-11b6-4897-82d9-f638d7be907d","html_url":"https://github.com/rodrigogs/xvideos","commit_stats":{"total_commits":43,"total_committers":4,"mean_commits":10.75,"dds":0.09302325581395354,"last_synced_commit":"a8255d82d562d4eea31bfd33681deb471d9aacdf"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/rodrigogs/xvideos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fxvideos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fxvideos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fxvideos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fxvideos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigogs","download_url":"https://codeload.github.com/rodrigogs/xvideos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fxvideos/sbom","scorecard":{"id":782326,"data":{"date":"2025-08-11","repo":{"name":"github.com/rodrigogs/xvideos","commit":"f4d41b64fb121febeae7631b2f9c61fe5ff87ece"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 2/17 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/rodrigogs/xvideos/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/rodrigogs/xvideos/node.js.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"27 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T05:12:14.188Z","repository_id":40281080,"created_at":"2025-08-23T05:12:14.188Z","updated_at":"2025-08-23T05:12:14.188Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","crawler","library","nodejs","npm","porn","scrapper","xvideos"],"created_at":"2025-12-25T16:06:23.940Z","updated_at":"2026-04-26T23:00:37.301Z","avatar_url":"https://github.com/rodrigogs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xvideos\n\n[![CI](https://github.com/rodrigogs/xvideos/actions/workflows/node.js.yml/badge.svg)](https://github.com/rodrigogs/xvideos/actions/workflows/node.js.yml)\n[![codecov](https://codecov.io/gh/rodrigogs/xvideos/graph/badge.svg)](https://codecov.io/gh/rodrigogs/xvideos)\n[![CodeQL](https://github.com/rodrigogs/xvideos/actions/workflows/codeql.yml/badge.svg)](https://github.com/rodrigogs/xvideos/actions/workflows/codeql.yml)\n\nA [Node.js](https://nodejs.org) library for the [xvideos.com](https://www.xvideos.com) API.\n\nRequires Node.js 20+.\n\n## Installation\n\n```bash\n$ npm install @rodrigogs/xvideos\n```\n\n## Usage\n\n```javascript\nimport xvideos from '@rodrigogs/xvideos';\n```\n\n```javascript\nconst xvideos = require('@rodrigogs/xvideos');\n\n(async () =\u003e {\n  // Retrieve fresh videos from the first page\n  const fresh = await xvideos.videos.fresh({ page: 1 });\n  // Log details of the retrieved videos\n  console.log(fresh.videos); // Array of video objects with properties like url, videoId, title, duration, durationSeconds, thumbnailUrl, profile, watchCount\n  console.log(fresh.pagination.page); // Current page number\n  console.log(fresh.pagination.pages); // Array of available page numbers\n  console.log(fresh.hasNext()); // Check if there is a next page\n  console.log(fresh.hasPrevious()); // Check if there is a previous page\n\n  // Retrieve the next page of fresh videos\n  const nextPage = await fresh.next();\n  // Log details of the next page\n  console.log(nextPage.pagination.page); // Updated current page number\n  console.log(nextPage.hasNext()); // Check if the next page exists\n  console.log(nextPage.hasPrevious()); // Check if the previous page exists\n\n  // Retrieve the previous page of fresh videos\n  const previousPage = await fresh.previous();\n  // Log details of the previous page\n  console.log(previousPage.pagination.page); // Updated current page number\n  console.log(previousPage.hasNext()); // Check if the next page exists\n  console.log(previousPage.hasPrevious()); // Check if the previous page exists\n\n  // Retrieve detailed information about a specific video\n  const detail = await xvideos.videos.details(fresh.videos[0]);\n  // Log details of the specific video\n  console.log(detail); // Detailed video object with properties like title, videoId, duration, durationSeconds, thumbnailUrls, watchCount, videoType, files, uploadDate, tags, categories\n\n  // Retrieve many detail pages with explicit crawl controls\n  const batch = await xvideos.videos.detailsMany(fresh.videos.slice(0, 3), {\n    concurrency: 2,\n    retries: 1,\n    minDelayMs: 250,\n  });\n  console.log(batch.successes); // Successful detail payloads in input order\n  console.log(batch.failures); // Failed inputs with their error\n})();\n```\n\n## Development\n\n```bash\nnpm run build\nnpm run lint\nnpm run format\nnpm run test:unit\nnpm run test:integration\nnpm run coverage\nnpm test\n```\n\n## Migration Notes\n\n### Version 3.1 richer list results and crawl ergonomics\n\nThis release is additive:\n\n- list items now include `durationSeconds` and `thumbnailUrl`\n- `videos.detailsMany()` adds ordered batch detail fetching with `concurrency`, `retries`, `retryDelayMs`, and `minDelayMs`\n\n### Version 3.0 field normalization\n\nSome fields were normalized to remove redundant data while keeping all information available:\n\n| Previous field | New field | Notes |\n|---|---|---|\n| `videos[].path` | `videos[].videoId` | Use `video.url` if you need full link, or rebuild path with `/${video.videoId}` when required. |\n| `videos[].views` | `videos[].watchCount` | Numeric form for sorting/filtering. |\n| `details.image` | `details.thumbnailUrls[0]` | Primary thumbnail remains available as first item. |\n| `details.views` | `details.watchCount` | Numeric form for analytics and ranking. |\n\n### New fields added\n\n- `videos[].durationSeconds`\n- `videos[].thumbnailUrl`\n\n- `details.videoId`\n- `details.durationSeconds`\n- `details.thumbnailUrls`\n- `details.watchCount`\n- `details.voteCount`\n- `details.ratingPercent`\n- `details.uploadDate`\n- `details.description`\n- `details.contentUrl`\n- `details.tags`\n- `details.categories`\n\nThese changes keep feature parity and add richer metadata from structured page data.\n\n## API\n\n### Retrieve [Dashboard Videos](https://www.xvideos.com)\n\n```javascript\n// Retrieve dashboard videos from the first page\nconst dashboardList = await xvideos.videos.dashboard({ page: 1 });\n\n// Check if there is a next page of results\nconsole.log(dashboardList.hasNext()); // Outputs: true or false\n\n// Check if there is a previous page of results\nconsole.log(dashboardList.hasPrevious()); // Outputs: true or false\n\n// Refresh the current page of results to get updated data\nconst refreshedVideos = await dashboardList.refresh();\n\n// Retrieve the next page of dashboard videos if available\nconst nextVideos = await dashboardList.next();\n\n// Retrieve the previous page of dashboard videos if available\nconst previousVideos = await dashboardList.previous();\n```\n\n### Retrieve [Fresh Videos](https://www.xvideos.com/new/1)\n\n```javascript\n// Retrieve fresh videos from the first page\nconst freshList = await xvideos.videos.fresh({ page: 1 });\n\n// Check if there is a next page of results\nconsole.log(freshList.hasNext()); // Outputs: true or false\n\n// Check if there is a previous page of results\nconsole.log(freshList.hasPrevious()); // Outputs: true or false\n\n// Refresh the current page of results to get updated data\nconst refreshedVideos = await freshList.refresh();\n\n// Retrieve the next page of fresh videos if available\nconst nextVideos = await freshList.next();\n\n// Retrieve the previous page of fresh videos if available\nconst previousVideos = await freshList.previous();\n```\n\n### Retrieve [Best Videos](https://www.xvideos.com/best)\n\n```javascript\n// Retrieve best videos for a specific year and month, starting from the first page\nconst bestList = await xvideos.videos.best({ year: '2018', month: '02', page: 1 });\n\n// Check if there is a next page of results\nconsole.log(bestList.hasNext()); // Outputs: true or false\n\n// Check if there is a previous page of results\nconsole.log(bestList.hasPrevious()); // Outputs: true or false\n\n// Refresh the current page of results to get updated data\nconst refreshedVideos = await bestList.refresh();\n\n// Retrieve the next page of best videos if available\nconst nextVideos = await bestList.next();\n\n// Retrieve the previous page of best videos if available\nconst previousVideos = await bestList.previous();\n```\n\n### Retrieve [Verified Videos](https://www.xvideos.com/verified/videos)\n\n```javascript\n// Retrieve verified videos from the first page\nconst verifiedList = await xvideos.videos.verified({ page: 1 });\n\n// Check if there is a next page of results\nconsole.log(verifiedList.hasNext()); // Outputs: true or false\n\n// Check if there is a previous page of results\nconsole.log(verifiedList.hasPrevious()); // Outputs: true or false\n\n// Refresh the current page of results to get updated data\nconst refreshedVideos = await verifiedList.refresh();\n\n// Retrieve the next page of verified videos if available\nconst nextVideos = await verifiedList.next();\n\n// Retrieve the previous page of verified videos if available\nconst previousVideos = await verifiedList.previous();\n```\n\n### Retrieve [Video Details](https://www.xvideos.com/video36638661/chaturbate_lulacum69_30-05-2018)\n\n```javascript\n// Retrieve detailed information about a specific video using its URL\nconst details = await xvideos.videos.details({ url: 'https://www.xvideos.com/video36638661/chaturbate_lulacum69_30-05-2018' });\n\n// Log detailed information about the video\nconsole.log(details); // Detailed video object with properties like title, videoId, duration, durationSeconds, thumbnailUrls, watchCount, videoType, files, uploadDate, description, contentUrl, tags, categories, voteCount, ratingPercent\n```\n\n### Retrieve Many Video Details\n\n```javascript\nconst batch = await xvideos.videos.detailsMany(\n  [\n    { url: 'https://www.xvideos.com/video123/example' },\n    { url: 'https://www.xvideos.com/video456/example' },\n  ],\n  {\n    concurrency: 3,\n    retries: 1,\n    retryDelayMs: 250,\n    minDelayMs: 500,\n  },\n);\n\nconsole.log(batch.items); // One entry per input, preserving order\nconsole.log(batch.successes); // Successful detail payloads only\nconsole.log(batch.failures); // Failed requests with input + error\n```\n\n`detailsMany()` is intended for enrichment and crawling flows where you want explicit control over throughput and retry behavior without making list methods heavy by default.\n\n### Filter [Videos](https://www.xvideos.com/?k=threesome)\n\n```javascript\n// Search for videos using a keyword, and optionally specify a page number\nconst videos = await xvideos.videos.search({ k: 'threesome' });\n// Example with a specific page number\n// const videos = await xvideos.videos.search({ k: 'public', page: 5 });\n\n// Check if there is a next page of results\nconsole.log(videos.hasNext()); // Outputs: true or false\n\n// Check if there is a previous page of results\nconsole.log(videos.hasPrevious()); // Outputs: true or false\n\n// Refresh the current page of results to get updated data\nconst refreshedVideos = await videos.refresh();\n\n// Retrieve the next page of videos if available\nconst nextVideos = await videos.next();\n\n// Retrieve the previous page of videos if available\nconst previousVideos = await videos.previous();\n\n// Search for videos with specific parameters\nconst videos = await xvideos.videos.search({\n  page: 2,\n  k: 'threesome',\n  sort: 'rating',\n  datef: 'week',\n  durf: '3-10min',\n  quality: 'hd'\n});\n\n// Log the search results\nconsole.log(videos); // Array of video objects with properties based on the search parameters\n```\n\n#### Params explanation\n\n| Parameter | Default        | Options                                                                                  |\n|-----------|----------------|------------------------------------------------------------------------------------------|\n| `page`    | `1`            | (any positive integer)                                                                   |\n| `k`       | `\"\"`           | (any search keyword)                                                                     |\n| `sort`    | `\"relevance\"`  | `\"uploaddate\"`, `\"rating\"`, `\"length\"`, `\"views\"`, `\"random\"`                            |\n| `datef`   | `\"all\"`        | `\"today\"`, `\"week\"`, `\"month\"`, `\"3month\"`, `\"6month\"`, `\"all\"`                         |\n| `durf`    | `\"allduration\"`| `\"1-3min\"`, `\"3-10min\"`, `\"10min_more\"`, `\"10-20min\"`, `\"20min_more\"`, `\"allduration\"` |\n| `quality` | `\"all\"`        | `\"hd\"`, `\"1080P\"`, `\"all\"`                                                                |\n\n\n\n---\n\n### License\n[Licence](https://github.com/rodrigogs/xvideos/blob/master/LICENSE) © Rodrigo Gomes da Silva\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fxvideos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigogs%2Fxvideos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fxvideos/lists"}