+44 20 881 67284

34,610,525 Royalty Free Stock Photos

How to use the Fotolia API

Method: main/getData

This methods returns fotolia data

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

Returned Values

Element (path) Name Type Description
/ nb_media int total number of media on Fotolia
/languages/[n]/ name string available language name
/languages/[n]/ id int available language ID

Example Query

GET http://API_KEY@api.fotolia.com/Rest/1/main/getData

Example Response

{
	"nb_media":"1638137",
	"languages":{
		"1":{
			"id":1,
			"name":"French"
		},
		"2":{
			"id":2,
			"name":"American"
		},
		"3":{
			"id":3,
			"name":"English"
		},
		"4":{
			"id":4,
			"name":"German"
		},
		"5":{
			"id":5,
			"name":"Spanish"
		},
		"6":{
			"id":6,
			"name":"Italian"
		},
		"7":{
			"id":7,
			"name":"Portuguese"
		},
		"8":{
			"id":8,
			"name":"Brazilian"
		}
	}
}

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.