Sie können mit dem Parameter format entscheiden, welches Format die Antwort einer API-Methoden Aufrufs haben soll.
Folgende Formate stehen zur Verfügung:
Parameter-Wert: xml
Beispiel: http://webservice.rakuten.de/merchants/products/getProductLinks?format=xml
<?xml version="1.0" encoding="utf-8"?>
<result>
<success>1</success>
<links>
<link>
<link_id>2</link_id>
<title>Hersteller</title>
<url>http://www.hersteller.de</url>
</link>
<link>
<link_id>3</link_id>
<title>Google</title>
<url>http://www.google.de</url>
</link>
</links>
</result>
Parameter-Wert: json
Beispiel: http://webservice.rakuten.de/merchants/products/getProductLinks?format=json
{"result":{"success":"1","links":{"link":[{"link_id":"2","title":"Hersteller","url":"http:\/\/www.hersteller.de"},{"link_id":"3","title":"Google","url":"http:\/\/www.google.de"}]}}}
Parameter-Wert: php
Beispiel: http://webservice.rakuten.de/merchants/products/getProductLinks?format=php
a:1:{s:6:"result";a:2:{s:7:"success";s:1:"1";s:5:"links";a:1:{s:4:"link";a:2:{i:0;a:3:{s:7:"link_id";s:1:"2";s:5:"title";s:10:"Hersteller";s:3:"url";s:24:"http://www.hersteller.de";}i:1;a:3:{s:7:"link_id";s:1:"3";s:5:"title";s:6:"Google";s:3:"url";s:20:"http://www.google.de";}}}}}