Digiguide.tv API Documentation (BETA)

Digiguide.tv Logo

Searching

Tag Search

Use this API to get a list of programmes from the Digiguide database, including any schedules, given a list of possible 'tags'.

End Point http://api.digiguide.tv/1.2/tv/tagsearch/
Supported Responses JSON
Supported Methods GET or POST
URI Scheme Either HTTP or HTTPS requests are supported.
User Authentication Optional

If an authenticated user is passed, then only schedule results for the users channel selection are returned.

If no 'subscribed' authenticated user is passed, then only 3 search results are returned.

Required Parameters

appid=<yourappid> Your unique and secret Application ID

tag=<string>

Case insensitive 'flattened' tag name to be used for searching.

Tags are obtained from the "Programme" or "Search" APIs using the "nameFlat" property (no punctuation or spaces).

Multiple tags can be specified to narrow down search results like tag=5star&tag=scifi&tag=film

Optional Parameters

limit=<unsigned integer>

When specified, limits the number of programme results to specified number; when omitted or an invalid value is specified will return 20 results (unless unsubscribed as detailed above)

limitschedules=<unsigned integer>

When specified, limits the number of schedules for each programme result to specified number; when omitted or an invalid value is specified will return 10 results (unless unsubscribed as detailed above)

what=schedules

When specified, returns a 'schedules' property containing an array of schedule information

what=oldschedules

When specified, returns a 'schedules' array property which contains schedules that have already been broadcast. If this parameter is specified the 'what=schedules' is not required

what=adult

When specified, will include 'Adult' categorised programmes. Default is to not include them

Successful Response

Matches are returned in order of relevance, with a maximum of 10 schedule results per match if schedules are requested and exist.

A programme search would return the following:

{ "success" : true, "responseRestricted" : true, "results" : [ { "id" : 13040, "name" : "Stargate SG-1", "score" : 1, "category" : "Science Fiction Series", "categoryID" : 30, "description" : "An elite hand-picked team of soldiers and scientists travel through a portal to discover strange and alien worlds beyond.", "imageMain" : { "url" : "http://i.digiguide.tv/up/1307/1372906800-13040-StargateS-13728441270.jpg", "height" : 196, "width" : 350 }, "imageThumb" : { "url" : "http://i.digiguide.tv/up/1307/tn-1372906800-13040-StargateS-13728441270.jpg", "height" : 150, "width" : 150 }, "imageTinyThumb" : { "url" : "http://i.digiguide.tv/up/1307/ttn-1372906800-13040-StargateS-13728441270.jpg", "height" : 75, "width" : 75 }, "rating" : 5, "seasons" : 10, "tags" : [ { "name" : "Sci Fi", "nameFlat" : "scifi" }, { "name" : "Entertainment", "nameFlat" : "entertainment" }, { "name" : "Drama Series", "nameFlat" : "dramaseries" }, { "name" : "Family", "nameFlat" : "family" }, { "name" : "Science Fiction", "nameFlat" : "sciencefiction" }, { "name" : "Sci-Fi", "nameFlat" : "scifi" }, { "name" : "Fantasy", "nameFlat" : "fantasy" }, { "name" : "Drama", "nameFlat" : "drama" }, { "name" : "Adventure", "nameFlat" : "adventure" }, { "name" : "Action", "nameFlat" : "action" }, { "name" : "Series", "nameFlat" : "series" }, { "name" : "5 Star", "nameFlat" : "5star" } ] }, { "id" : 74757, "name" : "Doctor Who", "score" : 1, "category" : "Science Fiction Series", "categoryID" : 30, "description" : "Science fiction series about the adventures of an alien time-traveller, known as The Doctor. He explores space and time, solving problems and righting wrongs.", "imageCredit" : "BBC", "imageMain" : { "url" : "http://i.digiguide.tv/up/1208/1346523600-74757-DoctorWho-13462617010.jpg", "height" : 197, "width" : 350 }, "imageThumb" : { "url" : "http://i.digiguide.tv/up/1208/tn-1346523600-74757-DoctorWho-13462617010.jpg", "height" : 150, "width" : 150 }, "imageTinyThumb" : { "url" : "http://i.digiguide.tv/up/1208/ttn-1346523600-74757-DoctorWho-13462617010.jpg", "height" : 75, "width" : 75 }, "rating" : 5, "seasons" : 33, "tags" : [ { "name" : "Sci Fi", "nameFlat" : "scifi" }, { "name" : "Time-Travel", "nameFlat" : "timetravel" }, { "name" : "Drama Series", "nameFlat" : "dramaseries" }, { "name" : "Family", "nameFlat" : "family" }, { "name" : "Science Fiction", "nameFlat" : "sciencefiction" }, { "name" : "Sci-Fi", "nameFlat" : "scifi" }, { "name" : "Fantasy", "nameFlat" : "fantasy" }, { "name" : "Drama", "nameFlat" : "drama" }, { "name" : "Adventure", "nameFlat" : "adventure" }, { "name" : "Action", "nameFlat" : "action" }, { "name" : "Series", "nameFlat" : "series" }, { "name" : "5 Star", "nameFlat" : "5star" } ] }, { "id" : 5228, "name" : "Red Dwarf", "score" : 0.625, "category" : "Sitcom", "categoryID" : 12, "description" : "Dave Lister is locked in stasis as punishment for smuggling a cat on board Red Dwarf.\r\nWhile he's in stasis, a damaged drive plate releases radiation which kills the rest of the crew.\r\n\r\nThree million years later, Dave is released from stasis by the ship's computer, Holly. He discovers that he's the last surviving member of the human race.\r\n\r\nHis only companions are a hologram of his least favourite crewmate, Arnold Rimmer, and the Cat, a life-form that has evolved from his cat.\r\n\r\nThe crew is joined in a later series by Kryten and by Kristine Kochanski (An old flame of Lister's).", "imageMain" : { "url" : "http://i.digiguide.tv/up/1209/1349380800-5228-RedDwarf-13482216880.jpg", "height" : 225, "width" : 300 }, "imageThumb" : { "url" : "http://i.digiguide.tv/up/1209/tn-1349380800-5228-RedDwarf-13482216880.jpg", "height" : 150, "width" : 150 }, "imageTinyThumb" : { "url" : "http://i.digiguide.tv/up/1209/ttn-1349380800-5228-RedDwarf-13482216880.jpg", "height" : 75, "width" : 75 }, "rating" : 5, "seasons" : 10, "tags" : [ { "name" : "Sci Fi", "nameFlat" : "scifi" }, { "name" : "Science Fiction", "nameFlat" : "sciencefiction" }, { "name" : "Sci-Fi", "nameFlat" : "scifi" }, { "name" : "Comedy", "nameFlat" : "comedy" }, { "name" : "Sitcom", "nameFlat" : "sitcom" }, { "name" : "5 Star", "nameFlat" : "5star" } ] } ] }