Skip to content

Latest commit

Β 

History

History
71 lines (51 loc) Β· 2.47 KB

File metadata and controls

71 lines (51 loc) Β· 2.47 KB

OMDB API Setup Guide

🎬 Getting Your Free API Key

  1. Visit OMDB: Go to http://www.omdbapi.com/
  2. Get API Key: Click on "Get a free API Key" or visit http://www.omdbapi.com/apikey.aspx
  3. Fill Form: Complete the simple form with your email
  4. Check Email: You'll receive your API key via email
  5. Copy Key: Copy your API key from the email

πŸ”‘ Setting Up Your API Key

  1. Open Config File: Navigate to app/src/main/java/com/rajveer/anitrack/data/remote/Config.kt
  2. Replace Placeholder: Change YOUR_OMDB_API_KEY_HERE with your actual API key
  3. Save File: The app will now use your API key

πŸ“± What You'll Get

  • Movie & TV Show Data: Comprehensive information from IMDB
  • Search Functionality: Search across movies, TV series, and episodes
  • Detailed Information: Plot, ratings, cast, director, genres, etc.
  • IMDB Ratings: Official IMDB ratings and vote counts
  • Offline Caching: Content is cached locally for offline viewing

πŸš€ API Features

  • Free Tier: 1,000 requests per day (more than enough for personal use)
  • Rich Data: Plot summaries, cast, director, ratings, genres
  • IMDB Integration: Direct access to IMDB database
  • Multiple Types: Movies, TV series, episodes
  • Search Options: By title, year, type, and more

πŸ”’ Security Note

  • Never commit your API key to version control
  • Keep it private - don't share it publicly
  • Consider using BuildConfig for production apps

πŸ› οΈ Troubleshooting

If you see empty content:

  1. Check your internet connection
  2. Verify your API key is correct
  3. Check the logcat for error messages
  4. Ensure you haven't exceeded daily request limit
  5. Note: OMDB doesn't provide poster images, so you'll see placeholder images

πŸ“Š Rate Limits

  • Free Tier: 1,000 requests per day
  • Request Delay: 250ms between requests (built-in)
  • Caching: Reduces API calls significantly

🎯 Next Steps

Once API is working:

  1. Test the app with real data
  2. Customize the UI as needed
  3. Add more features like favorites, watchlist
  4. Implement search functionality
  5. Add show details and episodes

πŸ“ž Support


Happy coding! πŸŽ‰ Your AniTrack app is now powered by OMDB and IMDB data!