/gs1/companies/search
curl --request POST \
--url https://api.anysite.io/api/gs1/companies/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"company_name": "<string>",
"count": 10,
"timeout": 300,
"city": "",
"postal_code": "",
"street_address": ""
}
'import requests
url = "https://api.anysite.io/api/gs1/companies/search"
payload = {
"company_name": "<string>",
"count": 10,
"timeout": 300,
"city": "",
"postal_code": "",
"street_address": ""
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_name: '<string>',
count: 10,
timeout: 300,
city: '',
postal_code: '',
street_address: ''
})
};
fetch('https://api.anysite.io/api/gs1/companies/search', 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://api.anysite.io/api/gs1/companies/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_name' => '<string>',
'count' => 10,
'timeout' => 300,
'city' => '',
'postal_code' => '',
'street_address' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/gs1/companies/search"
payload := strings.NewReader("{\n \"company_name\": \"<string>\",\n \"count\": 10,\n \"timeout\": 300,\n \"city\": \"\",\n \"postal_code\": \"\",\n \"street_address\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/gs1/companies/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"<string>\",\n \"count\": 10,\n \"timeout\": 300,\n \"city\": \"\",\n \"postal_code\": \"\",\n \"street_address\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/gs1/companies/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_name\": \"<string>\",\n \"count\": 10,\n \"timeout\": 300,\n \"city\": \"\",\n \"postal_code\": \"\",\n \"street_address\": \"\"\n}"
response = http.request(request)
puts response.read_body[
{
"@type": "Gs1Company",
"name": "",
"address": "",
"website": "",
"city": "",
"country": "",
"license_key": "",
"license_type": "",
"gln": "",
"member_organization": "",
"updated_at": ""
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/gs1
/gs1/companies/search
Search GS1 licensee companies by name and country
Price: 10 credits
POST
/
api
/
gs1
/
companies
/
search
/gs1/companies/search
curl --request POST \
--url https://api.anysite.io/api/gs1/companies/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"company_name": "<string>",
"count": 10,
"timeout": 300,
"city": "",
"postal_code": "",
"street_address": ""
}
'import requests
url = "https://api.anysite.io/api/gs1/companies/search"
payload = {
"company_name": "<string>",
"count": 10,
"timeout": 300,
"city": "",
"postal_code": "",
"street_address": ""
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_name: '<string>',
count: 10,
timeout: 300,
city: '',
postal_code: '',
street_address: ''
})
};
fetch('https://api.anysite.io/api/gs1/companies/search', 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://api.anysite.io/api/gs1/companies/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_name' => '<string>',
'count' => 10,
'timeout' => 300,
'city' => '',
'postal_code' => '',
'street_address' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/gs1/companies/search"
payload := strings.NewReader("{\n \"company_name\": \"<string>\",\n \"count\": 10,\n \"timeout\": 300,\n \"city\": \"\",\n \"postal_code\": \"\",\n \"street_address\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/gs1/companies/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"<string>\",\n \"count\": 10,\n \"timeout\": 300,\n \"city\": \"\",\n \"postal_code\": \"\",\n \"street_address\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/gs1/companies/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_name\": \"<string>\",\n \"count\": 10,\n \"timeout\": 300,\n \"city\": \"\",\n \"postal_code\": \"\",\n \"street_address\": \"\"\n}"
response = http.request(request)
puts response.read_body[
{
"@type": "Gs1Company",
"name": "",
"address": "",
"website": "",
"city": "",
"country": "",
"license_key": "",
"license_type": "",
"gln": "",
"member_organization": "",
"updated_at": ""
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Minimum string length:
1Available options:
all, AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, TW, CX, CC, CO, KM, CD, CG, CK, CR, HR, CU, CW, CY, CZ, CI, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, XK, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MK, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SE, CH, SY, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TM, TC, TV, TR, UG, UA, AE, GB, UM, US, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, AX Required range:
1 <= x <= 20Required range:
20 <= x <= 1500Response
Successful Response