+44 20 881 67284

36,587,849 Royalty Free Stock Photos

How to use the Fotolia API

Method: media/getMediaComp

This method returns comp images. Comp images can ONLY be used to evaluate the image as to suitability for a project, obtain client or internal company approvals, or experiment with layout alternatives.


This method does not require authentication.

HTTP method

This method is called with HTTP method GET.


Argument Type Element (array) Valid Values Default Value Detail
id int existing media ID required Media ID (ID of the Media whose you want to purchase a license)

Returned Values

Element (path) Name Type Description
/ url string comp Image URL
/ width int comp image width (in px)
/ height int comp image height (in px)l

Example Query

GET http://API_KEY@api.fotolia.com/Rest/1/media/getMediaComp?id=20

Example Response


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.
100: Missing Media ID
The media ID is missing. Media ID is required for this method.
101: Invalid Media ID
The media ID passed is not valid or doesn't correspond to any media.
3101: Comp image not available
The media ID passed does not offer any comp image.