Aktrakt is a powerful open-source library for interacting with the Trakt.tv API in iOS and macOS applications. It provides easy access to a wide range of data, such as movies, shows, episodes, and user-related information. With Aktrakt, developers can easily incorporate Trakt.tv features into their apps, offering users a seamless and immersive experience.


– Comprehensive support for Trakt.tv API v2.
– Simple and intuitive API for streamlined integration with iOS and macOS applications.
– Retrieve detailed information about movies, shows, and episodes.
– Access user-related data, including user profile details, watchlists, and library contents.
– Search for movies, shows, and episodes efficiently with customizable filters.
– Perform authentication with Trakt.tv, allowing users to login, logout, and manage their access tokens.
– Utilize caching mechanisms to optimize performance and reduce API requests.
– Handle errors and failures gracefully with robust error handling.
– Full compatibility with Swift and Objective-C.
– Well-documented codebase, ensuring ease of use and maintainability.

Aktrakt can be easily installed in your iOS or macOS project using Cocoapods. Follow the steps below to get started:

1. Open your project’s terminal and navigate to the project’s root directory.

2. Create a `Podfile` in the project’s root directory by running the following command:

$ pod init

3. Open the `Podfile` using your preferred text editor.

# Podfile

platform :ios, ‘14.0’

target ‘YourProjectName’ do
# If you want to use the latest stable release:
pod ‘Aktrakt’

# If you want to use a specific version:
# pod ‘Aktrakt’, ‘~> 2.1.0’

4. Save and close the `Podfile`.

5. Install the Aktrakt library by running the following command:

$ pod install

To start using Aktrakt in your project, follow the steps below:

1. In your project’s view controller or relevant file, import the Aktrakt module:

import Aktrakt

2. Create an instance of `TraktManager`:

let traktManager = TraktManager(clientId: “YOUR_CLIENT_ID”, clientSecret: “YOUR_CLIENT_SECRET”)

3. Use the available methods and properties of the `traktManager` instance to interact with the Trakt.tv API. For example, to fetch popular movies, use the following code:

traktManager.movies.getPopular { (result) in
switch result {
case .success(let movies):
// Handle successful response
for movie in movies {
case .failure(let error):
// Handle error
print(“Error: \(error.localizedDescription)”)

For comprehensive documentation and examples on using Aktrakt, refer to the official Github repository: [Aktrakt on Github](https://github.com/example/aktrakt).

Aktrakt is released under the MIT License. See the [LICENSE](https://github.com/example/aktrakt/blob/main/LICENSE) file for more details.

Contributions to Aktrakt are welcome! If you encounter any issues or would like to suggest improvements, please submit an issue or a pull request on the [Github repository](https://github.com/example/aktrakt).