List countries
curl --request GET \
--url https://playground.runa.io/v2/product/countries \
--header 'X-Api-Key: <api-key>'import requests
url = "https://playground.runa.io/v2/product/countries"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://playground.runa.io/v2/product/countries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://playground.runa.io/v2/product/countries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://playground.runa.io/v2/product/countries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://playground.runa.io/v2/product/countries")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://playground.runa.io/v2/product/countries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"countries": [
"AT",
"AU",
"BE",
"CA",
"CH",
"CZ",
"DE",
"DK",
"ES",
"FI",
"FR",
"GB",
"GR",
"HU",
"IE",
"IT",
"JP",
"LU",
"MX",
"NL",
"NO",
"NZ",
"PL",
"PT",
"RO",
"SE",
"SG",
"SI",
"US",
"ZA"
]
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}List countries
Get a list of countries where products are available
GET
/
product
/
countries
List countries
curl --request GET \
--url https://playground.runa.io/v2/product/countries \
--header 'X-Api-Key: <api-key>'import requests
url = "https://playground.runa.io/v2/product/countries"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://playground.runa.io/v2/product/countries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://playground.runa.io/v2/product/countries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://playground.runa.io/v2/product/countries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://playground.runa.io/v2/product/countries")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://playground.runa.io/v2/product/countries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"countries": [
"AT",
"AU",
"BE",
"CA",
"CH",
"CZ",
"DE",
"DK",
"ES",
"FI",
"FR",
"GB",
"GR",
"HU",
"IE",
"IT",
"JP",
"LU",
"MX",
"NL",
"NO",
"NZ",
"PL",
"PT",
"RO",
"SE",
"SG",
"SI",
"US",
"ZA"
]
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}{
"type": "not-found",
"message": "The requested resource was not found",
"help": "Please check the resource ID and try again."
}Authorizations
Headers
The dated version of the API, if not specified a default is used. See API versioning for more information.
Response
A list of countries where products are available
ISO 3166 ALPHA-2 country code
Pattern:
^[A-Z]{2}$Example:
[
"AT",
"AU",
"BE",
"CA",
"CH",
"CZ",
"DE",
"DK",
"ES",
"FI",
"FR",
"GB",
"GR",
"HU",
"IE",
"IT",
"JP",
"LU",
"MX",
"NL",
"NO",
"NZ",
"PL",
"PT",
"RO",
"SE",
"SG",
"SI",
"US",
"ZA"
]
Was this page helpful?
⌘I