{"id":18076858,"url":"https://github.com/forrestknight/youtube-data-first-24","last_synced_at":"2025-08-19T17:33:38.618Z","repository":{"id":183744345,"uuid":"670699568","full_name":"ForrestKnight/youtube-data-first-24","owner":"ForrestKnight","description":"Made for YouTube channel owners to analyze the view count in the first 24 hours of their videos using the YouTube Data API v3 and YouTube Analytics API.","archived":false,"fork":false,"pushed_at":"2023-07-25T16:22:57.000Z","size":2,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-31T11:12:34.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/ForrestKnight.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}},"created_at":"2023-07-25T16:21:30.000Z","updated_at":"2024-07-18T02:31:39.000Z","dependencies_parsed_at":"2023-07-25T16:51:37.955Z","dependency_job_id":null,"html_url":"https://github.com/ForrestKnight/youtube-data-first-24","commit_stats":null,"previous_names":["forrestknight/youtube-data-first-24"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForrestKnight%2Fyoutube-data-first-24","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForrestKnight%2Fyoutube-data-first-24/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForrestKnight%2Fyoutube-data-first-24/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForrestKnight%2Fyoutube-data-first-24/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForrestKnight","download_url":"https://codeload.github.com/ForrestKnight/youtube-data-first-24/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230367722,"owners_count":18215321,"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","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":[],"created_at":"2024-10-31T11:11:30.280Z","updated_at":"2024-12-19T02:42:03.607Z","avatar_url":"https://github.com/ForrestKnight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Video Analytics Script\n\nThis script utilizes YouTube's Data and Analytics APIs to retrieve video data from a specified YouTube channel and analyze the view count for the first 24 hours after each video's upload.\n\n## Prerequisites\n\n- Python 3.x\n- `google-auth-oauthlib` Python library\n- `googleapiclient` Python library\n- A `client_secret.json` file containing your YouTube API credentials\n\n## Setup\n\n1. Clone this repository:\n```\ngit clone \u003crepo-link\u003e\n```\n2. Install the necessary Python libraries:\n```\npip install --upgrade google-auth-oauthlib google-auth-httplib2 google-api-python-client\n```\n3. Place your `client_secret.json` in the root of the project directory.\n\n## Usage\n\n1. In the script, replace the `channel_id` variable with your YouTube channel ID.\n\n2. Run the script:\n```\npython \u003cscript-name.py\u003e\n```\n3. The script will fetch the video data and print out a sorted list of your videos, along with their view counts for the first 24 hours.\n\nPlease note that while the script currently analyzes the first 24-hour view count, you can easily modify it to calculate views for the first 30 days or 90 days by uncommenting the respective sections in the code.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforrestknight%2Fyoutube-data-first-24","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforrestknight%2Fyoutube-data-first-24","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforrestknight%2Fyoutube-data-first-24/lists"}