+44 20 881 67284

30,175,519 Royalty Free Stock Photos

How to use the Fotolia API

Method: media/getMediaGalleries

This methods return private galleries for logged user.

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 Search by media id
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
thumbnail_size Int
  • 30
  • 110
  • 400
110
  • Small (30px)
  • Medium (110px)
  • Large (400px - watermarked)

Returned Values

Element (path) Name Type Description
/[n]/ id int gallery unique ID
/[n]/ name string gallery name
/[n]/ nb_media int gallery media number
/[n]/ thumbnail_url string gallery thumbnail url
/[n]/ thumbnail_html_tag string gallery thumbnail html tag
/[n]/ thumbnail_width int gallery thumbnail width (px)
/[n]/ thumbnail_height int gallery thumbnail height(px)

Example Query

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

Example Response

[
	{
		"nb_media":"66",
		"id":"VzKgswYp1hXBvPTJdYIfi8lrs7OSlMo6",
		"name":"",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p2.fotolia.com\/jpg\/00\/00\/14\/15\/110_F_141537_h6K8IjXLmEgzHiWJlZ0fyGiVxkYUn6.jpg",
		"thumbnail_width":110,
		"thumbnail_height":73
	}
]

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.
2001: Invalid Language ID
The language ID passed is not valid or doesn't exist in the fotolia available language list.
2101: Invalid Thumbnail Size
The thumbnail size passed is not valid or doesn't exist in the fotolia available thumbnail size list.