Sports

TvSportsData/Sports

Helper API to download sports and their related IDs (baseball, soccer etc).

Response Schema: http://gns-schemas.sports.gracenote.com/gns.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 Yes

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
id Unique Gracenote id for the sport.
value Name of the sport. (e.g. Baseball).
xids
supplier Name of the supplier (e.g. sportsdirect, infostrada) of the xid.
type The description of the supplier's id keyspace.
id The supplier's id for the associated entity.

Sample Response

 

<sports>
		<sport>
			<id>GN3FAZE2HJTVDJ9</id>
			<meta>
				<update_id>111561</update_id>
				<update_action>UPDATE</update_action>
				<update_date>2017-05-26T01:07:16Z</update_date>
			</meta>
			<xids>
				<xid>
					<supplier>sportsdirect</supplier>
					<type>xml</type>
					<id>/sport/baseball</id>
				</xid>
			</xids>
			<names>
				<name>
					<type>DEFAULT</type>
					<value>Baseball</value>
				</name>
			</names>
		</sport>
	</sports>
</gns:gns>