{"id":16975464,"url":"https://github.com/lreiner/yt-api-php","last_synced_at":"2026-04-15T07:32:35.044Z","repository":{"id":240733452,"uuid":"180410421","full_name":"lreiner/YT-API-PHP","owner":"lreiner","description":"PHP script to gain channel statistics and videos.  An alternative to the Youtube Data API. Free to use for everyone! 🤖","archived":false,"fork":false,"pushed_at":"2020-05-05T12:51:59.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T05:54:41.227Z","etag":null,"topics":["php","youtube","youtubeapi"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lreiner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"custom":["https://www.paypal.me/LukasReiner"]}},"created_at":"2019-04-09T16:43:30.000Z","updated_at":"2020-05-05T12:52:02.000Z","dependencies_parsed_at":"2024-05-20T18:51:21.951Z","dependency_job_id":null,"html_url":"https://github.com/lreiner/YT-API-PHP","commit_stats":null,"previous_names":["lreiner/yt-api-php"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lreiner/YT-API-PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreiner%2FYT-API-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreiner%2FYT-API-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreiner%2FYT-API-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreiner%2FYT-API-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lreiner","download_url":"https://codeload.github.com/lreiner/YT-API-PHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreiner%2FYT-API-PHP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280073295,"owners_count":26267112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"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":["php","youtube","youtubeapi"],"created_at":"2024-10-14T01:22:46.617Z","updated_at":"2025-10-20T09:53:13.544Z","avatar_url":"https://github.com/lreiner.png","language":"PHP","funding_links":["https://www.paypal.me/LukasReiner","https://www.paypal.me/LukasReiner/"],"categories":[],"sub_categories":[],"readme":"# Youtube Channel API for PHP\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\nPHP script to gain channel statistics in live time.  An alternative to the Youtube Data API. Free to use for everyone! 🤖 Youtube Data API has one common problem: You cant do live updates on channel statistics because they limit your Queries per day. This script solves this problem by extracting channel statistics in live time from there official youtube channel pages.\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## :warning: VERY IMPORTANT:warning:\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\nThis application is for private or educational purposes only. You should use the official Youtube Data API: https://developers.google.com/youtube/v3/.\nWe do not accept responsibility for banned accounts or penalties of any kind caused by the use of this script. We would like to point out that using this script violates the Terms and Conditions. By using the script, you automatically accept that you yourself are criminally responsible for yourself and you are aware that it violates the guidelines.\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## How does it work?\n\nJust put the files on your Http Server and call the script like this:\n```php\nhttp://\u003cserver-ip-or-address\u003e/get_channel_statistics.php?id=UC-lHJZR3Gqxm24_Vd_AJ5Yw\n```\n\nExample Output in JSON:\n```json\n[{\n  \"channelID\":\"UC-lHJZR3Gqxm24_Vd_AJ5Yw\",\n  \"viewCount\":\"21082625429\",\n  \"subscriberCount\":\"93689562\",\n  \"latestVideoID\":\"bRG6sy3VaWU\"\n}]\n```\n\n## Example Functions\n\n#### getChannelStatistics \n```php\n// @param channelid -\u003e Youtube Channel ID\n// @param counttype -\u003e Either \"viewcount\" or \"subcount\"\n// @return count -\u003e view or subcount as number\n\nYTChannel::getChannelStatistics(\u003cchannelid\u003e, \u003ccounttype\u003e)\n```\n\n#### getLatestVideo \n```php\n// @param channelid -\u003e Youtube Channel ID\n// @return videoID -\u003e Video ID of latest YT Video\n\nYTChannel::getLatestVideo(\u003cchannelid\u003e)\n```\n\n## Donation [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/LukasReiner/) \nIf this project help you reduce time to develop, you can give me a cup of coffee (or a Beer of course) :)\n\n[![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/LukasReiner/) \n\n## Git - Fork\n\n```\n$ git clone https://github.com/lreiner/YT-API-PHP\n```\nWhen you fork a project in order to propose changes to the original repository, you can configure Git to pull changes from the original, or upstream, repository into the local clone of your fork.\u003c/br \u003e\n[Click here to see how to keep a fork synched](https://help.github.com/articles/fork-a-repo/)\n\n## Releases\n\nToo see all published releases, please take a look at the [tags of this repository](https://github.com/lreiner/YT-API-PHP/tags).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flreiner%2Fyt-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flreiner%2Fyt-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flreiner%2Fyt-api-php/lists"}