{"id":31514533,"url":"https://github.com/cofoundry-cms/cofoundry.plugins.youtube","last_synced_at":"2025-10-03T02:27:03.669Z","repository":{"id":47583778,"uuid":"127158242","full_name":"cofoundry-cms/Cofoundry.Plugins.YouTube","owner":"cofoundry-cms","description":"Cofoundry plugin that adds integration with the YouTube video service. ","archived":false,"fork":false,"pushed_at":"2025-01-04T10:38:22.000Z","size":539,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T12:08:08.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cofoundry-cms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-28T15:08:28.000Z","updated_at":"2025-01-04T10:38:26.000Z","dependencies_parsed_at":"2022-08-30T21:11:19.122Z","dependency_job_id":null,"html_url":"https://github.com/cofoundry-cms/Cofoundry.Plugins.YouTube","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/cofoundry-cms/Cofoundry.Plugins.YouTube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofoundry-cms%2FCofoundry.Plugins.YouTube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofoundry-cms%2FCofoundry.Plugins.YouTube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofoundry-cms%2FCofoundry.Plugins.YouTube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofoundry-cms%2FCofoundry.Plugins.YouTube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cofoundry-cms","download_url":"https://codeload.github.com/cofoundry-cms/Cofoundry.Plugins.YouTube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofoundry-cms%2FCofoundry.Plugins.YouTube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278100262,"owners_count":25929827,"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-03T02:00:06.070Z","response_time":53,"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":[],"created_at":"2025-10-03T02:27:02.052Z","updated_at":"2025-10-03T02:27:03.660Z","avatar_url":"https://github.com/cofoundry-cms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cofoundry.Plugins.YouTube\n\n[![Build status](https://ci.appveyor.com/api/projects/status/e6m2qhk4rth6t1o4?svg=true)](https://ci.appveyor.com/project/Cofoundry/cofoundry-plugins-youtube)\n[![NuGet](https://img.shields.io/nuget/v/Cofoundry.Plugins.YouTube.svg)](https://www.nuget.org/packages/Cofoundry.Plugins.YouTube/)\n\n\nThis library is a plugin for [Cofoundry](https://www.cofoundry.org/). For more information on getting started with Cofoundry check out the [Cofoundry repository](https://github.com/cofoundry-cms/cofoundry).\n\n## Overview\n\nThis plugin adds a single data attribute `[YouTube]` that can be used to markup a property of type `YouTubeVideo`. This will show as a YouTube Video picker in the admin UI.\n\n## API Data\n\nThe YouTube api requires [an api key](https://developers.google.com/youtube/v3/getting-started), so by default only the `YouTubeVideo.Id` property is returned in the data model. This might be sufficient for most purposes (e.g. using oEmbed), but if you want to pull in more data such as the video title, description or thumbnail image then you'll need to add an api key to your configuration settings:\n\n```js\n{\n  \"Cofoundry\": {\n    \"Plugins\": {\n      \"YouTube:ApiKey\": \"TODO:AddApiKey\"\n    }\n  }\n}\n```\nOnce you've added this api key, the UI editor will automatically start pulling in extra data into your `YouTubeVideo` model.\n\n## Example\n\nYou can find a full example project named **YouTubeExample** in the solution in this repository, which contains a *YouTubeVideo* page block type. \n\n**Example Data Model**\n\n```csharp\nusing Cofoundry.Domain;\nusing Cofoundry.Plugins.YouTube.Domain;\nusing System.ComponentModel.DataAnnotations;\n\npublic class YouTubeVideoDataModel : IPageBlockTypeDataModel, IPageBlockTypeDisplayModel\n{\n    [Required]\n    [YouTube]\n    public YouTubeVideo Video { get; set; }\n}\n\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofoundry-cms%2Fcofoundry.plugins.youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcofoundry-cms%2Fcofoundry.plugins.youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofoundry-cms%2Fcofoundry.plugins.youtube/lists"}