+44 20 881 67284

32,503,877 Royalty Free Stock Photos

How to use the Fotolia API

Method: search/getGalleries

This methods returns public galleries for a defined language

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
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
  • 110
  • 160
  • 400
110
  • Small (110px)
  • Medium (160px)
  • Large (400px - watermarked)

Returned Values

Element (path) Name Type Description
/[n]/ id string 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/search/getGalleries?language_id=2

Example Response

[
	{
		"nb_media":94,
		"id":"416e12af",
		"name":"Physical Fitness",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p2.fotolia.com\/jpg\/00\/00\/34\/45\/110_F_344506_sMVocuD1gTmREXyuZEB8m5j2h0Ibu4.jpg",
		"thumbnail_width":110,
		"thumbnail_height":110
	},
	{
		"nb_media":"107",
		"id":"fc9f69a8",
		"name":"Medical",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p2.fotolia.com\/jpg\/00\/00\/02\/97\/110_F_29775_X1hIXvA306q5hIBQRpQB3fPvAYRgQf.jpg",
		"thumbnail_width":110,
		"thumbnail_height":73
	},
	{
		"nb_media":"23",
		"id":"8e5ee816",
		"name":"Graduation",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p2.fotolia.com\/jpg\/00\/00\/45\/27\/110_F_452786_k8VfBqrWgCMN23QRbc8VfYhMttYikk.jpg",
		"thumbnail_width":73,
		"thumbnail_height":110
	},
	{
		"nb_media":"53",
		"id":"b497ce33",
		"name":"Beach Vacation",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p1.fotolia.com\/jpg\/00\/00\/02\/56\/110_F_25651_xHRFB7vj2p8Z0AF3rn67HMJkBda1Kl.jpg",
		"thumbnail_width":110,
		"thumbnail_height":73
	},
	{
		"nb_media":"35",
		"id":"d2cb1621",
		"name":"Scuba",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p2.fotolia.com\/jpg\/00\/00\/09\/63\/110_F_96379_lsFGvnoprjkldfgg4wS7zN2CENXh45.jpg",
		"thumbnail_width":83,
		"thumbnail_height":110
	},
	{
		"nb_media":"58",
		"id":"7cf51991",
		"name":"Golf",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p1.fotolia.com\/jpg\/00\/00\/25\/82\/110_F_258264_jMs2h0IFBdvjfgUvjXTuiWxGCe5Fgz.jpg",
		"thumbnail_width":110,
		"thumbnail_height":83
	},
	{
		"nb_media":"33",
		"id":"00bf5516",
		"name":"Symbols of America",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p1.fotolia.com\/jpg\/00\/00\/02\/72\/110_F_27217_xqiEGmnoyz0OXCMWpqrWAKz9b89WpL.jpg",
		"thumbnail_width":110,
		"thumbnail_height":83
	},
	{
		"nb_media":"40",
		"id":"f1c126c4",
		"name":"Soccer",
		"thumbnail_html_tag":"",
		"thumbnail_url":"http:\/\/static-p1.fotolia.com\/jpg\/00\/00\/05\/76\/110_F_57675_0CZj6c892YDrtPZENOmISlHwS7d9fg.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.
2001: Invalid Language ID
The language ID passed is not valid or doesn't exist in the fotolia available language list.