/importgenius/companies
curl --request POST \
--url https://api.anysite.io/api/importgenius/companies \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"company": "<string>",
"timeout": 300
}
'import requests
url = "https://api.anysite.io/api/importgenius/companies"
payload = {
"company": "<string>",
"timeout": 300
}
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: '<string>', timeout: 300})
};
fetch('https://api.anysite.io/api/importgenius/companies', 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/importgenius/companies",
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' => '<string>',
'timeout' => 300
]),
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/importgenius/companies"
payload := strings.NewReader("{\n \"company\": \"<string>\",\n \"timeout\": 300\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/importgenius/companies")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company\": \"<string>\",\n \"timeout\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/importgenius/companies")
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\": \"<string>\",\n \"timeout\": 300\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"alias": "<string>",
"url": "<string>",
"country": "<string>",
"role": "<string>",
"name": "<string>",
"@type": "ImportgeniusCompany",
"address": "<string>",
"shipment_count": 123,
"inbound_shipment_count": 123,
"outbound_shipment_count": 123,
"origin_ports": [],
"destination_ports": [],
"yearly_shipments": [],
"sample_shipment": {
"@type": "ImportgeniusSampleShipment",
"shipment_id": "<string>",
"bol": "<string>",
"master_bol": "<string>",
"arrival_date": "<string>",
"added_date": "<string>",
"consignee": {
"@type": "ImportgeniusShipmentConsignee",
"name": "<string>",
"id": "<string>",
"url": "<string>",
"filer_id": "<string>",
"normalized_name": "<string>",
"address": "<string>",
"address_lines": [],
"address_parts": {
"@type": "ImportgeniusAddressParts",
"street_number": "<string>",
"street_name": "<string>",
"street_pre_type": "<string>",
"street_pre_directional": "<string>",
"street_post_type": "<string>",
"place_name": "<string>",
"state_name": "<string>",
"zip_code": "<string>",
"country_name": "<string>"
},
"street": "<string>",
"street_number": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"country": "<string>",
"destination": "<string>",
"contact": "<string>",
"contacts": [],
"phone": "<string>",
"fax": "<string>",
"emails": []
},
"shipper": {
"@type": "ImportgeniusShipmentShipper",
"name": "<string>",
"id": "<string>",
"url": "<string>",
"filer_id": "<string>",
"normalized_name": "<string>",
"address": "<string>",
"address_lines": [],
"city": "<string>",
"country": "<string>",
"contact": "<string>"
},
"origin_country": "<string>",
"origin_country_english": "<string>",
"departure_country": "<string>",
"product_description": "<string>",
"extra_descriptions": [],
"hs_code": "<string>",
"hs_code_description": "<string>",
"chapter_code": "<string>",
"chapter_description": "<string>",
"cn_code": "<string>",
"cn_description": "<string>",
"brand": "<string>",
"brand_id": "<string>",
"brand_fob": 123,
"brand_quantity": 123,
"variety": "<string>",
"item": "<string>",
"attributes": "<string>",
"product_id": "<string>",
"product_status": "<string>",
"merchandise_state": "<string>",
"quantity": 123,
"quantity_unit": "<string>",
"physical_quantity": 123,
"physical_unit": "<string>",
"previous_year_quantity": 123,
"previous_year_unit": "<string>",
"gross_weight": 123,
"gross_weight_kg": 123,
"gross_weight_lb": 123,
"total_gross_weight": 123,
"net_weight": 123,
"net_weight_kg": 123,
"net_weight_lb": 123,
"total_net_weight": 123,
"measurement": 123,
"measurement_unit": "<string>",
"package_count": 123,
"package_type": "<string>",
"transport": {
"@type": "ImportgeniusShipmentTransport",
"transportation_type": "<string>",
"transport_type": "<string>",
"company": "<string>",
"agency": "<string>",
"vessel": "<string>",
"vessel_name": "<string>",
"vessel_country": "<string>",
"voyage_number": "<string>",
"carrier_code": "<string>",
"carrier_name": "<string>",
"carrier_address": "<string>",
"carrier_city": "<string>",
"carrier_state": "<string>",
"carrier_zip": "<string>",
"place_of_receipt": "<string>",
"embarkation": "<string>",
"foreign_port": "<string>",
"port": "<string>",
"destination_port": "<string>",
"destination_port_english": "<string>",
"distribution_port": "<string>",
"landing": "<string>",
"load_type": "<string>",
"bill_type_code": "<string>",
"manifest_number": "<string>",
"in_bond_entry_type": "<string>",
"notify_party": "<string>",
"notify_party_address": "<string>",
"container_count": 123,
"container_types": [],
"marks_and_numbers": []
},
"value": {
"@type": "ImportgeniusShipmentValue",
"fob": 123,
"total_fob": 123,
"venezuela_fob": 123,
"cif": 123,
"total_cif": 123,
"venezuela_cif": 123,
"freight": 123,
"total_freight": 123,
"origin_freight": 123,
"insurance": 123,
"total_insurance": 123,
"origin_insurance": 123,
"tax": 123,
"total_taxable": 123,
"ad_valorem": 123,
"total_invoice": 123,
"invoice_price": 123,
"price_usd": 123,
"unit_price_usd": 123,
"unit_price_eur": 123,
"unit_price_inr": 123,
"currency_ratio": 123,
"amount": 123,
"incoterms": "<string>",
"payment_type": "<string>",
"pay_type": "<string>"
},
"customs": {
"@type": "ImportgeniusShipmentCustoms",
"customs": "<string>",
"custom": "<string>",
"custom_code": "<string>",
"custom_agent": "<string>",
"declaration": "<string>",
"declaration_number": "<string>",
"declarant_name": "<string>",
"declarant_address": "<string>",
"control_id": "<string>",
"operation_type": "<string>",
"importer_id": "<string>",
"acquisition": "<string>",
"verifier": "<string>",
"reviewer": "<string>",
"review_type": "<string>",
"payee_name": "<string>",
"payee_address": "<string>",
"bank": "<string>",
"bank_number": "<string>",
"remarks": "<string>",
"trading_country": "<string>",
"is_commercial": "<string>",
"is_private": "<string>",
"estate": "<string>",
"extra_field": "<string>"
},
"containers": []
},
"related_companies": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/importgenius
/importgenius/companies
Get one business profile built from customs bill-of-lading filings: name, filed address, total shipments and the split between shipments received and sent, the ports it loads and unloads at, a year-by-year shipment history, one full sample bill of lading with its commodity codes, declared values, transport, customs and container detail, and the businesses that trade the same lanes with their own top partners, ports and countries.
Price: 5 credits
⚠️ Common errors: 412: No ImportGenius profile under that id
POST
/
api
/
importgenius
/
companies
/importgenius/companies
curl --request POST \
--url https://api.anysite.io/api/importgenius/companies \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"company": "<string>",
"timeout": 300
}
'import requests
url = "https://api.anysite.io/api/importgenius/companies"
payload = {
"company": "<string>",
"timeout": 300
}
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: '<string>', timeout: 300})
};
fetch('https://api.anysite.io/api/importgenius/companies', 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/importgenius/companies",
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' => '<string>',
'timeout' => 300
]),
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/importgenius/companies"
payload := strings.NewReader("{\n \"company\": \"<string>\",\n \"timeout\": 300\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/importgenius/companies")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company\": \"<string>\",\n \"timeout\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/importgenius/companies")
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\": \"<string>\",\n \"timeout\": 300\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"alias": "<string>",
"url": "<string>",
"country": "<string>",
"role": "<string>",
"name": "<string>",
"@type": "ImportgeniusCompany",
"address": "<string>",
"shipment_count": 123,
"inbound_shipment_count": 123,
"outbound_shipment_count": 123,
"origin_ports": [],
"destination_ports": [],
"yearly_shipments": [],
"sample_shipment": {
"@type": "ImportgeniusSampleShipment",
"shipment_id": "<string>",
"bol": "<string>",
"master_bol": "<string>",
"arrival_date": "<string>",
"added_date": "<string>",
"consignee": {
"@type": "ImportgeniusShipmentConsignee",
"name": "<string>",
"id": "<string>",
"url": "<string>",
"filer_id": "<string>",
"normalized_name": "<string>",
"address": "<string>",
"address_lines": [],
"address_parts": {
"@type": "ImportgeniusAddressParts",
"street_number": "<string>",
"street_name": "<string>",
"street_pre_type": "<string>",
"street_pre_directional": "<string>",
"street_post_type": "<string>",
"place_name": "<string>",
"state_name": "<string>",
"zip_code": "<string>",
"country_name": "<string>"
},
"street": "<string>",
"street_number": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"country": "<string>",
"destination": "<string>",
"contact": "<string>",
"contacts": [],
"phone": "<string>",
"fax": "<string>",
"emails": []
},
"shipper": {
"@type": "ImportgeniusShipmentShipper",
"name": "<string>",
"id": "<string>",
"url": "<string>",
"filer_id": "<string>",
"normalized_name": "<string>",
"address": "<string>",
"address_lines": [],
"city": "<string>",
"country": "<string>",
"contact": "<string>"
},
"origin_country": "<string>",
"origin_country_english": "<string>",
"departure_country": "<string>",
"product_description": "<string>",
"extra_descriptions": [],
"hs_code": "<string>",
"hs_code_description": "<string>",
"chapter_code": "<string>",
"chapter_description": "<string>",
"cn_code": "<string>",
"cn_description": "<string>",
"brand": "<string>",
"brand_id": "<string>",
"brand_fob": 123,
"brand_quantity": 123,
"variety": "<string>",
"item": "<string>",
"attributes": "<string>",
"product_id": "<string>",
"product_status": "<string>",
"merchandise_state": "<string>",
"quantity": 123,
"quantity_unit": "<string>",
"physical_quantity": 123,
"physical_unit": "<string>",
"previous_year_quantity": 123,
"previous_year_unit": "<string>",
"gross_weight": 123,
"gross_weight_kg": 123,
"gross_weight_lb": 123,
"total_gross_weight": 123,
"net_weight": 123,
"net_weight_kg": 123,
"net_weight_lb": 123,
"total_net_weight": 123,
"measurement": 123,
"measurement_unit": "<string>",
"package_count": 123,
"package_type": "<string>",
"transport": {
"@type": "ImportgeniusShipmentTransport",
"transportation_type": "<string>",
"transport_type": "<string>",
"company": "<string>",
"agency": "<string>",
"vessel": "<string>",
"vessel_name": "<string>",
"vessel_country": "<string>",
"voyage_number": "<string>",
"carrier_code": "<string>",
"carrier_name": "<string>",
"carrier_address": "<string>",
"carrier_city": "<string>",
"carrier_state": "<string>",
"carrier_zip": "<string>",
"place_of_receipt": "<string>",
"embarkation": "<string>",
"foreign_port": "<string>",
"port": "<string>",
"destination_port": "<string>",
"destination_port_english": "<string>",
"distribution_port": "<string>",
"landing": "<string>",
"load_type": "<string>",
"bill_type_code": "<string>",
"manifest_number": "<string>",
"in_bond_entry_type": "<string>",
"notify_party": "<string>",
"notify_party_address": "<string>",
"container_count": 123,
"container_types": [],
"marks_and_numbers": []
},
"value": {
"@type": "ImportgeniusShipmentValue",
"fob": 123,
"total_fob": 123,
"venezuela_fob": 123,
"cif": 123,
"total_cif": 123,
"venezuela_cif": 123,
"freight": 123,
"total_freight": 123,
"origin_freight": 123,
"insurance": 123,
"total_insurance": 123,
"origin_insurance": 123,
"tax": 123,
"total_taxable": 123,
"ad_valorem": 123,
"total_invoice": 123,
"invoice_price": 123,
"price_usd": 123,
"unit_price_usd": 123,
"unit_price_eur": 123,
"unit_price_inr": 123,
"currency_ratio": 123,
"amount": 123,
"incoterms": "<string>",
"payment_type": "<string>",
"pay_type": "<string>"
},
"customs": {
"@type": "ImportgeniusShipmentCustoms",
"customs": "<string>",
"custom": "<string>",
"custom_code": "<string>",
"custom_agent": "<string>",
"declaration": "<string>",
"declaration_number": "<string>",
"declarant_name": "<string>",
"declarant_address": "<string>",
"control_id": "<string>",
"operation_type": "<string>",
"importer_id": "<string>",
"acquisition": "<string>",
"verifier": "<string>",
"reviewer": "<string>",
"review_type": "<string>",
"payee_name": "<string>",
"payee_address": "<string>",
"bank": "<string>",
"bank_number": "<string>",
"remarks": "<string>",
"trading_country": "<string>",
"is_commercial": "<string>",
"is_private": "<string>",
"estate": "<string>",
"extra_field": "<string>"
},
"containers": []
},
"related_companies": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I