+49 (0)30 208 96 208

28.230.408 lizenzfreie Fotos,
Videos und Vektoren.

Wie arbeitet die Fotolia API?

Method: getGalleries

This methods returns public galleries for a defined language

Authentication

This method does not require authentication.

Arguments

Argument Type Valid Values Default Value Detail
api_key string Valid Values required you need a valid api key to use the API
language_id Int
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 11
  • 12
  • 13
  • 14
2
  • French
  • English US
  • English UK
  • German
  • Spanish
  • Italian
  • Portuguese PT
  • Portuguese BR
  • Japanese
  • Polish
  • Russian
  • Chinese
  • Turkish
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


<?xml version="1.0" encoding="utf-8"?>
<methodCall>
    <methodName>xmlrpc.getGalleries</methodName>
    <params>
        <param>
            <value>
                <string>bSvckxpOlCJSU4hLrMyJTnhBbXX3Jt</string>
            </value>
        </param>
        <param>
            <value>
                <int>2</int>
            </value>
        </param>
    </params>
</methodCall>

Example Response


<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <array>
          <data>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <int>94</int>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>416e12af</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Physical Fitness</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p2.fotolia.com/jpg/00/00/34/45/110_F_344506_sMVocuD1gTmREXyuZEB8m5j2h0Ibu4.jpg" alt="grunge snow" title="grunge snow" width="110" height="110" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p2.fotolia.com/jpg/00/00/34/45/110_F_344506_sMVocuD1gTmREXyuZEB8m5j2h0Ibu4.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <double>110</double>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>107</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>fc9f69a8</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Medical</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p2.fotolia.com/jpg/00/00/02/97/110_F_29775_X1hIXvA306q5hIBQRpQB3fPvAYRgQf.jpg" alt="tablets" title="tablets" width="110" height="73" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p2.fotolia.com/jpg/00/00/02/97/110_F_29775_X1hIXvA306q5hIBQRpQB3fPvAYRgQf.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <double>73</double>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>23</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>8e5ee816</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Graduation</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p2.fotolia.com/jpg/00/00/45/27/110_F_452786_k8VfBqrWgCMN23QRbc8VfYhMttYikk.jpg" alt="adolescent develops a future in education" title="adolescent develops a future in education" width="73" height="110" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p2.fotolia.com/jpg/00/00/45/27/110_F_452786_k8VfBqrWgCMN23QRbc8VfYhMttYikk.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <double>73</double>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>53</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>b497ce33</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Beach Vacation</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p1.fotolia.com/jpg/00/00/02/56/110_F_25651_xHRFB7vj2p8Z0AF3rn67HMJkBda1Kl.jpg" alt="beautiful tropical beach" title="beautiful tropical beach" width="110" height="73" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p1.fotolia.com/jpg/00/00/02/56/110_F_25651_xHRFB7vj2p8Z0AF3rn67HMJkBda1Kl.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <double>73</double>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>35</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>d2cb1621</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Scuba</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p2.fotolia.com/jpg/00/00/09/63/110_F_96379_lsFGvnoprjkldfgg4wS7zN2CENXh45.jpg" alt="ss new york" title="ss new york" width="83" height="110" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p2.fotolia.com/jpg/00/00/09/63/110_F_96379_lsFGvnoprjkldfgg4wS7zN2CENXh45.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <double>83</double>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>58</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>7cf51991</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Golf</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p1.fotolia.com/jpg/00/00/25/82/110_F_258264_jMs2h0IFBdvjfgUvjXTuiWxGCe5Fgz.jpg" alt="ball in a hole" title="ball in a hole" width="110" height="83" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p1.fotolia.com/jpg/00/00/25/82/110_F_258264_jMs2h0IFBdvjfgUvjXTuiWxGCe5Fgz.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <double>83</double>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>33</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>00bf5516</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Symbols of America</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p1.fotolia.com/jpg/00/00/02/72/110_F_27217_xqiEGmnoyz0OXCMWpqrWAKz9b89WpL.jpg" alt="sun shines through flag at half mast." title="sun shines through flag at half mast." width="110" height="83" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p1.fotolia.com/jpg/00/00/02/72/110_F_27217_xqiEGmnoyz0OXCMWpqrWAKz9b89WpL.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <double>83</double>
                  </value>
                </member>
              </struct>
            </value>
            <value>
              <struct>
                <member>
                  <name>nb_media</name>
                  <value>
                    <string>40</string>
                  </value>
                </member>
                <member>
                  <name>id</name>
                  <value>
                    <string>f1c126c4</string>
                  </value>
                </member>
                <member>
                  <name>name</name>
                  <value>
                    <string>Soccer</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_html_tag</name>
                  <value>
                    <string><img src="http://static-p1.fotolia.com/jpg/00/00/05/76/110_F_57675_0CZj6c892YDrtPZENOmISlHwS7d9fg.jpg" alt="football" title="football" width="110" height="73" /></string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_url</name>
                  <value>
                    <string>http://static-p1.fotolia.com/jpg/00/00/05/76/110_F_57675_0CZj6c892YDrtPZENOmISlHwS7d9fg.jpg</string>
                  </value>
                </member>
                <member>
                  <name>thumbnail_width</name>
                  <value>
                    <int>110</int>
                  </value>
                </member>
                <member>
                  <name>thumbnail_height</name>
                  <value>
                    <double>73</double>
                  </value>
                </member>
              </struct>
            </value>
          </data>
        </array>
      </value>
    </param>
  </params>
</methodResponse>

Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The XML-RPC request document 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.