Downloading Image by Asset Id found in Search Results


  1. cURL based example
  2. Postman collections

Workflow Steps

  1. Get an access token from Getty Images OAuth endpoint
  2. Use access token to search for images with largest download returned
  3. Download an image from the results

Get Access Token

In order to get download links from search you will need to use a Resource Owner Request as used in the example below

Alternatively, a token retrieved via a Client Credentials Request with a Sandboxed Api-Key, will also allow for downloading of a static image for testing purposes. NOTE: This static test image is not the actual asset image.

####Request curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=password&client_id=exampleApiKey&client_secret=exampleSecret&username=someUsername&password=WithSomePassword'


  "access_token": "123456",
  "token_type": "Bearer",
  "expires_in": "1800"

Search For Images with Largest Downloads field specified

####Request curl -X GET -H "Authorization: Bearer 123456" -H "Api-Key: exampleApiKey"


  "result_count": 3662,
  "images": [{
    "id": "83454804",
    "largest_downloads": [{
      "product_type": "easyaccess",
      "uri": ""
    "id": "103131833",
    "largest_downloads": [{
      "product_type": "editorialsubscription",
      "uri": ""

Download the image using its asset id and product type

The largest_downloads array for each image in the response above gives a URI to be used to download the image, as well as the product for which you are authorized to download. To download the image file, create a POST request to the URI and indicate the product_type as a query string parameter as in the example below. The default response to that request is to return the URI where you can download the actual image. If you also set an auto_download parameter to �true�, this will execute a 302 redirect which automatically downloads the image file.

####Request curl -X POST -H "Api-Key: exampleApiKey" -H "Authorization: Bearer 123456" -d ''

####Response { "uri": "" }

Postman Collections

If you prefer to use Postman, we have created collections that can be reused to execute the workflow outlined above.

  1. OAuth Collection
  2. Search Collection
  3. Download Collection