Data/name-api/v1.1/name/factsheets

Jump to: navigation, search

Name/Factsheets

Returns fact sheets about a person in paragraph or bullet format with web-ready, HTML encoding.

This request may return a large amount of data. To speed data transmission, do the following:

  • Request one page of data at a time, requesting only what you want to immediately display.
  • Request a compressed response by including Accept-Encoding: gzip,deflate in the HTTP header.

Syntax

name/factsheets? name=name
nameid=nameid
cosmoid=cosmoid
amgpopid=amgpopid
amgmovieid=amgmovieid
amgclassicalid=amgclassicalid
&apikey=apikey&sig=sig [&format=format] [&offset=offset] [&count=count] [&country=country] [&language=language]

Request Example 1

Request fact sheets about John Lennon.

Request Example 2

Request fact sheets about Ben Affleck.

Request Example 3

Request just the first fact sheet about John Lennon.

Request Example 4

Request just the second fact sheet about John Lennon.

Request Parameters

Sort none.gif  Click to re-sort

Parameter Required Description
apikey Yes Access code that authorizes your request for data from Rovi.
sig Yes A calculated, 32-hex-digit authorization code. To perform the calculation, execute the MD5 function on the concatenation of the following three ASCII strings:
  • Your API key.
  • The secret key you received with your API key.
  • The Unix time. Unix time is a timestamp supported in most development environments, and is generally defined as the number of seconds since January 1, 1970 00:00:00 GMT.

Express the alpha hex digits as lower case.

Perform the calculation at the time of each request to be sure it's within a five-minute window of the server time. If you're testing the call in a browser, use our online signature generator to perform the calculation.

amgclassicalid Conditional All Media Guide (AMG) ID for a classical music artist, consisting of a ten-character string that starts with Q and is followed by nine digits with leading spaces. For example: Q     9065.

When using an AMG Classical ID in a request, replace any spaces in the ID with plus (+) or percent20 (%20) symbols, like this: Q+++++9065. AMG is a legacy database of entertainment information.

Condition: The request must contain just one of these parameters:

  • name
  • nameid
  • cosmoid   
  • amgpopid
  • amgmovieid
  • amgclassicalid
amgmovieid Conditional All Media Guide (AMG) ID for a person who works in movies, consisting of a seven-character string that starts with P and is followed by 6 digits with leading spaces. For example: P 30474.

When using an AMG Movie ID in a request, replace any spaces in the ID with plus (+) or percent20 (%20) symbols, like this: P+30474.

Condition: The request must contain just one of these parameters:

  • name
  • nameid
  • cosmoid   
  • amgpopid
  • amgmovieid
  • amgclassicalid
amgpopid Conditional All Media Guide (AMG) ID for a popular music artist, consisting of a ten-character string that starts with P and is followed by 9 digits with leading spaces. For example: P    84363.

When using an AMG Pop ID in a request, replace any spaces in the ID with plus (+) or percent20 (%20) symbols, like this: P++++84363.

Condition: The request must contain just one of these parameters:

  • name
  • nameid
  • cosmoid   
  • amgpopid
  • amgmovieid
  • amgclassicalid
cosmoid Conditional Cosmo database ID for a person, group, or organization. You can get Cosmo IDs with Search requests. Cosmo is a database of television data.

Condition: The request must contain just one of these parameters:

  • name
  • nameid
  • cosmoid   
  • amgpopid
  • amgmovieid
  • amgclassicalid
name Conditional Name of the person or group. This returns the top search result for that name. Replace any spaces with plus (+) or percent20 (%20) symbols.

Condition: The request must contain just one of these parameters:

  • name
  • nameid
  • cosmoid   
  • amgpopid
  • amgmovieid
  • amgclassicalid
nameid Conditional Rovi Music ID for a person, group, or organization, consisting of the prefix MN followed by a ten-digit number. For example: MN0000114342. Your application can grab name IDs from responses to Search and from Info, Credits, Tracks, and Recommendations requests. For a complete list of requests that return name IDs, click here.

Condition: The request must contain just one of these parameters:

  • name
  • nameid
  • cosmoid   
  • amgpopid
  • amgmovieid
  • amgclassicalid
count No Number of items to be returned. The default is zero, which returns all items after the offset.
country No Country the language parameter applies to. The current release of the API supports only US.
format No Format of the returned data: json or xml. The default is JSON.
language No Language of the response data. This request supports only en (English).
offset No Number of items at the start of the available data to skip. The default is zero.

Use count and offset to paginate the data that is available to be returned.

Response

Response Header

ResponseTypeDescription
buildstringThe software release level of the API.
codeintegerHTTP status code. See the status field for the text part of the code.
durationintegerServer processing time in milliseconds. The difference between startTime and endTime.
endTimestringWhen the server sent the response (UTC time).
messagesMessage [ ]Elements of a multiple HTTP response status message.
parametersparametersThe parameters that were included in the request.
parentIdsparentIdsAll of the IDs for the requested name that are recognized by the Name API.
serverNamestringName of the server that processed the request.
startTimestringWhen the server received the request (UTC time).
statusstringText part of the HTTP status code, which is shown in the code field.
viewviewSummary of items returned in a list of items.

Response for Name/Factsheets

ResponseTypeDescription
factsheets NameFactsheet [ ] Fact sheet about the person specified in the request.

JSON Response Example

Here's the response to Request Example 2, which asks for fact sheets about Ben Affleck. The response is formatted with extra spaces and carriage returns to make it easy to read.
Requested with http://api.rovicorp.com/data/v1.1/name/factsheets?apikey=apikey&sig=sig&
amgmovieid=P+++426
.
{
   "status": "ok",
   "code": 200,
   "messages": null,
   "build": "1.6.1.8",
   "parameters":    {
      "apiKey": "4p1k3y",
      "id": "P   426"
   },
   "view": {"total": 3},
   "serverName": "tul1cstw4",
   "startTime": "2011-06-23T01:59:31.1044320Z",
   "endTime": "2011-06-23T01:59:31.1356824Z",
   "duration": 31,
   "parentIds":    {
      "amgClassicalId": "Q  1248447",
      "amgMovieId": "P   426",
      "amgPopId": "P   357290",
      "cosmoId": "100535",
      "nameId": "MN0001364610"
   },
   "factsheets":    [
       {
         "type": "Biography",
         "details": "\nAffleck is a talented actor, Oscar-winning screenwriter and promising director who&nbsp;shot to stardom in his twenties after a childhood acting career.&nbsp;In the '80s, the athletic actor appeared in a number of TV movies before making it to the big screen, notably as an anti-Semitic jock in the 1992 teen drama <I>School Ties<\/I>, costarring his future collaborator, Matt Damon. In 1995, he appeared in <I>Mallrats<\/I>, his first of many Kevin Smith comedies, but 1997 was Affleck's breakthrough year. First, he won raves as a comic-book artist in love with a lesbian in Smith's <I>Chasing Amy<\/I>. Then he and Damon cowrote and costarred in the drama <I>Good Will Hunting<\/I>, which earned the duo an Oscar for best original screenplay.&nbsp;He also began filming the Academy Award-winning <I>Shakespeare in Love<\/I> with Gwyneth Paltrow, with whom he had a much-publicized off-screen relationship. Over the next several years, Affleck&nbsp;took on leading roles in films of all genres---action (<I>Armageddon<\/I>), romantic comedy (<I>Forces of Nature<\/I>) and drama (<I>Pearl Harbor<\/I>)---but it was another tabloid-grabbing romance, this time with Jennifer Lopez,&nbsp;that gained the most notice. Dubbed \"Bennifer,\" the couple were stalked by the paparazzi until 2004, when they finally called it quits after starring together in two&nbsp;poorly received&nbsp;movies (<I>Gigli<\/I> and Smith's <I>Jersey Girl<\/I>). However, Affleck was able to recycle the \"Bennifer\" moniker when he began dating his <I>Daredevil<\/I> (2003) costar, Jennifer Garner, that same year. The two married&nbsp;in 2005 and have two children. Affleck successfully branched out into directing with the&nbsp;critically acclaimed <I>Gone Baby Gone<\/I> (2007), which starred his younger brother, Casey. Then, after taking a couple years off from acting, Affleck returned full-force in 2009, starring in the romantic comedies <I>He's Just Not That Into You<\/I> and<I> Extract<\/I> and&nbsp;the political thriller <I>State of Play<\/I>."
      },
      {
         "type": "Factsheet",
         "details": "\n\n<UL>\n<LI>At 12, appeared in the PBS science series <I>The Voyage of the Mimi<\/I>, and later&nbsp;played Madeline Kahn's son in an ABC <I>Afterschool Special<\/I> titled \"Wanted: The Perfect Guy.\" \n<LI>Has appeared in several Kevin Smith films, including <I>Mallrats<\/I>,&nbsp;<I>Chasing Amy<\/I>,<I>&nbsp;Jay and Silent Bob Strike Back<\/I> and <I>Jersey Girl<\/I>. \n<LI>Vigorously campaigned for Al Gore and John Kerry and appeared at the 2004 Democratic National Convention. \n<LI>Testified before Congress in support of funding medical research for Ataxia-Telangiectasia after befriending a young boy who suffers from the degenerative disease. \n<LI>An avid card player who has appeared on <I>Celebrity Poker Showdown<\/I>. \n<LI>Hosted <I>Saturday Night Live<\/I> four times between 2000 and 2008.<\/LI><\/UL>"
      },
      {
         "type": "FactSheetOnline",
         "details": "\n\n<UL>\n<LI>At 12, appeared in the PBS science series <I>The Voyage of the Mimi<\/I>, and later&nbsp;played Madeline Kahn's son in an ABC <I>Afterschool Special<\/I> titled \"Wanted: The Perfect Guy.\" \n<LI>Has appeared in several Kevin Smith films, including <I>Mallrats<\/I>,&nbsp;<I>Chasing Amy<\/I>,<I>&nbsp;Jay and Silent Bob Strike Back<\/I> and <I>Jersey Girl<\/I>. \n<LI>Vigorously campaigned for Al Gore and John Kerry and appeared at the 2004 Democratic National Convention. \n<LI>Testified before Congress in support of funding medical research for Ataxia-Telangiectasia after befriending a young boy who suffers from the degenerative disease. \n<LI>An avid card player who has appeared on <I>Celebrity Poker Showdown<\/I>. \n<LI>Hosted <I>Saturday Night Live<\/I> four times between 2000 and 2008.<\/LI><\/UL>"
      }
   ]
}

XML Response Example

Here's an XML response to Request Example 2, which asks for fact sheets about Ben Affleck.
Requested with http://api.rovicorp.com/data/v1.1/name/factsheets?apikey=apikey&sig=sig&
amgmovieid=P+++426&format=xml
.
<NameFactsheets xmlns="com.rovicorp.metadataservice" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <status>ok</status>
   <code>200</code>
   <messages i:nil="true"/>
   <build>1.6.1.8</build>
   <parameters>
      <apiKey>4p1k3y</apiKey>
      <id>MN0001364610</id>
      <format>xml</format>
   </parameters>
   <view>
      <total>3</total>
   </view>
   <serverName>tul1cstw2</serverName>
   <startTime>2011-06-23T02:14:08.1009925Z</startTime>
   <endTime>2011-06-23T02:14:08.1478660Z</endTime>
   <duration>46</duration>
   <parentIds>
      <amgClassicalId>Q  1248447</amgClassicalId>
      <amgMovieId>P   426</amgMovieId>
      <amgPopId>P   357290</amgPopId>
      <cosmoId>100535</cosmoId>
      <nameId>MN0001364610</nameId>
   </parentIds>
   <factsheets>
      <NameFactsheet>
         <type>Biography</type>
         <details><![CDATA[Affleck is a talented actor, Oscar-winning screenwriter and promising director who&nbsp;shot to stardom in his twenties after a childhood acting career.&nbsp;In the '80s, the athletic actor appeared in a number of TV movies before making it to the big screen, notably as an anti-Semitic jock in the 1992 teen drama <I>School Ties</I>, costarring his future collaborator, Matt Damon. In 1995, he appeared in <I>Mallrats</I>, his first of many Kevin Smith comedies, but 1997 was Affleck's breakthrough year. First, he won raves as a comic-book artist in love with a lesbian in Smith's <I>Chasing Amy</I>. Then he and Damon cowrote and costarred in the drama <I>Good Will Hunting</I>, which earned the duo an Oscar for best original screenplay.&nbsp;He also began filming the Academy Award-winning <I>Shakespeare in Love</I> with Gwyneth Paltrow, with whom he had a much-publicized off-screen relationship. Over the next several years, Affleck&nbsp;took on leading roles in films of all genres---action (<I>Armageddon</I>), romantic comedy (<I>Forces of Nature</I>) and drama (<I>Pearl Harbor</I>)---but it was another tabloid-grabbing romance, this time with Jennifer Lopez,&nbsp;that gained the most notice. Dubbed "Bennifer," the couple were stalked by the paparazzi until 2004, when they finally called it quits after starring together in two&nbsp;poorly received&nbsp;movies (<I>Gigli</I> and Smith's <I>Jersey Girl</I>). However, Affleck was able to recycle the "Bennifer" moniker when he began dating his <I>Daredevil</I> (2003) costar, Jennifer Garner, that same year. The two married&nbsp;in 2005 and have two children. Affleck successfully branched out into directing with the&nbsp;critically acclaimed <I>Gone Baby Gone</I> (2007), which starred his younger brother, Casey. Then, after taking a couple years off from acting, Affleck returned full-force in 2009, starring in the romantic comedies <I>He's Just Not That Into You</I> and<I> Extract</I> and&nbsp;the political thriller <I>State of Play</I>.]]></details>
      </NameFactsheet>
      <NameFactsheet>
         <type>Factsheet</type>
         <details><![CDATA[<UL>
<LI>At 12, appeared in the PBS science series <I>The Voyage of the Mimi</I>, and later&nbsp;played Madeline Kahn's son in an ABC <I>Afterschool Special</I> titled "Wanted: The Perfect Guy."
<LI>Has appeared in several Kevin Smith films, including <I>Mallrats</I>,&nbsp;<I>Chasing Amy</I>,<I>&nbsp;Jay and Silent Bob Strike Back</I> and <I>Jersey Girl</I>.
<LI>Vigorously campaigned for Al Gore and John Kerry and appeared at the 2004 Democratic National Convention.
<LI>Testified before Congress in support of funding medical research for Ataxia-Telangiectasia after befriending a young boy who suffers from the degenerative disease.
<LI>An avid card player who has appeared on <I>Celebrity Poker Showdown</I>.
<LI>Hosted <I>Saturday Night Live</I> four times between 2000 and 2008.</LI></UL>]]></details>
      </NameFactsheet>
      <NameFactsheet>
         <type>FactSheetOnline</type>
         <details><![CDATA[<UL>
<LI>At 12, appeared in the PBS science series <I>The Voyage of the Mimi</I>, and later&nbsp;played Madeline Kahn's son in an ABC <I>Afterschool Special</I> titled "Wanted: The Perfect Guy."
<LI>Has appeared in several Kevin Smith films, including <I>Mallrats</I>,&nbsp;<I>Chasing Amy</I>,<I>&nbsp;Jay and Silent Bob Strike Back</I> and <I>Jersey Girl</I>.
<LI>Vigorously campaigned for Al Gore and John Kerry and appeared at the 2004 Democratic National Convention.
<LI>Testified before Congress in support of funding medical research for Ataxia-Telangiectasia after befriending a young boy who suffers from the degenerative disease.
<LI>An avid card player who has appeared on <I>Celebrity Poker Showdown</I>.
<LI>Hosted <I>Saturday Night Live</I> four times between 2000 and 2008.</LI></UL>]]></details>
      </NameFactsheet>
   </factsheets>
</NameFactsheets>


See Also

↑ Top

Personal tools