V9.ListingsService:GetCelebrityDetails

Jump to: navigation, search

GetCelebrityDetails

Note: The information returned by this request is also returned by requests offered in our Name API Version 1.1. Because future API development around this information will be focused on the Name API, we now recommend using the Name API for future application development instead of this request.

GetCelebrityDetails returns information about a celebrity and can optionally include a schedule of upcoming broadcast appearances.

To include upcoming broadcast appearances, specify the ServiceId and then limit the results with the following optional parameters:

  • Duration
  • SourceId
  • StartDate
  • InProgress

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

  • Request only data that you need to immediately display.
  • Request a compressed response by including Accept-Encoding: gzip,deflate in the HTTP header.

Syntax

The following is a sample SOAP 1.2 request with placeholders. Your application development environment needs to replace the placeholders with actual values.
POST /v9/listingsservice.asmx HTTP/1.1
Host: api.rovicorp.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthHeader xmlns="http://api.rovicorp.com/v9/common/types">
      <UserName>string</UserName>
      <Password>string</Password>
    </AuthHeader>
  </soap12:Header>
  <soap12:Body>
    <GetCelebrityDetails xmlns="http://api.rovicorp.com/v9/listings">
      <request>
        <Locale>string</Locale>
        <CreditHandle>
          <Id>string</Id>
          <ProviderId>int</ProviderId>
        </CreditHandle>
        <MetaData>
          <CelebrityMetaData>All or None or Biography or AKAs or Relations or Credits or Factsheets or Awards or Images</CelebrityMetaData>
          <CelebrityMetaData>All or None or Biography or AKAs or Relations or Credits or Factsheets or Awards or Images</CelebrityMetaData>
        </MetaData>
        <Format>PlainText or HTML</Format>
        <ServiceId>int</ServiceId>
        <StartDate>dateTime</StartDate>
        <Duration>int</Duration>
        <InProgress>boolean</InProgress>
        <SourceFilter>
          <Sources>
            <SourceId>int</SourceId>
            <SourceId>int</SourceId>
          </Sources>
          <Include>HD or PPV or Music</Include>
          <Excludes>
            <Exclude>HD or PPV or Music</Exclude>
            <Exclude>HD or PPV or Music</Exclude>
          </Excludes>
        </SourceFilter>
        <TitleType>int</TitleType>
        <CopyType>int</CopyType>
        <Image>
          <ImageUrl>string</ImageUrl>
          <ImageUseType>Logo or HeroImage or Thumbnail</ImageUseType>
          <ImageId>int</ImageId>
          <ImageTitle>string</ImageTitle>
          <ImageCaption>string</ImageCaption>
          <ObjectId>string</ObjectId>
          <ObjectType>Program or Credit or Source</ObjectType>
          <ObjectName>string</ObjectName>
          <Relevancy>boolean</Relevancy>
          <ImageCredit>string</ImageCredit>
          <ImageCreditDisplay>boolean</ImageCreditDisplay>
          <ImageCastWeight>float</ImageCastWeight>
          <ImageZoomLevel>1 or 2 or 3 or 4 or 5</ImageZoomLevel>
          <ImageHeadcount>int</ImageHeadcount>
          <ImageType>string</ImageType>
          <ImageFormat>jpg or png or gif or bmp</ImageFormat>
          <ImageHorizontalResolution>int</ImageHorizontalResolution>
          <ImageVerticalResolution>int</ImageVerticalResolution>
          <ImageMaintainAspectFlag>boolean</ImageMaintainAspectFlag>
          <ImageExpiryDateTime>dateTime</ImageExpiryDateTime>
          <LastUpdate>dateTime</LastUpdate>
          <ImageFormatId>int</ImageFormatId>
          <Orientation>string</Orientation>
          <AspectRatio>string</AspectRatio>
          <ImageOwner>string</ImageOwner>
          <ParentImageId>int</ParentImageId>
          <MaxImageScale>float</MaxImageScale>
        </Image>
        <IncludeCreditsForEpisodes>boolean</IncludeCreditsForEpisodes>
        <ImageCount>int</ImageCount>
        <ThisLocaleOnly>boolean</ThisLocaleOnly>
      </request>
    </GetCelebrityDetails>
  </soap12:Body>
</soap12:Envelope>

Request Example 1 »

Request a personal and professional overview for Ice-T.

Request Example 2 »

Request a schedule for the shows that Ice-T is appearing in over the next week on Time Warner Cable in Beverly Hills, California.

Request Example 3 »

Request the list of credits and awards for Mark Harmon, including credits for episodes in a series.

Request Example 4 »

Request up to 25 JPG images of Ice-T alone that fit a bounding box of 240 by 320 pixels.

Request Example 5 »

Request up to 50 different sizes and formats of the last image that was returned in Request Example 4, which is titled Leprechaun in the Hood.

Request Parameters

NameRequiredTypeDescription
CreditHandle Yes Handle Database ID of the celebrity. You can get celebrity IDs from responses to GetProgramDetails requests that return Credit ProgramMetaData.
Locale Yes String Language and country code of the television service. This is a case-insensitive combination of the ISO 639 language code, a hyphen character, and the ISO 3166 country code, as described in RFC 1766. Valid locales include:
  • da-DK
Danish, Denmark
  • nl-BE
Dutch, Belgium
  • nl-NL
Dutch, Netherlands
  • en-BM
English (US), Bermuda
  • en-CA
English (US), Canada
  • en-IE
English (US), Ireland
  • en-JM
English (US), Jamaica
  • en-GB
English (UK), United Kingdom[1]
  • en-US
English (US), United States
  • fi-FI
Finnish, Finland
  • fl-BE
Flemish, Belgium
  • fr-BE
French, Belgium
  • fr-CA
French, Canada
  • fr-FR
French, France
  • fr-LU
French, Luxembourg
  • fr-CH
French, Switzerland
  • de-AT
German, Austria
  • de-DE
German, Germany
  • de-LU
German, Luxembourg
  • de-CH
German, Switzerland
  • it-IT
Italian, Italy
  • it-CH
Italian, Switzerland
  • no-NO
Norwegian, Norway
  • pl-PL
Polish, Poland
  • pt-BR
Portuguese, Brazil
  • pt-PT
Portuguese, Portugal
  • es-AR
Spanish, Argentina
  • es-BO
Spanish, Bolivia
  • es-CL
Spanish, Chile
  • es-CO
Spanish, Colombia
  • es-CR
Spanish, Costa Rica
  • es-DO
Spanish, Dominican Republic
  • es-EC
Spanish, Ecuador
  • es-SV
Spanish, El Salvador
  • es-GT
Spanish, Guatemala
  • es-HN
Spanish, Honduras
  • es-MX
Spanish, Mexico
  • es-NI
Spanish, Nicaragua
  • es-PA
Spanish, Panama
  • es-PE
Spanish, Peru
  • es-ES
Spanish, Spain
  • es-US
Spanish, United States
  • es-VE
Spanish, Venezuela
  • sv-SE
Swedish, Sweden

[1] Includes Wales, Scotland, and Northern Ireland.

Note 1: Locale determines the language of program titles and descriptions. If content is not available in that language, a fallback language is chosen according to rules shown in the Language Fallback Sequence table.

Note 2: For locales fr-CA and fr-Fr, the following response elements are returned in French if available:

  • College
  • Birthplace
  • Profession
  • High School

Note 3: If an invalid locale is specified, en-GB will be used.

ClientBatchId No String A trace code to be returned in the response header so you can track a batch of requests. The code can be up to 255 characters.
CopyType No Nullable CopyType Type of description you want. If you specify a copy type that has no content, no description is returned. If you specify 0 or no copy type, the description chosen is based on category, shown below, and the first copy type in the category that is available:
CategoryCopy Type Fallback Sequence
Movie

1
4
55
54
3
5

Chrono Long
Chrono Short
Synopsis
Short Synopsis
No Cast
Grid

Series Master

3
55
54

No Cast
Synopsis
Short Synopsis

Series Episode

1
55
54
4
5

Chrono Long
Synopsis
Short Synopsis
Chrono Short
Grid

One Time Only

1
55
54
4
5

Chrono Long
Synopsis
Short Synopsis
Chrono Short
Grid

Season

36


38
39

Season description
— For select series and seasons
— For AMG season copy
Critical description
Season essay

Duration No Nullable Integer If you specify a ServiceId to include a schedule of broadcasts the celebrity appears in, Duration determines the number of minutes the schedule will cover. You can specify 1 to 20160; the default is 20160 (14 days).

Note: The schedule is determined by StartDate, Duration, and InProgress. A duration shorter than 5 minutes may miss shows starting just before or after a half-hour point.

Format No Nullable EncodingFormat Encoding format of the returned program description: HTML or PlainText. Default is PlainText.
Image No Image If you specify Images in the MetaData parameter, Image determines which celebrity and program images are returned in the Images object. Do one of the following:
  • To get the best images for a particular page, use any of the 12 image filters in the Image object. Create several combinations of filters and execute them in order of priority until you get the best images available for that page.
  • To get the images that work best for a page design, across all of your celebrity pages, we recommend using the ImageFormatId image filter.
ImageCount No Nullable Integer If you specify Images in the MetaData parameter, ImageCount determines the number of images returned in the response. The default is 5.
IncludeCreditsForEpisodes No Nullable Boolean If you specify Credits in the MetaData parameter, IncludeCreditsForEpisodes determines whether credits for each episode in a series are returned in the response: true or false. Default is false.
InProgress No Nullable Boolean If you specify a ServiceId to include a schedule of broadcasts the celebrity appears in, InProgress determines whether shows that are in progress at the StartDate are included in the schedule: true or false. Default is false.

Note: The schedule is determined by StartDate, Duration, and InProgress.

MetaData No CelebrityMetaData [ ] The data you want to be included in the response. Default is All.
ServiceId No Nullable Integer Database ID of the television service. Required if you want a schedule of upcoming programs featuring the celebrity.

To get the service ID for the television service, request the list of services in the area with GetServices.

SourceFilter No SourceFilter If you specify a ServiceId to include a schedule of broadcasts the celebrity appears in, you can use SourceFilter to limit the channels that are included in the results.
StartDate No Nullable DateTime If you specify a ServiceId to include a schedule of broadcasts the celebrity appears in, you can use StartDate to specify the starting time of the schedule. The default is the time of the request.

Note: The schedule is determined by StartDate, Duration, and InProgress.

ThisLocaleOnly No Nullable Boolean Determines whether to omit Factsheets data if that data is unavailable in the language specified by the Locale parameter: true or false. Default is false.
TitleType No Nullable TitleType Type of title to return for each program. Most programs do not carry all title types, so we recommend using the default unless another type is required. If a program does not have the type specified, the Title element is not returned.

Response

Response Header

ResponseTypeDescription
BuildStringSoftware build version of the API.
ClientBatchIdStringThe batch ID you supplied in the request.
EndTimestampDateTimeTime the server finished processing the request.
ErrorsError [ ]Processing errors or warnings.
RequestIdString GUIDA generated value that identifies the request and response.
StatusStatusProcessing status, indicating whether the request was successfully processed.
TimeStampDateTimeTime the server started processing the request.

Response for GetCelebrityDetails

NameTypeDescription
Celebrity Celebrity Information about the celebrity you requested.
Schedule LinearSchedule Schedule of upcoming broadcasts featuring the celebrity. Returned only if you specified a ServiceId in the request.

Response Example

The following is a sample SOAP 1.2 response with placeholders that show the type of content returned in an actual response.
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCelebrityDetailsResponse xmlns="http://api.rovicorp.com/v9/listings">
      <GetCelebrityDetailsResult>
        <Celebrity DataAvailabilityFlags="int">
          <CreditHandle>
            <Id>string</Id>
            <ProviderId>int</ProviderId>
          </CreditHandle>
          <CreditName>string</CreditName>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <BirthName>string</BirthName>
          <BirthPlace>string</BirthPlace>
          <DateOfBirth>string</DateOfBirth>
          <DateOfDeath>string</DateOfDeath>
          <Gender>string</Gender>
          <Zodiac>string</Zodiac>
          <Profession>string</Profession>
          <HighSchool>string</HighSchool>
          <College>string</College>
          <Description>string</Description>
          <Factsheets>
            <Factsheet xsi:nil="true" />
            <Factsheet xsi:nil="true" />
          </Factsheets>
          <Awards>
            <Award xsi:nil="true" />
            <Award xsi:nil="true" />
          </Awards>
          <AKAs>
            <AKA xsi:nil="true" />
            <AKA xsi:nil="true" />
          </AKAs>
          <Relatives>
            <Relative xsi:nil="true" />
            <Relative xsi:nil="true" />
          </Relatives>
          <Credits>
            <CelebrityCredit xsi:nil="true" />
            <CelebrityCredit xsi:nil="true" />
          </Credits>
          <Images>
            <Image xsi:nil="true" />
            <Image xsi:nil="true" />
          </Images>
          <IsCelebrity>boolean</IsCelebrity>
        </Celebrity>
        <Schedule>
          <Locale>string</Locale>
          <ServiceId>int</ServiceId>
          <Name>string</Name>
          <ServiceType>string</ServiceType>
          <StartDate>dateTime</StartDate>
          <Duration>int</Duration>
          <TimeZones>
            <TimeZoneInfo xsi:nil="true" />
            <TimeZoneInfo xsi:nil="true" />
          </TimeZones>
          <Airings>
            <ListingsAiring xsi:nil="true" />
            <ListingsAiring xsi:nil="true" />
          </Airings>
        </Schedule>
      </GetCelebrityDetailsResult>
    </GetCelebrityDetailsResponse>
  </soap12:Body>
</soap12:Envelope>

Error Codes

CodeNameDescription
1001 Core_MandatoryFieldMissing A mandatory parameter is not specified.
502001 Listings_InvalidCopyType The CopyType specified in the request is invalid.

See Also

↑ Top

 
Personal tools