Edit in GitHubLog an issue

License History Reference

The License History API is used to retrieve past license history. For information on licensing Adobe Stock content, see Licensing Stock assets.

License History calls

The License History API returns a list of assets licensed for a given user or organization.

EndpointMethod
GET

Authentication

The Authorization header is required for any of the licensing calls. The API uses the header to determine the user's member number, licensing status, and default locale. See API authentication for more information.

Request headers

See Headers for Stock API calls for details about header content.

  • Required headers: x-Product, x-api-key, Authorization
  • Optional headers: X-Request-Id

URL parameters

Pass the following URL parameters with the GET request.

ParameterDescription
locale
Location language code. String. Default is en_US. See the full list of Locales.
search_parameters[limit]
Optional, for pagination. Maximum number of assets to return in the call. Call repeatedly with different [offset] values to page through the found assets. Valid values are 1 through 100. Integer. Default is 100.
search_parameters[offset]
Optional, start position in query. Valid values are 0 (the first found asset) or higher integers. Integer. Default is 0.

With each successive call for your search, increment this by the [limit] value to get the next page of assets. For example, by default your first call uses a 0 offset and limit of 100 to return the first 100 found assets. Call this API again with an offset of 100 to retrieve the next page.
search_parameters[thumbnail_size]
Optional, thumbnail size in pixels. Specify the size of thumbnail to return for each found asset. Integer.

Valid values and meanings:
110: Small (110px)
160: Medium (160px)
240: Large (240px)
500: Extra large (500px). Returned with watermark.
1000: Extra-extra large (1000px). Returned with watermark.
all
Optional, set to true or false to indicate whether all license history for the organization should be returned, or only the license history for the currently selected user or profile (PLC). Boolean.

Valid values and meanings:
true: Show all license history for the entire organization.
false (or remove parameter): Show only history for the current user or Stock profile. Default.
result_columns[]
Allowable fields to include in the history results. For more information, see Search API reference.

thumbnail_110_url thumbnail_110_height thumbnail_110_width thumbnail_160_url thumbnail_160_height thumbnail_160_width thumbnail_220_url thumbnail_220_height thumbnail_220_width thumbnail_240_url thumbnail_240_height thumbnail_240_width thumbnail_500_url thumbnail_500_height thumbnail_500_width thumbnail_1000_url thumbnail_1000_height thumbnail_1000_width

Responses

Files are returned in a JSON array with this structure.

Copied to your clipboard
1{
2 "nb_results": 0,
3 "files": [
4 {
5 "license": "string",
6 "license_date": "string",
7 "download_url": "string",
8 "id": 0,
9 "title": "string",
10 "width": 0,
11 "height": 0,
12 "creator_name": "string",
13 "creator_id": 0,
14 "media_type_id": 1,
15 "vector_type": "Unknown Type: string,null",
16 "content_type": "string",
17 "thumbnail_url": "string",
18 "thumbnail_width": 0,
19 "thumbnail_height": 0,
20 "details_url": "string"
21 }
22 ]
23}

In the table below, fields marked with * are returned by default.

NameDescription
*nb_results
Total number of found assets in the search result. Integer.
*license
License type (Standard, Standard_M, Extended, Video_HD, Video_4K). String.
*license_date
Date asset was licensed. String.
*download_url
URL to download the licensed asset (requires authentication). String.
*id
Item ID. Integer.
*title
Item title. String.
*creator_name
Creator Name. String.
*creator_id
Creator unique ID. String.
*content_url
(Deprecated). String.
*media_type_id
Content type of the asset (1: Photos, 2: Illustrations, 3: Vectors, 4: Videos, 6: 3D, 7: Templates). Integer.
*vector_type
If the file is a vector indicates if its a svg or a ai/eps (reported as zip). String or Null.
*content_type
Content type of the file (e.g. image/jpeg). String.
*height
Item height. Integer.
*width
Item width. Integer.
*details_url
URL to Adobe Stock with content details. String.
thumbnail_**url
URL for the requested thumbnail size, where * is the thumbnail size in pixels. You can use this to display the thumbnail on your page using your preferred display method. String.
thumbnail***width
Width for the thumbnail of the requested size, where * is the thumbnail size in pixels. Integer. For example: "thumbnail_160_width": 200
thumbnail**_height
Height for the thumbnail of the requested size, where * is the thumbnail size in pixels. Integer.

*Note: Allowable values for thumbnail_*_url, thumbnail_*_width and thumbnail_*_height fields: 110, 160, 220, 240, 500, 1000.*

Example requests and responses

Simple example

Copied to your clipboard
curl --location --request GET 'https://stock.adobe.io/Rest/Libraries/1/Member/LicenseHistory?locale=en_US' --header 'X-Product: MySampleApp/1.0' --header 'x-api-key: MyApiKey' --header 'Authorization: Bearer MyAccessToken'
Copied to your clipboard
1{
2 "nb_results": 13,
3 "files": [
4 {
5 "license": "Standard",
6 "license_date": "9/21/17, 9:00 PM",
7 "download_url": "https://stock.adobe.com/Download/DownloadFileDirectly/xM0nanNQXGEFjXOfV3RBTMet3uP2qDwe",
8 "id": 121684652,
9 "title": "Modern Album Layouts",
10 "creator_name": "Creativedash",
11 "creator_id": 206267052,
12 "content_url": "https://stock.adobe.com/Rest/stock-photo/modern-album-layouts/121684652",
13 "media_type_id": 7,
14 "vector_type": null,
15 "content_type": "image/vnd.adobe.photoshop.template",
16 "height": 1424,
17 "width": 2048,
18 "details_url": "https://stock.adobe.com/121684652?as_channel=affiliate&as_source=api&as_content=73ebcc931b9c454b8cb150816fadb06a"
19 }, /*... more files */
20 ]
21}

Example fetching all history and using pagination

Copied to your clipboard
curl --location -g --request GET 'https://stock.adobe.io/Rest/Libraries/1/Member/LicenseHistory?locale=en_US&search_parameters[limit]=20&search_parameters[offset]=0&all=true' --header 'X-Product: MySampleApp/1.0' --header 'x-api-key: MyApiKey' --header 'Authorization: Bearer MyAccessToken'

In the example above, the request will return the first 20 of 239 results. Without this command, the API returned only 13 results (see previous example.)

Copied to your clipboard
1{
2 "nb_results": 239,
3 "files": [
4 {
5 "license": "Standard",
6 "license_date": "9/21/17, 9:00 PM",
7 "download_url": "https://stock.adobe.com/Download/DownloadFileDirectly/xM0nanNQXGEFjXOfV3RBTMet3uP2qDwe",
8 "id": 121684652,
9 "title": "Modern Album Layouts",
10 "creator_name": "Creativedash",
11 "creator_id": 206267052,
12 "content_url": "https://stock.adobe.com/Rest/stock-photo/modern-album-layouts/121684652",
13 "media_type_id": 7,
14 "vector_type": null,
15 "content_type": "image/vnd.adobe.photoshop.template",
16 "height": 1424,
17 "width": 2048,
18 "details_url": "https://stock.adobe.com/121684652?as_channel=affiliate&as_source=api&as_content=73ebcc931b9c454b8cb150816fadb06a"
19 }, /*... more files */
20 ]
21}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.