+44 20 881 67284

30,077,140 Royalty Free Stock Photos

How to use the Fotolia API

Method: media/getHomePageImages

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

Returned Values

Element (path) Name Type Description
/[n]/ id int media ID
/[n]/ src string image URL
/[n]/ url string media URL

Example Query

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

Example Response

[
    {
        "id":"11446443",
        "src":"http:\/\/s.ftcdn.net\/r\/v2010\/87369f5eb317b385c3f9ba5d9ef7e9ca27b78f6e\/pics\/all\/fader\/11446443-1000-391-rounded.jpg",
        "url":"http:\/\/us.fotolia.com\/id\/11446443"
    },
    {
        "id":"11899054",
        "src":"http:\/\/s.ftcdn.net\/r\/v2010\/1056b4d35ae8f30ed36992bdc5fbdd96afe8139a\/pics\/all\/fader\/11899054-1000-391-rounded.jpg",
        "url":"http:\/\/us.fotolia.com\/id\/11899054"
    },
    {
        "id":"13062504",
        "src":"http:\/\/s.ftcdn.net\/r\/v2010\/566564ce18111c4fa4f4a6b9a4023e231e41ae09\/pics\/all\/fader\/13062504-1000-391-rounded.jpg",
        "url":"http:\/\/us.fotolia.com\/id\/13062504"
    },
    {
        "id":"16242290",
        "src":"http:\/\/s.ftcdn.net\/r\/v2010\/512d5b5bacc5a365a02b190a75066e069dc86957\/pics\/all\/fader\/16242290-1000-391-rounded.jpg",
        "url":"http:\/\/us.fotolia.com\/id\/16242290"
    }
]

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.