{"id":32147087,"url":"https://github.com/igorcamilo/tmdb-swift","last_synced_at":"2026-02-23T04:33:01.474Z","repository":{"id":305118739,"uuid":"1020995224","full_name":"igorcamilo/tmdb-swift","owner":"igorcamilo","description":"Modern Swift client for The Movie Database (TMDB) API. Fetch movies, TV shows, and configuration data with pure Swift and multi-platform support.","archived":false,"fork":false,"pushed_at":"2025-08-13T19:53:56.000Z","size":199,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-14T16:40:24.537Z","etag":null,"topics":["api-client","async-await","codeql","concurrency","ios","macos","movies","swift","swift-package","tmdb","tv-shows","tvos","visionos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/igorcamilo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-16T17:58:37.000Z","updated_at":"2025-08-11T18:43:50.000Z","dependencies_parsed_at":"2025-08-11T19:20:03.135Z","dependency_job_id":"f85d4757-2e15-403e-9200-84ebff61c771","html_url":"https://github.com/igorcamilo/tmdb-swift","commit_stats":null,"previous_names":["igorcamilo/tmdb-swift"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/igorcamilo/tmdb-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorcamilo%2Ftmdb-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorcamilo%2Ftmdb-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorcamilo%2Ftmdb-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorcamilo%2Ftmdb-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorcamilo","download_url":"https://codeload.github.com/igorcamilo/tmdb-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorcamilo%2Ftmdb-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-client","async-await","codeql","concurrency","ios","macos","movies","swift","swift-package","tmdb","tv-shows","tvos","visionos","watchos"],"created_at":"2025-10-21T08:45:12.017Z","updated_at":"2026-02-23T04:33:01.452Z","avatar_url":"https://github.com/igorcamilo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# TMDB\n\n[![Swift](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Figorcamilo%2Ftmdb-swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/igorcamilo/tmdb-swift)\n[![Platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Figorcamilo%2Ftmdb-swift%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/igorcamilo/tmdb-swift)\n[![Unit tests](https://github.com/igorcamilo/tmdb-swift/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/igorcamilo/tmdb-swift/actions/workflows/unit-tests.yml)\n[![codecov](https://codecov.io/gh/igorcamilo/tmdb-swift/graph/badge.svg?token=UTNJA0Y5JS)](https://codecov.io/gh/igorcamilo/tmdb-swift)\n\nSwift client for [The Movie Database (TMDB) API](https://www.themoviedb.org/documentation/api), supporting movies, TV shows, and configuration endpoints. Built for modern Swift and concurrency.\n\n---\n\n## Features\n\n- Fetch movies and TV shows by popularity, rating, trending, and more\n- Retrieve similar movies/TV shows\n- Access TMDB configuration (image base URLs, sizes, etc.)\n- Codable, Sendable, and concurrency-friendly API\n- Supports iOS, macOS, tvOS, and watchOS\n- 100% Swift, no dependencies\n- Unit tested\n\n## Requirements\n\n- Swift 5.9+ on Apple platforms\n- Swift 6.0+ on Linux\n- iOS 13.0+, macOS 10.15+, tvOS 13.0+, watchOS 6.0+\n\n## Installation\n\nAdd the package to your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/igorcamilo/tmdb-swift.git\", from: \"0.1.0\")\n```\n\nOr use Xcode's Swift Package Manager integration.\n\n## Usage\n\n```swift\nimport TMDB\n\nlet client = Client(accessToken: \"YOUR_TMDB_ACCESS_TOKEN\")\n\n// Fetch popular movies\nlet page = try await client.movies(list: .popular)\nfor movie in page.results {\n    print(movie.title)\n}\n\n// Fetch trending TV shows\nlet tvPage = try await client.tvShows(list: .trending(.day))\nfor show in tvPage.results {\n    print(show.name)\n}\n\n// Fetch API configuration\nlet config = try await client.configuration()\nprint(config.images.baseURL)\n```\n\n## API Overview\n\n### Movies\n- `.nowPlaying` — In theatres\n- `.popular` — By popularity\n- `.topRated` — By rating\n- `.upcoming` — Coming soon\n- `.similar(Movie.ID)` — Similar movies\n- `.trending(TrendingTimeWindow)` — Trending\n\n### TV Shows\n- `.airingToday` — Airing today\n- `.onTheAir` — Next 7 days\n- `.popular` — By popularity\n- `.topRated` — By rating\n- `.similar(TVShow.ID)` — Similar shows\n- `.trending(TrendingTimeWindow)` — Trending\n\n### Configuration\n- `client.configuration()` — Get image base URLs, sizes, etc.\n\n## Testing\n\nRun all tests with:\n\n```sh\nswift test\n```\n\n## Code Style\n\n- 2-space indentation and Unix line endings enforced via `.editorconfig`.\n- Linting is automated in CI with Swift Format.\n\n## License\n\nMIT License. See [LICENSE](LICENSE).\n\n## Acknowledgments\n\n- [TMDB](https://www.themoviedb.org/) for the movie/TV data API\n\n---\n\n\u003e This project is not affiliated with TMDB. You need your own TMDB API access token.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorcamilo%2Ftmdb-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorcamilo%2Ftmdb-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorcamilo%2Ftmdb-swift/lists"}