RelatedPrograms

sports/v1/RelatedPrograms

Related Gracenote program Ids mapped to sports events, teams and organizations. Includes pre, post game shows, coaches shows and other related programs.

Response schema: http://developer.tmsapi.com/files/gracenote_sports_related_programs_1.0.xsd

Request Parameters

Parameter Mandatory Description
updateId Yes

Token-based update retrieval. Updates will be retrieved with specified updateId value. For full seeding, specify updateId=0. Increment max updateId by one to retrieve next set of updated records.

limit No

Maximum number of objects to retrieve for processing predictiable batch sizes. Each iteration would retain limit number for same batch size.

Response Body

Response

Description

relatedProgram


action

add or delete

program

 

rootId rootId of program related to entity

relation

type Type or entity that represents the relationship. May be organizationId (NFL, MLB, etc), teamId (teams), sportId (football, baseball, etc) eventId (sport event or match)

Sample Response

 

<?xml version="1.0" encoding="UTF-8"?>
<gracenoteSports xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gracenote_sports_related_programs_1.0.xsd" schemaVersion="1.0">
  <header>
    <content>Gracenote On Entertainment Sports - Related Programs</content>
    <created>2016-04-11T18:42:39Z</created>
    <copyright>Copyright 2015-present. Gracenote, Inc. All rights reserved.</copyright>
    <requestParameters>
      <requestParameter name="updateId">0</requestParameter>
      <requestParameter name="limit">1000000</requestParameter>
    </requestParameters>
  </header>
  <relatedPrograms>
    <relatedProgram action="add" updateId="2435">
      <program type="rootId">877284</program>
      <relation type="teamId">17592186099807</relation>
    </relatedProgram>
    <relatedProgram action="add" updateId="2436">
      <program type="rootId">9142433</program>
      <relation type="teamId">17592186099807</relation>
    </relatedProgram>
    <relatedProgram action="add" updateId="2437">
      <program type="rootId">650975</program>
      <relation type="teamId">17592186099699</relation>
    </relatedProgram>
<relatedProgram action="add" updateId="2944">
      <program type="rootId">11818541</program>
      <relation type="organizationId">17592186045490</relation>
    </relatedProgram>
    <relatedProgram action="add" updateId="2945">
      <program type="rootId">10948641</program>
      <relation type="organizationId">17592186045490</relation>
    </relatedProgram>
    <relatedProgram action="add" updateId="2946">
      <program type="rootId">10628118</program>
      <relation type="teamId">17592186100086</relation>
    </relatedProgram>
 </relatedPrograms>
</gracenoteSports>