+44 20 881 67284

32,671,615 Royalty Free Stock Photos

How to use the Fotolia API

Method: search/getCountries

This method returns Fotolia list of countries.

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

Returned Values

Element (path) Name Type Description
/[n]/ name string country name
/[n]/ id int country ID
can be used for country search using getSearchResults

Example Query

GET http://API_KEY@api.fotolia.com/Rest/1/search/getCountries?language_id=2

Example Response

[
	{
		"id":4,
		"name":"Afghanistan"
	},
	{
		"id":248,
		"name":"Aland Islands"
	},
	{
		"id":8,
		"name":"Albania"
	},
	{
		"id":12,
		"name":"Algeria"
	},
	{
		"id":16,
		"name":"American Samoa"
	},
	{
		"id":20,
		"name":"Andorra"
	},
	{
		"id":24,
		"name":"Angola"
	},
	{
		"id":660,
		"name":"Anguilla"
	}
]

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