+1 (888) 674-2299

28,183,243 Royalty Free Stock Photos

How to use the Fotolia API

Method: media/getLicense

Return the license between the reseller and the requested subaccount.

Authentication

This method does not require authentication.

HTTP method

This method is called with HTTP method GET.

Arguments

Argument Type Valid Values Default Value Detail
id int existing media ID required Media ID (ID of the Media whose you want to get a license)
license_name string existing license name for this Media ID required license name
language_id int
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 11
  • 12
  • 13
  • 14
  • 15
  • 22
  • 23
2
  • French
  • American
  • English
  • German
  • Spanish
  • Italian
  • Portuguese
  • Brazilian
  • Japanese
  • Polish
  • Russian
  • Chinese
  • Turkish
  • Korean
  • Dutch
  • Swedish
subaccount_id int Valid Values optional sub account ID

Returned Values

Element (path) Type Description
/ string License text

Example Query

GET http://API_KEY@api.fotolia.com/Rest/1/media/getLicense?id=5834887&license_name=XS&language_id=200652576

Example Response

"API Reseller Agreement ... "

Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The request could not be parsed.
010: Missing API Key
The API key passed is missing.
011: Invalid API Key
The API key passed is not valid or has expired.
031: Invalid Method
This method does not exist in the method list.
032: Method not Available
This method is not available for this API Key.
7002: Unknown Subbaccount ID
This Subbaccount has already been deleted, or is not your list of subaccounts.