Skip to content
George Kye edited this page May 21, 2016 · 2 revisions

The find method makes it easy to search for objects in our database by an external id. For instance, an IMDB ID. This will search all objects (movies, TV shows and people) and return the results in a single response. The supported external sources for each object are as follows:

  • Movies: imdb_id
  • People: imdb_id, freebase_mid, freebase_id, tvrage_id
  • TV Series: imdb_id, freebase_mid, freebase_id, tvdb_id, tvrage_id
  • TV Seasons: freebase_mid, freebase_id, tvdb_id, tvrage_id
  • TV Episodes: imdb_id, freebase_mid, freebase_id, tvdb_id, tvrage_id
http://docs.themoviedb.apiary.io/#reference/find/findid/get ```swift FindMDB.find(apikey, id: "nm0644022", external_source: .imdb_id){ rlts in print(rlts.data?.movie_results.count) print(rlts.data?.person_results?.count) print(rlts.data?.tv_episode_results.count) print(rlts.data?.tv_results.count) print(rlts.data?.tv_season_results.count)
    }
Clone this wiki locally