public array KeywordMarkets()
To help you select the correct targeted markets for the keywords , we offer you the possibility to take a look at the market codes allowed by our system. We've put all the codes allowed by our system in an XML feed:
<?php
/* URL to Sedo's API */
$baseUrl = 'https://api.sedo.com/api/v1/KeywordMarkets?';
/* API function parameters */
$params = [
'output_method' => 'xml',
];
/* build request URL */
$request = $baseUrl . http_build_query($params);
/* fire API request */
$fp = @fopen($request, 'r');
/* read response line by line */
while (!@feof($fp)) {
echo fread($fp, 4096);
}
/* close the connection */
fclose($fp);
For a successful request, you will receive an XML document as response in the following format:
<?xml version="1.0" encoding="UTF-8"?>
<SEDOKEYWORDMARKETS ver="1.0">
<market code="xyz">Other</market>
<market code="ger">German</market>
⋮
<market code="afe">Africa (East)</market>
<market code="afs">Africa (South)</market>
</SEDOKEYWORDMARKETS>