Blog

Game Trailers

Developer Tip – Game Trailers

  |   Developer Tips   |   No comment

Did you know IVA also has video game trailers and video content? All this and more can be found via IVA’s OData 2.0 API. Use the example queries below to get started ingesting the data about over 10,000 video assets for over 5,000 games. Use information in the metadata to create lists and match to your own databases around games. This content makes a great addition to any entertainment site or app. Enterprise customers are encouraged to reach out to our client services team to discuss implementation options. Use the information and IVA Published ID’s returned by the API with IVA’s Video API or our ad supported trailer player.

Catalog Ingest Example:

Use a query like the following and page through the results to ingest the metadata about each game video asset and the program (game) it belongs to.

Linq:

(From v in VideoAssets.expand("EntertainmentProgram/ReleaseEvents, MediaType, Encodes, Descriptions, VideoAssetScreenCapture, LanguageSpoken, LanguageSubtitled, CountryTarget, EntertainmentProgram/GameCategory, EntertainmentProgram/GameWarning, EntertainmentProgram/Copyrightholder, EntertainmentProgram/Description")
where v.EntertainmentProgram.MediaId = 1 select v).skip(0).take(250)

 

API Query URL (add your own developer ID):

http://api.internetvideoarchive.com/2.0/DataService/VideoAssets()?$filter=EntertainmentProgram/MediaId eq 1&$skip=0&$top=250&$expand=EntertainmentProgram/ReleaseEvents, MediaType, Encodes, Descriptions, VideoAssetScreenCapture, LanguageSpoken, LanguageSubtitled, CountryTarget, EntertainmentProgram/GameCategory, EntertainmentProgram/GameWarning, EntertainmentProgram/Copyrightholder, EntertainmentProgram/Description&format=json&developerid={yourid}

Video Asset Update Example:

Use a query similar to this one to get new assets and programs since a given date.

Linq:

(From v in VideoAssets.expand("EntertainmentProgram/ReleaseEvents, MediaType, Encodes, Descriptions, VideoAssetScreenCapture, LanguageSpoken, LanguageSubtitled, CountryTarget, EntertainmentProgram/GameCategory, EntertainmentProgram/GameWarning, EntertainmentProgram/Copyrightholder, EntertainmentProgram/Description")
where v.EntertainmentProgram.MediaId = 1 and (v.DateModified > datetime.now.adddays(-3) or v.EntertainmentProgram.DateModified > datetime.now.adddays(-3)) select v).skip(0).take(250)

API Query URL (add your own developer ID):

http://api.internetvideoarchive.com/2.0/DataService/VideoAssets()?$filter=EntertainmentProgram/MediaId eq 1 and (DateModified gt datetime'2016-02-15T14:43:39.3009022-05:00' or EntertainmentProgram/DateModified gt datetime'2016-02-15T14:43:39.3009022-05:00')&$skip=0&$top=250&$expand=EntertainmentProgram/ReleaseEvents, MediaType, Encodes, Descriptions, VideoAssetScreenCapture, LanguageSpoken, LanguageSubtitled, CountryTarget, EntertainmentProgram/GameCategory, EntertainmentProgram/GameWarning, EntertainmentProgram/Copyrightholder, EntertainmentProgram/Description&format=json&developerid={yourid}
No Comments

Post A Comment