{"id":30112571,"url":"https://github.com/brian404/pornhub-api","last_synced_at":"2026-05-01T18:32:28.061Z","repository":{"id":303078530,"uuid":"951127516","full_name":"brian404/pornhub-api","owner":"brian404","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-01T19:27:55.000Z","size":99,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-02T04:37:15.723Z","etag":null,"topics":["expressjs","json","nodejs","nsfw","pornhub","rest-api","unofficial-api"],"latest_commit_sha":null,"homepage":"https://civilian-hettie-techstar-7f0e18e1.koyeb.app/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brian404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-19T07:48:45.000Z","updated_at":"2026-04-01T19:27:58.000Z","dependencies_parsed_at":"2025-07-05T15:46:32.619Z","dependency_job_id":null,"html_url":"https://github.com/brian404/pornhub-api","commit_stats":null,"previous_names":["brian404/p-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brian404/pornhub-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian404%2Fpornhub-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian404%2Fpornhub-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian404%2Fpornhub-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian404%2Fpornhub-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brian404","download_url":"https://codeload.github.com/brian404/pornhub-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian404%2Fpornhub-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["expressjs","json","nodejs","nsfw","pornhub","rest-api","unofficial-api"],"created_at":"2025-08-10T06:48:08.022Z","updated_at":"2026-05-01T18:32:28.053Z","avatar_url":"https://github.com/brian404.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p-api\nUnofficial Pornhub API is a sleek Node.js RESTful solution that easily scrapes publicly available metadata from Pornhub.com and turns it into clean, structured JSON. It's great for videos, trending content, and more.\n\n## Requirements\n\n![Node.js](https://img.shields.io/badge/Node.js-16%2B%20%7C%2018%2B-brightgreen?logo=nodedotjs)\n\n## Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/brian404/p-api.git\n   cd p-api\n2. Install dependencies:\n\n    ```bash\n    npm i\n    ```\n\n3. Start the server:\n\n    ```bash\n    npm start\n    ```\n    ## Usage\nBy default, the API will be running at:\nhttp://localhost:3099/api/\n\nVisit /api/docs in your browser for full documentation.\n\n## Endpoints\n\nBase URL: `http://localhost:3099/api/`\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eMethod\u003c/th\u003e\n      \u003cth\u003eEndpoint Path\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: green;\"\u003e\u003cb\u003eGET\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eReturns a welcome message\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: green;\"\u003e\u003cb\u003eGET\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/trending\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eFetches trending video IDs\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: green;\"\u003e\u003cb\u003eGET\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/random\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eFetches a single random video ID from Pornhub’s video page\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: green;\"\u003e\u003cb\u003eGET\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/categories\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eLists all Pornhub categories with their names and IDs\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: green;\"\u003e\u003cb\u003eGET\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/studios\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eLists all Pornhub studios\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: green;\"\u003e\u003cb\u003eGET\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/video/:id\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eGets metadata for a specific video\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cspan style=\"color: orange;\"\u003e\u003cb\u003ePOST\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cspan style=\"color: dodgerblue;\"\u003e/status\u003c/span\u003e\u003c/td\u003e\n      \u003ctd\u003eReturns API status and uptime\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## Disclaimer\n\nThis project is not affiliated with Pornhub. It uses publicly available data for educational and non-commercial purposes only.  \nNo video content is hosted, and the author is not responsible for misuse.\n\n## Contributions\nContributions, ideas, and improvements are always welcome!  \nFeel free to open an issue, suggest a feature, or submit a pull request.\n## Demo\n\n[![Live API](https://img.shields.io/badge/Live%20API-online-brightgreen?style=flat-square\u0026logo=nodedotjs)](https://node-1-sync.obj3ct32.com:8443/api/docs)\n\nA live instance of the API is available here:  \n[https://node-1-sync.obj3ct32.com:8443/api/docs](https://node-1-sync.obj3ct32.com:8443/api/docs)\n\nThis endpoint provides full interactive documentation and allows you to test the API in real time.\n\nNote: This is a public, self-hosted demo intended for testing and development only.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian404%2Fpornhub-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrian404%2Fpornhub-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian404%2Fpornhub-api/lists"}