{"id":18276654,"url":"https://github.com/jellyfin/tmdblib","last_synced_at":"2025-05-15T15:03:52.663Z","repository":{"id":6913975,"uuid":"8164489","full_name":"jellyfin/TMDbLib","owner":"jellyfin","description":"C#.Net library for TheMovieDB","archived":false,"fork":false,"pushed_at":"2025-05-02T08:59:44.000Z","size":5861,"stargazers_count":374,"open_issues_count":30,"forks_count":133,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-05-06T23:42:04.158Z","etag":null,"topics":["movies","themoviedb","tmdb"],"latest_commit_sha":null,"homepage":"","language":"C#","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/jellyfin.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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},"funding":{"open_collective":"jellyfin"}},"created_at":"2013-02-12T18:30:34.000Z","updated_at":"2025-04-26T19:54:06.000Z","dependencies_parsed_at":"2024-05-28T14:31:51.988Z","dependency_job_id":"b3b76ee3-d58b-4355-a132-5664953fee6e","html_url":"https://github.com/jellyfin/TMDbLib","commit_stats":{"total_commits":828,"total_committers":55,"mean_commits":"15.054545454545455","dds":"0.33333333333333337","last_synced_commit":"87f99bdaa71108f3c5ad7520f44215b4e35a0f88"},"previous_names":["jellyfin/tmdblib","lordmike/tmdblib"],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellyfin%2FTMDbLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellyfin%2FTMDbLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellyfin%2FTMDbLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellyfin%2FTMDbLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellyfin","download_url":"https://codeload.github.com/jellyfin/TMDbLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"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":["movies","themoviedb","tmdb"],"created_at":"2024-11-05T12:16:42.154Z","updated_at":"2025-05-15T15:03:52.583Z","avatar_url":"https://github.com/jellyfin.png","language":"C#","funding_links":["https://opencollective.com/jellyfin"],"categories":[],"sub_categories":[],"readme":"TMDbLib [![Generic Build](https://github.com/jellyfin/TMDbLib/actions/workflows/dotnet.yml/badge.svg)](https://github.com/jellyfin/TMDbLib/actions/workflows/dotnet.yml) [![NuGet](https://img.shields.io/nuget/v/Tmdblib.svg)](https://www.nuget.org/packages/Tmdblib) [![GHPackages](https://img.shields.io/badge/package-alpha-green)](https://github.com/jellyfin/TMDbLib/pkgs/nuget/TMDbLib)\n=======\n\nA near-complete wrapper for v3 of TMDb's API (TheMovieDb - https://www.themoviedb.org/).\n\n## Using alpha packages\nAll commits to master produce an Alpha package that can be [found here](https://github.com/jellyfin/TMDbLib/pkgs/nuget/TMDbLib).\n\nIndex\n---------\n\n- [Nuget](#nuget)\n- [Documentation](#documentation)\n- [Examples](#examples)\n- [Tips](#tips)\n\nDocumentation\n-------- \n\nMost of the library is self-explaining, and closely follows the possibilities at the official TMDb documentation site: [developers.themoviedb.org](https://developers.themoviedb.org/3/getting-started).\n\nExamples\n-------- \n\nSimple example, getting the basic info for \"A good day to die hard\".\n\n```csharp\nTMDbClient client = new TMDbClient(\"APIKey\");\nMovie movie = client.GetMovieAsync(47964).Result;\n\nConsole.WriteLine($\"Movie name: {movie.Title}\");\n```\n\nUsing the extra features of TMDb, we can fetch more info in one go (here we fetch casts as well as trailers):\n\n```csharp\nTMDbClient client = new TMDbClient(\"APIKey\");\nMovie movie = await client.GetMovieAsync(47964, MovieMethods.Credits | MovieMethods.Videos);\n\nConsole.WriteLine($\"Movie title: {movie.Title}\");\nforeach (Cast cast in movie.Credits.Cast)\n    Console.WriteLine($\"{cast.Name} - {cast.Character}\");\n\nConsole.WriteLine();\nforeach (Video video in movie.Videos.Results)\n    Console.WriteLine($\"Trailer: {video.Type} ({video.Site}), {video.Name}\");\n```\n\nIt is likewise simple to search for people or movies, for example here we search for \"007\". This yields basically every James Bond film ever made:\n\n```csharp\nTMDbClient client = new TMDbClient(\"APIKey\");\nSearchContainer\u003cSearchMovie\u003e results = client.SearchMovieAsync(\"007\").Result;\n\nConsole.WriteLine($\"Got {results.Results.Count:N0} of {results.TotalResults:N0} results\");\nforeach (SearchMovie result in results.Results)\n    Console.WriteLine(result.Title);\n```\n\nHowever, another way to get all James Bond movies, is to use the collection-approach. TMDb makes collections for series of movies, such as Die Hard and James Bond. I know there is one, so I will show how to search for the collection, and then list all movies in it:\n\n```csharp\nTMDbClient client = new TMDbClient(\"APIKey\");\nSearchContainer\u003cSearchCollection\u003e collectons = client.SearchCollectionAsync(\"James Bond\").Result;\nConsole.WriteLine($\"Got {collectons.Results.Count:N0} collections\");\n\nCollection jamesBonds = client.GetCollectionAsync(collectons.Results.First().Id).Result;\nConsole.WriteLine($\"Collection: {jamesBonds.Name}\");\nConsole.WriteLine();\n\nConsole.WriteLine($\"Got {jamesBonds.Parts.Count:N0} James Bond Movies\");\nforeach (SearchMovie part in jamesBonds.Parts)\n      Console.WriteLine(part.Title);\n```\n\nTips\n---------\n\n* All methods are `async` and awaitable\n* Most methods are very straightforward, and do as they are named, `GetMovie`, `GetPerson` etc.\n* Almost all enums are of the `[Flags]` type. This means you can combine them: `MovieMethods.Casts | MovieMethods.Trailers`\n* TMDb are big fans of serving as little as possible, so most properties on primary classes like `Movie` are null, until you request the extra data using the enums like above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellyfin%2Ftmdblib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellyfin%2Ftmdblib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellyfin%2Ftmdblib/lists"}