Menu
Amazon Rekognition
Developer Guide

GetCelebrityInfo

Gets the name and additional information about a celebrity based on his or her Rekognition ID. The additional information is returned as an array of URLs. If there is no additional information about the celebrity, this list is empty. For more information, see Recognizing Celebrities.

This operation requires permissions to perform the rekognition:GetCelebrityInfo action.

Request Syntax

Copy
{ "Id": "string" }

Request Parameters

The request accepts the following data in JSON format.

Id

The ID for the celebrity. You get the celebrity ID from a call to the RecognizeCelebrities operation, which recognizes celebrities in an image.

Type: String

Pattern: [0-9A-Za-z]*

Required: Yes

Response Syntax

Copy
{ "Name": "string", "Urls": [ "string" ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Name

The name of the celebrity.

Type: String

Urls

An array of URLs pointing to additional celebrity information.

Type: Array of strings

Errors

AccessDeniedException

You are not authorized to perform the action.

HTTP Status Code: 400

InternalServerError

Amazon Rekognition experienced a service issue. Try your call again.

HTTP Status Code: 500

InvalidParameterException

Input parameter violated a constraint. Validate your parameter before calling the API operation again.

HTTP Status Code: 400

ProvisionedThroughputExceededException

The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.

HTTP Status Code: 400

ResourceNotFoundException

Collection specified in the request is not found.

HTTP Status Code: 400

ThrottlingException

Amazon Rekognition is temporarily unable to process the request. Try your call again.

HTTP Status Code: 500

Example

Example Request

The following example shows a request that gets information about a celebrity.

Sample Request

Copy
POST https://rekognition.us-west-2.amazonaws.com/ HTTP/1.1 Host: rekognition.us-west-2.amazonaws.com Accept-Encoding: identity Content-Length: 18 X-Amz-Target: RekognitionService.GetCelebrityInfo X-Amz-Date: 20170414T184757Z User-Agent: aws-cli/1.11.47 Python/2.7.9 Windows/8 botocore/1.5.10 Content-Type: application/x-amz-json-1.1 Authorization: AWS4-HMAC-SHA256 Credential=XXXXX/us-west-2/rekognition/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=XXXXXXXXXXXXXXXXXXX {"Id": "3Ir0du6"}

Sample Response

Copy
{ "Name": "Jeff Bezos", "Urls": ["www.imdb.com/name/nm1757263"] }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: