{"components":{"securitySchemes":{"bearerAuth":{"scheme":"bearer","type":"http"}}},"info":{"description":"","title":"Global Trade & Customs","version":"1","x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","quote":{"header":"X-AISA-Cost-Mode","value":"quote"}},"x-aisa-catalogs":{"trade":{"description":"","title":"Global Trade & Customs","x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","quote":{"header":"X-AISA-Cost-Mode","value":"quote"}},"x-aisa-document":{"facts_hash":"04609443cc30a0604ea1e6aabafe6ce20e6610145902fdad90731566707b2b23","generator_version":"3","protocol_version":"1","schema_version":"1"},"x-aisa-plans":{"builder":1.0,"display_plan":"payg","payg":1.0,"similarweb_payg":1.0,"team":1.0,"version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"}}},"x-aisa-configured-paths":["/apis/v1/trade/companies/lookup","/apis/v1/trade/companies/search","/apis/v1/trade/companies/{id}","/apis/v1/trade/companies/{id}/contacts","/apis/v1/trade/companies/{id}/partners","/apis/v1/trade/companies/{id}/shipments","/apis/v1/trade/coverage","/apis/v1/trade/hs-codes","/apis/v1/trade/leads/find","/apis/v1/trade/markets/brief","/apis/v1/trade/shipments/search","/apis/v1/trade/stats/query"],"x-aisa-document":{"composer_version":"31","document_hash":"sha256:2701c7a014a31cae225348fbb39fce0f5996d7cf9e0f2480b35662ee4f9b1b6a","facts_hash":"04609443cc30a0604ea1e6aabafe6ce20e6610145902fdad90731566707b2b23","generator_version":"3","protocol_version":"1","response_pending":[],"schema_version":"1"},"x-aisa-plans":{"builder":1.0,"display_plan":"payg","payg":1.0,"similarweb_payg":1.0,"team":1.0,"version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"},"x-aisa-provider":"trade"},"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","openapi":"3.1.0","paths":{"/apis/v1/trade/companies/lookup":{"get":{"description":"Global Trade & Customs API (trade.companies.lookup)","operationId":"trade.companies.lookup","parameters":[{"examples":{"default":{"value":"US"},"minimal":{"value":"US"}},"in":"query","name":"country","required":false,"schema":{"maxLength":80,"minLength":2,"type":"string"}},{"examples":{"default":{"value":1},"minimal":{"value":1}},"in":"query","name":"limit","required":false,"schema":{"default":5,"maximum":10,"minimum":1,"type":"integer"}},{"examples":{"default":{"value":"Walmart"},"minimal":{"value":"Walmart"}},"in":"query","name":"q","required":true,"schema":{"maxLength":200,"minLength":2,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The candidates, best match first.","items":{"additionalProperties":false,"properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}],"description":"Where the company is, from its address when one is on file, otherwise the country of its records."},"id":{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},"last_shipment":{"description":"Date of its latest record, `YYYY-MM-DD`.","type":["string","null"]},"name":{"description":"Name as written on shipping documents.","type":"string"},"shipments":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"All shipment records of the company, when known."},"website":{"description":"Bare domain, such as `example.com`. Often null.","type":["string","null"]}},"required":["id","name","country","website","shipments","last_shipment"],"type":"object"},"type":"array"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in.","propertyNames":{"type":"string"},"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Look up a trade company by name or domain","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":true},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-companies-lookup","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"fixed_success","default_request_estimate_usd":0.02,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"b44507c67333","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"dba62eb2f02e"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.companies.lookup","path":"/apis/v1/trade/companies/lookup"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/trade/companies/lookup?country=US&limit=1&q=Walmart' \\\n  --header 'Authorization: Bearer <token>'"}]}},"/apis/v1/trade/companies/search":{"post":{"description":"Global Trade & Customs API (trade.companies.search)","operationId":"trade.companies.search","requestBody":{"content":{"application/json":{"examples":{"default":{"value":{"hs_code":"847130","importer_country":"US","limit":1,"role":"importer"}},"minimal":{"value":{"hs_code":"847130","importer_country":"US","limit":1,"role":"importer"}}},"schema":{"additionalProperties":false,"allOf":[{"anyOf":[{"properties":{"hs_code":{}},"required":["hs_code"]},{"properties":{"product":{}},"required":["product"]},{"properties":{"trading_with":{}},"required":["trading_with"]}]}],"properties":{"cursor":{"maxLength":200,"minLength":1,"type":"string"},"exclude_forwarders":{"default":true,"type":"boolean"},"exporter_country":{"maxLength":80,"minLength":2,"type":"string"},"hs_code":{"maxLength":10,"minLength":6,"pattern":"^[0-9]{6,10}$","type":"string"},"importer_country":{"maxLength":80,"minLength":2,"type":"string"},"limit":{"default":10,"maximum":100,"minimum":1,"type":"integer"},"product":{"maxLength":100,"minLength":2,"type":"string"},"role":{"enum":["exporter","importer"],"type":"string"},"since":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},"sort":{"default":"shipments","enum":["recorded_value","shipments"],"type":"string"},"trading_with":{"maxLength":200,"minLength":2,"type":"string"},"until":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}},"required":["role"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The results of this page.","items":{"additionalProperties":false,"properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}],"description":"Country the company imports into or exports from in these records."},"id":{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},"name":{"description":"Name as written on shipping documents.","type":"string"},"recorded_value_usd":{"description":"Sum of the declared values of the records that have one, in US dollars. A lower bound: US bills of lading carry no value.","type":["number","null"]},"role":{"description":"The side it is on in these records.","enum":["importer","exporter"],"type":"string"},"sample_product":{"description":"A goods description from one of its records.","type":["string","null"]},"shipments":{"description":"Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.","type":"integer"},"website":{"description":"Bare domain, such as `example.com`. Often null.","type":["string","null"]}},"required":["id","name","role","country","shipments","recorded_value_usd","website","sample_product"],"type":"object"},"type":"array"},"has_more":{"description":"Whether more results follow this page.","type":"boolean"},"next_cursor":{"description":"Pass it as `cursor` to get the next page. Null on the last page.","type":["string","null"]},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in. `data_through` says how recent the records behind the answer are.","properties":{"data_through":{"description":"Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete.","type":["string","null"]}},"required":["data_through"],"type":"object"},"total":{"description":"How many results match in all. Use it to decide between paging on and narrowing the query.","type":"integer"}},"required":["data","total","has_more","next_cursor","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Search importing or exporting companies","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-constraints":{"required_any_of":[[{"in":"body","name":"hs_code","selector":"/hs_code"},{"in":"body","name":"product","selector":"/product"},{"in":"body","name":"trading_with","selector":"/trading_with"}]]},"x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-companies-search","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.01,"default_request_estimate_usd":0.01,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"5b9385aa6f6a","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"d188a505a840"},"x-aisa-runtime-operation":{"method":"POST","operation_id":"trade.companies.search","path":"/apis/v1/trade/companies/search"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/trade/companies/search \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"hs_code\": \"847130\",\n  \"importer_country\": \"US\",\n  \"limit\": 1,\n  \"role\": \"importer\"\n}'"}]}},"/apis/v1/trade/companies/{id}":{"get":{"description":"Global Trade & Customs API (trade.companies.id)","operationId":"trade.companies.id","parameters":[{"examples":{"default":{"value":"co_g7sfqjqgfxj3"},"minimal":{"value":"co_g7sfqjqgfxj3"}},"in":"path","name":"id","required":true,"schema":{"maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"description":"Company trade profile and overview.","properties":{"address":{"description":"Address as on its records.","type":["string","null"]},"channels":{"additionalProperties":false,"description":"Ways to reach the company that it publishes itself. People are in `contacts`.","properties":{"emails":{"description":"Shared addresses such as `info@` and `sales@`.","items":{"type":"string"},"type":"array"},"messaging":{"description":"WhatsApp, WeChat, Zalo, LINE, Skype and Telegram contacts the company gives.","items":{"additionalProperties":false,"properties":{"app":{"enum":["whatsapp","wechat","zalo","line","skype","telegram"],"type":"string"},"value":{"description":"A number in E.164 for WhatsApp, else the ID or number as printed.","type":"string"}},"required":["app","value"],"type":"object"},"type":"array"},"phones":{"description":"Phone numbers the company publishes: in E.164, such as `+4952112340`, when the country can be told, else as printed. Fax numbers are left out.","items":{"type":"string"},"type":"array"},"social":{"additionalProperties":false,"description":"Links to its public pages. Null where none is known.","properties":{"facebook":{"type":["string","null"]},"instagram":{"type":["string","null"]},"linkedin":{"type":["string","null"]},"pinterest":{"type":["string","null"]},"tiktok":{"type":["string","null"]},"twitter":{"type":["string","null"]},"youtube":{"type":["string","null"]}},"required":["linkedin","facebook","twitter","instagram","youtube","tiktok","pinterest"],"type":"object"}},"required":["emails","phones","messaging","social"],"type":"object"},"contacts":{"description":"Always null on profile lookup; use GET /apis/v1/trade/companies/{id}/contacts.","type":"null"},"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}],"description":"Where the company is: the country its address names, otherwise the country of its records. It can differ from the `country` of search results, which is where its goods were declared."},"id":{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},"name":{"description":"Name as written on shipping documents.","type":"string"},"partners":{"description":"Always null on profile lookup; use GET /apis/v1/trade/companies/{id}/partners.","type":"null"},"recent_shipments":{"description":"Always null on profile lookup; use GET /apis/v1/trade/companies/{id}/shipments.","type":"null"},"trade":{"anyOf":[{"additionalProperties":false,"properties":{"buyers":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of distinct buyers."},"hs_codes":{"description":"HS codes it trades, digits only.","items":{"type":"string"},"type":"array"},"last_shipment":{"description":"Date of its latest record, `YYYY-MM-DD`.","type":["string","null"]},"shipments":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"All shipment records of the company."},"suppliers":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of distinct suppliers."}},"required":["shipments","suppliers","buyers","hs_codes","last_shipment"],"type":"object"},{"type":"null"}],"description":"Null when no trade summary is known yet."},"type":{"anyOf":[{"enum":["importer","exporter","both"],"type":"string"},{"type":"null"}],"description":"Whether it imports, exports or both, by its records."},"website":{"description":"Bare domain, such as `example.com`. Null when not known.","type":["string","null"]}},"required":["id","name","country","type","website","address","channels","trade"],"type":"object"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in.","propertyNames":{"type":"string"},"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Get a company's trade profile and overview","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":true},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-companies-id","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"fixed_success","default_request_estimate_usd":0.04,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"e61009e42f2b","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"8658a1836057"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.companies.id","path":"/apis/v1/trade/companies/{id}"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url https://api.aisa.one/apis/v1/trade/companies/co_g7sfqjqgfxj3 \\\n  --header 'Authorization: Bearer <token>'"}]}},"/apis/v1/trade/companies/{id}/contacts":{"get":{"description":"Global Trade & Customs API (trade.companies.id.contacts)","operationId":"trade.companies.id.contacts","parameters":[{"examples":{"default":{"value":"co_g7sfqjqgfxj3"},"minimal":{"value":"co_g7sfqjqgfxj3"}},"in":"path","name":"id","required":true,"schema":{"maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$","type":"string"}},{"in":"query","name":"department","required":false,"schema":{"type":"string","x-aisa-delimiter":",","x-aisa-item-pattern":"^(purchasing|sales|management|operations|marketing|finance|engineering|quality|it|hr|legal)$","x-aisa-maxItems":11,"x-aisa-minItems":1}},{"in":"query","name":"domain","required":false,"schema":{"maxLength":253,"minLength":3,"type":"string"}},{"examples":{"default":{"value":1},"minimal":{"value":1}},"in":"query","name":"limit","required":false,"schema":{"default":5,"maximum":25,"minimum":1,"type":"integer"}},{"in":"query","name":"min_email_status","required":false,"schema":{"default":"verified","enum":["risky","verified"],"type":"string"}},{"in":"query","name":"seniority","required":false,"schema":{"type":"string","x-aisa-delimiter":",","x-aisa-item-pattern":"^(owner|c_level|executive|manager|senior|staff)$","x-aisa-maxItems":6,"x-aisa-minItems":1}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The best people to approach first.","items":{"additionalProperties":false,"properties":{"department":{"anyOf":[{"enum":["purchasing","sales","management","operations","marketing","finance","engineering","quality","it","hr","legal"],"type":"string"},{"type":"null"}],"description":"Department, read from the title."},"email":{"description":"Work email on the company's own domain.","type":"string"},"email_status":{"description":"`verified`: the mailbox exists. `risky`: the domain accepts every address, so the mailbox cannot be confirmed.","enum":["verified","risky"],"type":"string"},"id":{"description":"Person ID, such as `per_4m7q2x9k1c8d`: stable across trade endpoints for the same full name at the same company.","type":"string"},"linkedin_url":{"description":"The person's LinkedIn profile, when known.","type":["string","null"]},"name":{"description":"Full name.","type":["string","null"]},"other_email":{"description":"Another email address listed for the person. Often on the company's domain too, but it can be a private address, and it is not verified.","type":["string","null"]},"phones":{"description":"Phone numbers listed for the person: a direct line, a mobile or the company's switchboard. Not verified.","items":{"type":"string"},"type":"array"},"seniority":{"anyOf":[{"enum":["owner","c_level","executive","manager","senior","staff"],"type":"string"},{"type":"null"}],"description":"Level, read from the title."},"title":{"description":"Job title.","type":["string","null"]}},"required":["id","name","title","seniority","department","email","email_status","linkedin_url"],"type":"object"},"type":"array"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood, with the website that was searched and how the contacts were found.","properties":{"domain":{"description":"The website the contacts were looked for on: `domain` when it was given, otherwise the company's own. Null when none is known.","type":["string","null"]},"resolution":{"additionalProperties":false,"description":"How the result was found.","properties":{"exhausted":{"description":"True when every source was tried: asking again will not find more. False when the search stopped early (enough was found, a source did not answer, or time ran out), so asking again can find more.","type":"boolean"},"mode":{"const":"waterfall","type":"string"},"steps_tried":{"description":"How many sources were tried, in order, cheapest first.","type":"integer"}},"required":["mode","steps_tried","exhausted"],"type":"object"}},"required":["domain","resolution"],"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Find decision-maker contacts with verified work emails at a company","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-companies-id-contacts","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.03,"default_request_estimate_usd":0.03,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"a0ce0e38fe52","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"f00ad476700e"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.companies.id.contacts","path":"/apis/v1/trade/companies/{id}/contacts"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/trade/companies/co_g7sfqjqgfxj3/contacts?limit=1' \\\n  --header 'Authorization: Bearer <token>'"}]}},"/apis/v1/trade/companies/{id}/partners":{"get":{"description":"Global Trade & Customs API (trade.companies.id.partners)","operationId":"trade.companies.id.partners","parameters":[{"examples":{"default":{"value":"co_g7sfqjqgfxj3"},"minimal":{"value":"co_g7sfqjqgfxj3"}},"in":"path","name":"id","required":true,"schema":{"maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$","type":"string"}},{"in":"query","name":"cursor","required":false,"schema":{"maxLength":200,"minLength":1,"type":"string"}},{"in":"query","name":"hs_code","required":false,"schema":{"maxLength":10,"minLength":6,"pattern":"^[0-9]{6,10}$","type":"string"}},{"examples":{"default":{"value":1},"minimal":{"value":1}},"in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":100,"minimum":1,"type":"integer"}},{"examples":{"default":{"value":"supplier"},"minimal":{"value":"supplier"}},"in":"query","name":"role","required":false,"schema":{"default":"supplier","enum":["buyer","supplier"],"type":"string"}},{"in":"query","name":"since","required":false,"schema":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}},{"in":"query","name":"sort","required":false,"schema":{"default":"shipments","enum":["recorded_value","shipments"],"type":"string"}},{"in":"query","name":"until","required":false,"schema":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The results of this page.","items":{"additionalProperties":false,"properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}]},"id":{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},"name":{"description":"Name as written on shipping documents.","type":"string"},"recorded_value_usd":{"description":"Sum of the declared values of the records that have one, in US dollars. A lower bound: US bills of lading carry no value.","type":["number","null"]},"role":{"description":"What it is to the company asked about.","enum":["supplier","buyer"],"type":"string"},"sample_product":{"description":"A goods description from one of its records.","type":["string","null"]},"share":{"description":"This partner's part of the company's records in the same direction, from 0 to 1. Shows how concentrated its suppliers or buyers are.","type":["number","null"]},"shipments":{"description":"Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.","type":"integer"},"website":{"description":"Bare domain, such as `example.com`. Often null.","type":["string","null"]}},"required":["id","name","role","country","shipments","recorded_value_usd","share","website","sample_product"],"type":"object"},"type":"array"},"has_more":{"description":"Whether more results follow this page.","type":"boolean"},"next_cursor":{"description":"Pass it as `cursor` to get the next page. Null on the last page.","type":["string","null"]},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in. `data_through` says how recent the records behind the answer are.","properties":{"data_through":{"description":"Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete.","type":["string","null"]}},"required":["data_through"],"type":"object"},"total":{"description":"How many results match in all. Use it to decide between paging on and narrowing the query.","type":"integer"}},"required":["data","total","has_more","next_cursor","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"List a company's suppliers or buyers","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-companies-id-partners","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.01,"default_request_estimate_usd":0.01,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"71b8338c9a9c","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"fc750dfb2baf"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.companies.id.partners","path":"/apis/v1/trade/companies/{id}/partners"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/trade/companies/co_g7sfqjqgfxj3/partners?limit=1&role=supplier' \\\n  --header 'Authorization: Bearer <token>'"}]}},"/apis/v1/trade/companies/{id}/shipments":{"get":{"description":"Global Trade & Customs API (trade.companies.id.shipments)","operationId":"trade.companies.id.shipments","parameters":[{"examples":{"default":{"value":"co_g7sfqjqgfxj3"},"minimal":{"value":"co_g7sfqjqgfxj3"}},"in":"path","name":"id","required":true,"schema":{"maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$","type":"string"}},{"in":"query","name":"cursor","required":false,"schema":{"maxLength":200,"minLength":1,"type":"string"}},{"in":"query","name":"exporter_country","required":false,"schema":{"maxLength":80,"minLength":2,"type":"string"}},{"in":"query","name":"fields","required":false,"schema":{"type":"string","x-aisa-delimiter":",","x-aisa-item-pattern":"^[a-z][a-z0-9_]{0,39}$","x-aisa-maxItems":40,"x-aisa-minItems":1}},{"in":"query","name":"hs_code","required":false,"schema":{"maxLength":10,"minLength":6,"pattern":"^[0-9]{6,10}$","type":"string"}},{"in":"query","name":"importer_country","required":false,"schema":{"maxLength":80,"minLength":2,"type":"string"}},{"examples":{"default":{"value":1},"minimal":{"value":1}},"in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"product","required":false,"schema":{"maxLength":100,"minLength":2,"type":"string"}},{"examples":{"default":{"value":"importer"},"minimal":{"value":"importer"}},"in":"query","name":"role","required":false,"schema":{"default":"importer","enum":["exporter","importer"],"type":"string"}},{"in":"query","name":"since","required":false,"schema":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}},{"in":"query","name":"sort","required":false,"schema":{"default":"date_desc","enum":["date_asc","date_desc"],"type":"string"}},{"in":"query","name":"until","required":false,"schema":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The results of this page.","items":{"additionalProperties":false,"properties":{"bill_of_lading":{"description":"Bill of lading or declaration number, as on the customs record.","type":["string","null"]},"brand":{"description":"Brand named on the record.","type":["string","null"]},"date":{"description":"Date of the record, `YYYY-MM-DD`.","type":["string","null"]},"description":{"description":"Goods description, at most 200 characters.","type":["string","null"]},"description_full":{"description":"The whole goods description, however long.","type":["string","null"]},"description_truncated":{"description":"Present and true when `description` was cut. Ask for `description_full`.","type":"boolean"},"exporter":{"additionalProperties":false,"description":"The seller on the record.","properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}]},"id":{"anyOf":[{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},{"type":"null"}],"description":"Company ID. Pass it to the company endpoints. Null when the party is not named."},"name":{"description":"Name as written on the record.","type":["string","null"]}},"required":["id","name","country"],"type":"object"},"hs_code":{"description":"HS code as declared, digits only.","type":["string","null"]},"id":{"description":"Shipment ID, such as `shp_5k2m8x1q9d3f`.","type":"string"},"importer":{"additionalProperties":false,"description":"The buyer on the record.","properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}]},"id":{"anyOf":[{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},{"type":"null"}],"description":"Company ID. Pass it to the company endpoints. Null when the party is not named."},"name":{"description":"Name as written on the record.","type":["string","null"]}},"required":["id","name","country"],"type":"object"},"incoterm":{"description":"Trade term, such as `FOB` or `CIF`.","type":["string","null"]},"loading_port":{"description":"Port where the goods were loaded.","type":["string","null"]},"origin_country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}],"description":"Country of origin of the goods."},"quantity":{"description":"Quantity as declared, in `quantity_unit`.","type":["number","null"]},"quantity_unit":{"description":"Unit of `quantity` as declared.","type":["string","null"]},"reported_by":{"anyOf":[{"additionalProperties":false,"description":"Whose customs declaration this record is. A US import can be recorded by a US bill of lading (`US`, `import`) and again by the exporter's declaration (`VN`, `export`).","properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"flow":{"description":"Whether that country recorded it as an import or as an export.","enum":["import","export"],"type":"string"}},"required":["country","flow"],"type":"object"},{"type":"null"}]},"transport":{"anyOf":[{"enum":["sea","air","road","rail","other"],"type":"string"},{"type":"null"}],"description":"Mode of transport."},"unit_price_usd":{"description":"Declared value for one unit of `quantity`, in US dollars.","type":["number","null"]},"unloading_port":{"description":"Port where the goods were unloaded.","type":["string","null"]},"value_usd":{"description":"Declared value. Null when the record has none, as on US bills of lading.","type":["number","null"]},"weight_kg":{"description":"Weight in kilograms.","type":["number","null"]}},"required":["id"],"type":"object"},"type":"array"},"has_more":{"description":"Whether more results follow this page.","type":"boolean"},"next_cursor":{"description":"Pass it as `cursor` to get the next page. Null on the last page.","type":["string","null"]},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in. `data_through` says how recent the records behind the answer are.","properties":{"data_through":{"description":"Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete.","type":["string","null"]}},"required":["data_through"],"type":"object"},"total":{"description":"How many results match in all. Use it to decide between paging on and narrowing the query.","type":"integer"}},"required":["data","total","has_more","next_cursor","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"List a company's historical customs shipments","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-companies-id-shipments","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.005,"default_request_estimate_usd":0.005,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"0e3ed4d85ecf","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"818b2f493b77"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.companies.id.shipments","path":"/apis/v1/trade/companies/{id}/shipments"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/trade/companies/co_g7sfqjqgfxj3/shipments?limit=1&role=importer' \\\n  --header 'Authorization: Bearer <token>'"}]}},"/apis/v1/trade/coverage":{"get":{"description":"Global Trade & Customs API (trade.coverage)","operationId":"trade.coverage","parameters":[{"examples":{"default":{"value":"US"},"minimal":{"value":"US"}},"in":"query","name":"country","required":false,"schema":{"maxLength":80,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"One entry for each country.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"exports":{"additionalProperties":false,"description":"Records of goods exported from the country.","properties":{"earliest":{"description":"Date of the earliest record seen, `YYYY-MM-DD`.","type":["string","null"]},"latest":{"description":"Date of the latest record seen, `YYYY-MM-DD`.","type":["string","null"]},"note":{"description":"Something to know about these records, such as a gap or a late start.","type":["string","null"]},"records":{"description":"Whether shipment records declared in this country exist. Null when not known yet.","type":["boolean","null"]},"values":{"description":"Whether those records carry declared values. Null when not known yet.","type":["boolean","null"]}},"required":["records","values","earliest","latest","note"],"type":"object"},"imports":{"additionalProperties":false,"description":"Records of goods imported into the country.","properties":{"earliest":{"description":"Date of the earliest record seen, `YYYY-MM-DD`.","type":["string","null"]},"latest":{"description":"Date of the latest record seen, `YYYY-MM-DD`.","type":["string","null"]},"note":{"description":"Something to know about these records, such as a gap or a late start.","type":["string","null"]},"records":{"description":"Whether shipment records declared in this country exist. Null when not known yet.","type":["boolean","null"]},"values":{"description":"Whether those records carry declared values. Null when not known yet.","type":["boolean","null"]}},"required":["records","values","earliest","latest","note"],"type":"object"},"official":{"additionalProperties":false,"description":"Official statistics with the country as importer or exporter.","properties":{"available":{"description":"Whether official trade statistics can be queried.","type":"boolean"},"latest_month":{"description":"Latest month published, `YYYY-MM`, among the statistics fetched so far. The last six months of every country are fetched once a day, so it is null when its office published nothing in that time or has not answered yet.","type":["string","null"]},"mirror":{"description":"True when the country publishes no recent statistics of its own, and they are what its partners report about their trade with it.","type":"boolean"}},"required":["available","latest_month"],"type":"object"}},"required":["country","imports","exports","official"],"type":"object"},"type":"array"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in.","propertyNames":{"type":"string"},"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Check country customs and trade statistics coverage","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":true},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-coverage","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"fixed_success","default_request_estimate_usd":0.001,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"d29a4c90859f","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"f722497b44f6"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.coverage","path":"/apis/v1/trade/coverage"},"x-aisa-status":"enabled","x-aisa-validation":"runtime"}},"/apis/v1/trade/hs-codes":{"get":{"description":"Global Trade & Customs API (trade.hs-codes)","operationId":"trade.hs-codes","parameters":[{"in":"query","name":"fields","required":false,"schema":{"type":"string","x-aisa-delimiter":",","x-aisa-item-pattern":"^[a-z][a-z0-9_]{0,39}$","x-aisa-maxItems":5,"x-aisa-minItems":1}},{"examples":{"default":{"value":5},"minimal":{"value":5}},"in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":50,"minimum":1,"type":"integer"}},{"examples":{"default":{"value":"laptop"},"minimal":{"value":"laptop"}},"in":"query","name":"q","required":true,"schema":{"maxLength":100,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The best matches first.","items":{"additionalProperties":false,"properties":{"code":{"description":"HS code, digits only: 2, 4 or 6 digits.","type":"string"},"description":{"description":"Official description of the code.","type":"string"},"parent":{"description":"The code one level up. Null for a chapter.","type":["string","null"]},"us_duty":{"description":"US general duty rates of the tariff lines under this code.","items":{"additionalProperties":false,"properties":{"code":{"description":"Eight-digit US tariff line.","type":"string"},"description":{"description":"Text of the tariff line.","type":"string"},"general":{"description":"General (most-favored-nation) rate of duty, as published.","type":"string"}},"required":["code","description","general"],"type":"object"},"type":"array"}},"required":["code","description","parent"],"type":"object"},"type":"array"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in.","propertyNames":{"type":"string"},"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Find Harmonized System (HS) product codes","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":true},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-hs-codes","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"fixed_success","default_request_estimate_usd":0.001,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"402c98162682","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"28db44b60d77"},"x-aisa-runtime-operation":{"method":"GET","operation_id":"trade.hs-codes","path":"/apis/v1/trade/hs-codes"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/trade/hs-codes?limit=5&q=laptop' \\\n  --header 'Authorization: Bearer <token>'"}]}},"/apis/v1/trade/leads/find":{"post":{"description":"Global Trade & Customs API (trade.leads.find)","operationId":"trade.leads.find","requestBody":{"content":{"application/json":{"examples":{"default":{"value":{"hs_code":"847130","importer_country":"US","limit":1,"role":"importer"}},"minimal":{"value":{"hs_code":"847130","importer_country":"US","limit":1,"role":"importer"}}},"schema":{"additionalProperties":false,"allOf":[{"anyOf":[{"properties":{"hs_code":{}},"required":["hs_code"]},{"properties":{"product":{}},"required":["product"]},{"properties":{"trading_with":{}},"required":["trading_with"]}]}],"properties":{"contacts_per_company":{"default":1,"enum":[1],"maximum":9223372036854775807,"minimum":0,"type":"integer"},"cursor":{"maxLength":200,"minLength":1,"type":"string"},"department":{"items":{"enum":["engineering","finance","hr","it","legal","management","marketing","operations","purchasing","quality","sales"],"type":"string"},"maxItems":11,"minItems":1,"type":"array"},"exclude_forwarders":{"default":true,"type":"boolean"},"exporter_country":{"maxLength":80,"minLength":2,"type":"string"},"hs_code":{"maxLength":10,"minLength":6,"pattern":"^[0-9]{6,10}$","type":"string"},"importer_country":{"maxLength":80,"minLength":2,"type":"string"},"limit":{"default":5,"maximum":10,"minimum":1,"type":"integer"},"min_email_status":{"default":"verified","enum":["risky","verified"],"type":"string"},"product":{"maxLength":100,"minLength":2,"type":"string"},"require":{"default":"person_email","enum":["any_contact","person_email"],"type":"string"},"role":{"enum":["exporter","importer"],"type":"string"},"seniority":{"items":{"enum":["c_level","executive","manager","owner","senior","staff"],"type":"string"},"maxItems":6,"minItems":1,"type":"array"},"since":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},"sort":{"default":"shipments","enum":["recorded_value","shipments"],"type":"string"},"trading_with":{"maxLength":200,"minLength":2,"type":"string"},"until":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}},"required":["role"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The leads, in the order of the ranked list.","items":{"additionalProperties":false,"properties":{"channels":{"anyOf":[{"additionalProperties":false,"properties":{"emails":{"description":"Shared addresses such as `info@` and `sales@`.","items":{"type":"string"},"type":"array"},"messaging":{"description":"WhatsApp, WeChat, Zalo, LINE, Skype and Telegram contacts the company gives.","items":{"additionalProperties":false,"properties":{"app":{"enum":["whatsapp","wechat","zalo","line","skype","telegram"],"type":"string"},"value":{"description":"A number in E.164 for WhatsApp, else the ID or number as printed.","type":"string"}},"required":["app","value"],"type":"object"},"type":"array"},"phones":{"description":"Phone numbers the company publishes: in E.164, such as `+4952112340`, when the country can be told, else as printed. Fax numbers are left out.","items":{"type":"string"},"type":"array"},"social":{"additionalProperties":false,"description":"Links to its public pages. Null where none is known.","properties":{"facebook":{"type":["string","null"]},"instagram":{"type":["string","null"]},"linkedin":{"type":["string","null"]},"pinterest":{"type":["string","null"]},"tiktok":{"type":["string","null"]},"twitter":{"type":["string","null"]},"youtube":{"type":["string","null"]}},"required":["linkedin","facebook","twitter","instagram","youtube","tiktok","pinterest"],"type":"object"}},"required":["emails","phones","messaging","social"],"type":"object"},{"type":"null"}],"description":"The shared mailboxes, phone numbers, messaging contacts and social pages on the company's website, or for a company without one, on the map listing and the social page that carry its name, when no person was found. Null when `contacts` has someone."},"company":{"additionalProperties":false,"description":"The buyer or supplier, as in the company search.","properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}],"description":"Country the company imports into or exports from in these records."},"id":{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},"name":{"description":"Name as written on shipping documents.","type":"string"},"recorded_value_usd":{"description":"Sum of the declared values of the records that have one, in US dollars. A lower bound: US bills of lading carry no value.","type":["number","null"]},"shipments":{"description":"Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.","type":"integer"},"website":{"description":"Bare domain, such as `example.com`. Often null.","type":["string","null"]}},"required":["id","name","country","shipments","recorded_value_usd","website"],"type":"object"},"contacts":{"description":"People to approach, each with a verified work email. Empty when none was found.","items":{"additionalProperties":false,"properties":{"department":{"anyOf":[{"enum":["purchasing","sales","management","operations","marketing","finance","engineering","quality","it","hr","legal"],"type":"string"},{"type":"null"}],"description":"Department, read from the title."},"email":{"description":"Work email on the company's own domain.","type":"string"},"email_status":{"description":"`verified`: the mailbox exists. `risky`: the domain accepts every address, so the mailbox cannot be confirmed.","enum":["verified","risky"],"type":"string"},"id":{"description":"Person ID, such as `per_4m7q2x9k1c8d`: stable across trade endpoints for the same full name at the same company.","type":"string"},"linkedin_url":{"description":"The person's LinkedIn profile, when known.","type":["string","null"]},"name":{"description":"Full name.","type":["string","null"]},"other_email":{"description":"Another email address listed for the person. Often on the company's domain too, but it can be a private address, and it is not verified.","type":["string","null"]},"phones":{"description":"Phone numbers listed for the person: a direct line, a mobile or the company's switchboard. Not verified.","items":{"type":"string"},"type":"array"},"seniority":{"anyOf":[{"enum":["owner","c_level","executive","manager","senior","staff"],"type":"string"},{"type":"null"}],"description":"Level, read from the title."},"title":{"description":"Job title.","type":["string","null"]}},"required":["id","name","title","seniority","department","email","email_status","linkedin_url"],"type":"object"},"type":"array"}},"required":["company","contacts","channels"],"type":"object"},"type":"array"},"has_more":{"description":"Whether the ranked list goes on after the last company looked at.","type":"boolean"},"next_cursor":{"description":"Pass it as `cursor` to go on after the last company that was looked at.","type":["string","null"]},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood, with the default dates filled in. `scanned` says how many companies were looked at for this page, `passed_over` why the ones without a lead gave none, and `data_through` how recent the records are.","properties":{"data_through":{"description":"Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete.","type":["string","null"]},"passed_over":{"additionalProperties":false,"description":"Why the companies that were looked at without a lead were passed over.","properties":{"incomplete":{"description":"A contact source did not answer, or time ran out before every source was asked. Asking again later may find someone there.","type":"integer"},"no_website":{"description":"No website is known, so nobody could be looked for.","type":"integer"},"nobody":{"description":"Every contact source was asked and none had anyone to approach.","type":"integer"}},"required":["no_website","nobody","incomplete"],"type":"object"},"scanned":{"description":"How many companies of the ranked list were looked at for this page.","type":"integer"}},"required":["data_through","scanned","passed_over"],"type":"object"},"total":{"description":"How many companies the ranked list has in all.","type":"integer"}},"required":["data","total","has_more","next_cursor","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Find active importers or exporters with verified contacts","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-constraints":{"required_any_of":[[{"in":"body","name":"hs_code","selector":"/hs_code"},{"in":"body","name":"product","selector":"/product"},{"in":"body","name":"trading_with","selector":"/trading_with"}]]},"x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-leads-find","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.04,"default_request_estimate_usd":0.04,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"1eefc354dcfa","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"e8ff76cf819b"},"x-aisa-runtime-operation":{"method":"POST","operation_id":"trade.leads.find","path":"/apis/v1/trade/leads/find"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/trade/leads/find \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"hs_code\": \"847130\",\n  \"importer_country\": \"US\",\n  \"limit\": 1,\n  \"role\": \"importer\"\n}'"}]}},"/apis/v1/trade/markets/brief":{"post":{"description":"Global Trade & Customs API (trade.markets.brief)","operationId":"trade.markets.brief","requestBody":{"content":{"application/json":{"examples":{"default":{"value":{"countries":["US"],"hs_code":"847130","product":"laptop","sections":["official","search","marketplace"]}},"minimal":{"value":{"countries":["US"],"hs_code":"847130","product":"laptop","sections":["official","search","marketplace"]}}},"schema":{"additionalProperties":false,"properties":{"countries":{"items":{"type":"string"},"maxItems":10,"minItems":1,"type":"array"},"hs_code":{"maxLength":10,"minLength":6,"pattern":"^[0-9]{6,10}$","type":"string"},"marketplace_query":{"maxLength":100,"minLength":2,"type":"string"},"product":{"maxLength":80,"minLength":2,"type":"string"},"sections":{"default":["official","search","marketplace"],"items":{"enum":["estimates","marketplace","official","search","shipments"],"type":"string"},"maxItems":5,"minItems":1,"type":"array"},"terms":{"items":{"type":"string"},"maxItems":30,"minItems":1,"type":"array"}},"required":["countries","product"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"description":"The brief, one entry for each country.","properties":{"countries":{"description":"One entry for each country, in the order asked.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO code.","type":"string"},"estimates":{"anyOf":[{"additionalProperties":false,"properties":{"agreement":{"anyOf":[{"enum":["close","conflict"],"type":"string"},{"type":"null"}],"description":"Of the figures for the `same` market that are not `too_high` or `too_low`: `close` when the largest is at most 3 times the smallest, `conflict` when it is more. Null with fewer than two."},"exports_usd":{"description":"A year of its official exports of the HS code, the larger of the same two, asked for only when a size is far from the imports, to tell whether most imports stay. Null otherwise, or when not known.","type":["number","null"]},"figures":{"description":"Market sizes that market research pages publish for the product in the country, of the last 5 years, most recent first. Each is unverified: one page's number, which `check` holds against trade.","items":{"additionalProperties":false,"properties":{"check":{"description":"Against the country's trade. `consistent`: between a fifth of its imports and 10 times them, or a `wider` market above that, or a `narrower` one below. `too_high` or `too_low`: outside that, in a country that exports under half of what it imports, so most imports stay and its market cannot be far from them. `unchecked`: outside that where the country exports more, so much may be made there or passed on, or where its trade or the value is not known.","enum":["consistent","too_high","too_low","unchecked"],"type":"string"},"figure":{"description":"The size as the page writes it, such as `USD 101.25 million`.","type":"string"},"market":{"description":"The market it is the size of, as the page names it.","type":"string"},"publisher":{"description":"Who published the size, such as a research firm. Null when the page does not say.","type":["string","null"]},"scope":{"anyOf":[{"enum":["same","wider","narrower"],"type":"string"},{"type":"null"}],"description":"Its market against `product`: `same`, a `wider` one that includes it, or a `narrower` part of it. Null when it cannot be told."},"times_imports":{"description":"`value_usd` over `imports_usd`. Null without both.","type":["number","null"]},"url":{"description":"The page that gives it.","type":"string"},"value_usd":{"description":"The size in US dollars, the middle of a range. Null for a currency we do not convert.","type":["number","null"]},"year":{"description":"The year the size is for.","type":"integer"}},"required":["figure","value_usd","year","market","scope","publisher","url","times_imports","check"],"type":"object"},"type":"array"},"imports_usd":{"description":"A year of the country's official imports of the HS code, which the sizes are held against: the larger of the latest 12 months and the 12 before, since the latest months of many countries fill up late. Null without an HS code or statistics.","type":["number","null"]}},"required":["figures","imports_usd","exports_usd","agreement"],"type":"object"},{"type":"null"}],"description":"Market sizes that web pages publish, held against the country's trade. Null when not asked for, or when none was found."},"marketplace":{"anyOf":[{"additionalProperties":false,"properties":{"bought_last_month":{"anyOf":[{"additionalProperties":false,"properties":{"at_least":{"description":"The counts the store prints, added up: a floor, not a total.","type":"integer"},"listings":{"description":"How many listings say how many were bought.","type":"integer"}},"required":["at_least","listings"],"type":"object"},{"type":"null"}],"description":"What the listings of the first page say about recent sales. Null when none say."},"price":{"anyOf":[{"additionalProperties":false,"properties":{"currency":{"description":"ISO 4217 code of the prices.","type":"string"},"left_out":{"description":"Listings priced under a quarter of the median of all, left out as likely accessories or parts.","type":"integer"},"listings":{"description":"How many listings the prices are from.","type":"integer"},"median":{"type":"number"},"median_usd":{"description":"The median in US dollars: at the peg for a currency pegged to the dollar, otherwise at the latest monthly average rate. Null when no rate is published for the currency.","type":["number","null"]},"p25":{"description":"A quarter of the listings cost less than this.","type":"number"},"p75":{"description":"A quarter of the listings cost more than this.","type":"number"}},"required":["currency","median","p25","p75","median_usd","listings","left_out"],"type":"object"},{"type":"null"}],"description":"The price range of the listings. Null when fewer than 3 show a price."},"query":{"description":"What the store was searched for.","type":"string"},"read":{"description":"How many listings of the first page were read.","type":"integer"},"results":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"How many products the store lists for the query in all, when it says."},"store":{"description":"The country's store that answered, such as `amazon.sa`.","type":"string"},"top":{"description":"Up to 5 listings that sell the most, by recent sales and then by ratings.","items":{"additionalProperties":false,"properties":{"bought_last_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"At least this many were bought in the past month, as the store says. Null when it does not."},"currency":{"description":"ISO 4217 code.","type":["string","null"]},"price":{"description":"The price, in `currency`.","type":["number","null"]},"ratings":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"How many ratings it has."},"title":{"type":"string"},"url":{"type":["string","null"]}},"required":["title","price","currency","ratings","bought_last_month","url"],"type":"object"},"type":"array"}},"required":["store","query","results","read","price","bought_last_month","top"],"type":"object"},{"type":"null"}],"description":"What the country's main marketplace sells. Null when not asked for, when the country has no store we read, or when it listed nothing."},"official":{"anyOf":[{"additionalProperties":false,"properties":{"basis":{"description":"`own`: the country's own statistics. `partners`: what its partners report about their exports to it, because it publishes no recent statistics of its own. Partners that publish nothing are missing, so it is a lower bound.","enum":["own","partners"],"type":"string"},"by_month":{"description":"Imports of each published month, oldest first.","items":{"additionalProperties":false,"properties":{"month":{"description":"`YYYY-MM`","type":"string"},"partial":{"description":"True while late reports can still add to it.","type":"boolean"},"value_usd":{"type":"number"}},"required":["month","value_usd"],"type":"object"},"type":"array"},"change_12m":{"description":"`imports_12m_usd` over `prior_12m_usd`, minus 1: `-0.3` is 30% less.","type":["number","null"]},"comparable_change_12m":{"description":"With `stopped_reporting`: the same change without those partners in either year, which is the change of the trade reported all along. Read it instead of `change_12m`.","type":["number","null"]},"imports_12m_usd":{"description":"Imports of the 12 months up to `period.until`, in US dollars. A month in `missing_months` adds nothing.","type":"number"},"missing_months":{"description":"Months the country published no statistics for at all: missing, not months without trade.","items":{"description":"`YYYY-MM`","type":"string"},"type":"array"},"partial_months":{"description":"How many of the last 12 months are still filling up as late reports arrive. While they are, `change_12m` reads lower than it will be.","type":"integer"},"period":{"additionalProperties":false,"description":"The first and the last month the numbers cover.","properties":{"since":{"description":"`YYYY-MM`","type":"string"},"until":{"description":"`YYYY-MM`","type":"string"}},"required":["since","until"],"type":"object"},"prior_12m_usd":{"description":"Imports of the 12 months before those. Null when they are not all published, or a month of either year is missing.","type":["number","null"]},"stopped_reporting":{"description":"With `partners`: partners whose numbers stop while the others go on, most likely because they have published nothing since, or publish late. The months after look lower than the trade was.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO code.","type":"string"},"last_month":{"description":"The last month with its numbers.","type":"string"},"share":{"description":"Its part of all imports of `period`, 0 to 1.","type":"number"}},"required":["country","last_month","share"],"type":"object"},"type":"array"},"top_origins":{"description":"Up to 5 countries the imports come from, largest first, over `period`.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO code.","type":"string"},"share":{"description":"Its part of all imports of `period`, 0 to 1.","type":"number"},"value_usd":{"type":"number"}},"required":["country","value_usd","share"],"type":"object"},"type":"array"},"value_basis":{"description":"How the values are valued: customs value, cost-insurance-freight or free on board.","enum":["customs","cif","fob"],"type":"string"}},"required":["basis","value_basis","period","imports_12m_usd","prior_12m_usd","change_12m","partial_months","top_origins","by_month"],"type":"object"},{"type":"null"}],"description":"What the statistics offices publish about the country's imports of the HS code. Null when not asked for, without an HS code, or when nothing is published."},"search":{"anyOf":[{"additionalProperties":false,"properties":{"by_month":{"description":"Searches of each of the last 12 months, all terms together, oldest first.","items":{"additionalProperties":false,"properties":{"month":{"description":"`YYYY-MM`","type":"string"},"searches":{"type":"integer"}},"required":["month","searches"],"type":"object"},"type":"array"},"data_through":{"description":"The last month of the numbers, `YYYY-MM`.","type":"string"},"history":{"anyOf":[{"additionalProperties":false,"properties":{"by_year":{"description":"Searches of each year, oldest first.","items":{"additionalProperties":false,"properties":{"complete":{"description":"False when the year has fewer than 12 months of data.","type":"boolean"},"searches":{"type":"integer"},"year":{"type":"integer"}},"required":["year","searches","complete"],"type":"object"},"type":"array"},"change_12m":{"description":"Searches of the last 12 months over the 12 before, minus 1: `-0.28` is 28% fewer. Null without two full years.","type":["number","null"]},"terms":{"description":"The most searched terms, which the history adds up.","items":{"type":"string"},"type":"array"}},"required":["terms","by_year","change_12m"],"type":"object"},{"type":"null"}],"description":"Several years of searches of the main terms, to tell a trend from a season. Null where no history is kept for the country."},"low_month":{"description":"The month with the fewest searches, `YYYY-MM`.","type":"string"},"peak_month":{"description":"The month with the most searches, `YYYY-MM`.","type":"string"},"peak_to_low":{"description":"Searches of the peak month over those of the low month: 1 is no season, 3 is a strong one. Null when the low month had none.","type":["number","null"]},"searches_12m":{"description":"Searches of the last 12 months, all terms together. A term that is a close variant of another is counted once.","type":"integer"},"terms":{"description":"The terms people searched, most searched first. Terms nobody searched are left out.","items":{"additionalProperties":false,"properties":{"searches_12m":{"type":"integer"},"share":{"description":"Its part of `searches_12m`, 0 to 1.","type":"number"},"term":{"type":"string"},"variants":{"description":"Other terms asked that the search engine counts as this one, with the same numbers. They are not counted again.","items":{"type":"string"},"type":"array"}},"required":["term","searches_12m","share","variants"],"type":"object"},"type":"array"}},"required":["searches_12m","by_month","peak_month","low_month","peak_to_low","terms","history","data_through"],"type":"object"},{"type":"null"}],"description":"What people search for. Null when not asked for, or when nothing was found."},"shipments":{"anyOf":[{"additionalProperties":false,"properties":{"basis":{"description":"`own`: records declared in the country. `partners`: the country declares none, so these are the export records of its partners that name it, and they are incomplete.","enum":["own","partners"],"type":"string"},"by_month":{"description":"Each month of `period`. Where the records stop rather than the trade, `notice` says so.","items":{"additionalProperties":false,"properties":{"month":{"description":"`YYYY-MM`","type":"string"},"shipments":{"type":"integer"}},"required":["month","shipments"],"type":"object"},"type":"array"},"counts_only":{"description":"True when the records are the country's own declarations, counted without being read, because our main records have few months of them: then there are no values and no origins.","type":"boolean"},"period":{"additionalProperties":false,"description":"The first and the last month the numbers cover.","properties":{"since":{"description":"`YYYY-MM`","type":"string"},"until":{"description":"`YYYY-MM`","type":"string"}},"required":["since","until"],"type":"object"},"recorded_value_usd":{"description":"Declared value of the records that have one, in US dollars.","type":["number","null"]},"shipments":{"description":"Shipment records of the country's imports in `period`.","type":"integer"},"top_origins":{"description":"Up to 5 countries the recorded shipments come from, most first. Empty with `counts_only`.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO code.","type":"string"},"shipments":{"type":"integer"}},"required":["country","shipments"],"type":"object"},"type":"array"},"value_share":{"description":"Recorded value over the official imports of the same months: how much of the trade the records see. Null without both.","type":["number","null"]}},"required":["basis","period","shipments","recorded_value_usd","value_share","top_origins","by_month","counts_only"],"type":"object"},{"type":"null"}],"description":"Shipment records of the country's imports of the HS code in the 12 whole months before this one. Null when not asked for, without an HS code, or when there are none."}},"required":["country","official","shipments","search","marketplace","estimates"],"type":"object"},"type":"array"},"hs_code":{"anyOf":[{"additionalProperties":false,"properties":{"alternatives":{"description":"Other six-digit codes that match `product` nearly as well, best first: check them before reading the numbers, and pass one as `hs_code` when it fits better. Empty when `hs_code` was given.","items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"description":{"type":"string"}},"required":["code","description"],"type":"object"},"type":"array"},"code":{"type":"string"},"description":{"type":"string"},"origin":{"description":"`given`: the `hs_code` asked for. `matched`: the HS code whose description best matches `product`; pass `hs_code` when it is not the right one.","enum":["given","matched"],"type":"string"}},"required":["code","description","origin","alternatives"],"type":"object"},{"type":"null"}],"description":"The HS code of `official` and `shipments`, and of the trade `estimates` are held against. Null when none of them is asked for, or no HS code matches `product`."},"product":{"type":"string"},"terms":{"description":"The search terms that were asked: `terms` as given, or the ones suggested for the product.","items":{"additionalProperties":false,"properties":{"language":{"description":"ISO 639-1 code of the term's language, such as `ar`, when known.","type":["string","null"]},"term":{"type":"string"}},"required":["term","language"],"type":"object"},"type":"array"}},"required":["product","hs_code","terms","countries"],"type":"object"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in.","propertyNames":{"type":"string"},"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Brief product import demand, search interest, and market sizing across countries","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-markets-brief","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.2,"default_request_estimate_usd":0.2,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"8dce79d18b54","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"643e8dc85b30"},"x-aisa-runtime-operation":{"method":"POST","operation_id":"trade.markets.brief","path":"/apis/v1/trade/markets/brief"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/trade/markets/brief \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"countries\": [\n    \"US\"\n  ],\n  \"hs_code\": \"847130\",\n  \"product\": \"laptop\",\n  \"sections\": [\n    \"official\",\n    \"search\",\n    \"marketplace\"\n  ]\n}'"}]}},"/apis/v1/trade/shipments/search":{"post":{"description":"Global Trade & Customs API (trade.shipments.search)","operationId":"trade.shipments.search","requestBody":{"content":{"application/json":{"examples":{"default":{"value":{"hs_code":"847130","importer_country":"US","limit":1}},"minimal":{"value":{"hs_code":"847130","importer_country":"US","limit":1}}},"schema":{"additionalProperties":false,"allOf":[{"anyOf":[{"properties":{"exporter":{}},"required":["exporter"]},{"properties":{"hs_code":{}},"required":["hs_code"]},{"properties":{"importer":{}},"required":["importer"]},{"properties":{"product":{}},"required":["product"]}]}],"properties":{"cursor":{"maxLength":200,"minLength":1,"type":"string"},"exporter":{"maxLength":200,"minLength":2,"type":"string"},"exporter_country":{"maxLength":80,"minLength":2,"type":"string"},"fields":{"items":{"type":"string"},"maxItems":40,"minItems":1,"type":"array"},"hs_code":{"maxLength":10,"minLength":6,"pattern":"^[0-9]{6,10}$","type":"string"},"importer":{"maxLength":200,"minLength":2,"type":"string"},"importer_country":{"maxLength":80,"minLength":2,"type":"string"},"limit":{"default":10,"maximum":100,"minimum":1,"type":"integer"},"product":{"maxLength":100,"minLength":2,"type":"string"},"since":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},"sort":{"default":"date_desc","enum":["date_asc","date_desc"],"type":"string"},"until":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"The results of this page.","items":{"additionalProperties":false,"properties":{"bill_of_lading":{"description":"Bill of lading or declaration number, as on the customs record.","type":["string","null"]},"brand":{"description":"Brand named on the record.","type":["string","null"]},"date":{"description":"Date of the record, `YYYY-MM-DD`.","type":["string","null"]},"description":{"description":"Goods description, at most 200 characters.","type":["string","null"]},"description_full":{"description":"The whole goods description, however long.","type":["string","null"]},"description_truncated":{"description":"Present and true when `description` was cut. Ask for `description_full`.","type":"boolean"},"exporter":{"additionalProperties":false,"description":"The seller on the record.","properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}]},"id":{"anyOf":[{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},{"type":"null"}],"description":"Company ID. Pass it to the company endpoints. Null when the party is not named."},"name":{"description":"Name as written on the record.","type":["string","null"]}},"required":["id","name","country"],"type":"object"},"hs_code":{"description":"HS code as declared, digits only.","type":["string","null"]},"id":{"description":"Shipment ID, such as `shp_5k2m8x1q9d3f`.","type":"string"},"importer":{"additionalProperties":false,"description":"The buyer on the record.","properties":{"country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}]},"id":{"anyOf":[{"description":"Company ID, such as `co_8f3k2m9x4p1q`.","type":"string"},{"type":"null"}],"description":"Company ID. Pass it to the company endpoints. Null when the party is not named."},"name":{"description":"Name as written on the record.","type":["string","null"]}},"required":["id","name","country"],"type":"object"},"incoterm":{"description":"Trade term, such as `FOB` or `CIF`.","type":["string","null"]},"loading_port":{"description":"Port where the goods were loaded.","type":["string","null"]},"origin_country":{"anyOf":[{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},{"type":"null"}],"description":"Country of origin of the goods."},"quantity":{"description":"Quantity as declared, in `quantity_unit`.","type":["number","null"]},"quantity_unit":{"description":"Unit of `quantity` as declared.","type":["string","null"]},"reported_by":{"anyOf":[{"additionalProperties":false,"description":"Whose customs declaration this record is. A US import can be recorded by a US bill of lading (`US`, `import`) and again by the exporter's declaration (`VN`, `export`).","properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"flow":{"description":"Whether that country recorded it as an import or as an export.","enum":["import","export"],"type":"string"}},"required":["country","flow"],"type":"object"},{"type":"null"}]},"transport":{"anyOf":[{"enum":["sea","air","road","rail","other"],"type":"string"},{"type":"null"}],"description":"Mode of transport."},"unit_price_usd":{"description":"Declared value for one unit of `quantity`, in US dollars.","type":["number","null"]},"unloading_port":{"description":"Port where the goods were unloaded.","type":["string","null"]},"value_usd":{"description":"Declared value. Null when the record has none, as on US bills of lading.","type":["number","null"]},"weight_kg":{"description":"Weight in kilograms.","type":["number","null"]}},"required":["id"],"type":"object"},"type":"array"},"has_more":{"description":"Whether more results follow this page.","type":"boolean"},"next_cursor":{"description":"Pass it as `cursor` to get the next page. Null on the last page.","type":["string","null"]},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in. `data_through` says how recent the records behind the answer are.","properties":{"data_through":{"description":"Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete.","type":["string","null"]}},"required":["data_through"],"type":"object"},"total":{"description":"How many results match in all. Use it to decide between paging on and narrowing the query.","type":"integer"}},"required":["data","total","has_more","next_cursor","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Search customs shipment declarations and bills of lading","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-constraints":{"required_any_of":[[{"in":"body","name":"exporter","selector":"/exporter"},{"in":"body","name":"hs_code","selector":"/hs_code"},{"in":"body","name":"importer","selector":"/importer"},{"in":"body","name":"product","selector":"/product"}]]},"x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-shipments-search","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"per_unit","customer_unit_price_usd":0.005,"default_request_estimate_usd":0.005,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"983cba79adf5","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"e5f4b4871f7b"},"x-aisa-runtime-operation":{"method":"POST","operation_id":"trade.shipments.search","path":"/apis/v1/trade/shipments/search"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/trade/shipments/search \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"hs_code\": \"847130\",\n  \"importer_country\": \"US\",\n  \"limit\": 1\n}'"}]}},"/apis/v1/trade/stats/query":{"post":{"description":"Global Trade & Customs API (trade.stats.query)","operationId":"trade.stats.query","requestBody":{"content":{"application/json":{"examples":{"default":{"value":{"basis":["records","official"],"hs_code":"847130","importer_country":"US","top":10}},"minimal":{"value":{"basis":["records","official"],"hs_code":"847130","importer_country":"US","top":10}}},"schema":{"additionalProperties":false,"allOf":[{"anyOf":[{"properties":{"company":{}},"required":["company"]},{"properties":{"hs_code":{}},"required":["hs_code"]},{"properties":{"product":{}},"required":["product"]}]}],"properties":{"basis":{"default":["records","official"],"items":{"enum":["official","records"],"type":"string"},"maxItems":2,"minItems":1,"type":"array"},"company":{"maxLength":200,"minLength":2,"type":"string"},"exporter_country":{"maxLength":80,"minLength":2,"type":"string"},"hs_code":{"maxLength":10,"minLength":2,"pattern":"^[0-9]{2,10}$","type":"string"},"importer_country":{"maxLength":80,"minLength":2,"type":"string"},"product":{"maxLength":100,"minLength":2,"type":"string"},"role":{"enum":["exporter","importer"],"type":"string"},"since":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},"top":{"default":20,"maximum":50,"minimum":1,"type":"integer"},"until":{"maxLength":10,"minLength":10,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"description":"The statistics, one part for each kind of number.","properties":{"coverage":{"additionalProperties":false,"description":"How the two kinds of numbers compare.","properties":{"recorded_value_share":{"description":"Recorded value divided by the official value for the same months. Shows how much of real trade the recorded values stand for.","type":["number","null"]}},"required":["recorded_value_share"],"type":"object"},"official":{"anyOf":[{"additionalProperties":false,"properties":{"by_month":{"description":"One entry for each published month, oldest first.","items":{"additionalProperties":false,"properties":{"month":{"description":"`YYYY-MM`","type":"string"},"partial":{"description":"True while more partners can still add their numbers for the month. Do not read it as a drop.","type":"boolean"},"value_usd":{"description":"Trade value of the month, in US dollars.","type":"number"}},"required":["month","value_usd"],"type":"object"},"type":"array"},"by_partner_country":{"description":"The partner countries, largest first.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"share":{"description":"This country's part of everything the reporter imports or exports of the product in the period, from 0 to 1.","type":"number"},"value_usd":{"description":"Trade value with this country, in US dollars.","type":"number"}},"required":["country","value_usd","share"],"type":"object"},"type":"array"},"cif_value_usd":{"description":"For US imports: the value including insurance and freight.","type":["number","null"]},"flow":{"description":"Whether these are the reporter's imports or its exports.","enum":["import","export"],"type":"string"},"mirror":{"description":"True when the reporter publishes no recent statistics of its own and these numbers add up what its partners report about their trade with it: their imports from it at CIF for its exports, their exports to it at FOB for its imports. Partners that publish nothing are missing, so it is a lower bound.","type":"boolean"},"missing_months":{"description":"Months inside `period` the office published nothing for, of any product: they are missing from `by_month` and from `value_usd`, not months without trade. Left out when none are.","items":{"type":"string"},"type":"array"},"period":{"additionalProperties":false,"description":"The first and the last month the numbers cover.","properties":{"since":{"description":"`YYYY-MM`","type":"string"},"until":{"description":"`YYYY-MM`","type":"string"}},"required":["since","until"],"type":"object"},"quantity":{"description":"Quantity of the period, where the office measures one in a single unit for every partner and month. Left out otherwise.","type":["number","null"]},"quantity_unit":{"description":"Unit of `quantity`: `u` items, `kg`, `l`, `m2`, `pairs` and so on.","type":["string","null"]},"reporter":{"description":"Country whose statistics these are, or `EU`.","type":"string"},"source":{"const":"official_statistics","description":"Marks these numbers as official statistics.","type":"string"},"stopped_reporting":{"description":"With `mirror`: partners whose numbers stop for six months or more while the others go on, most likely because they have published nothing since, or publish late. The months after their `last_month` look lower than the trade was. Left out when none did.","items":{"additionalProperties":false,"properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"last_month":{"description":"The last month with its numbers, `YYYY-MM`.","type":"string"},"share":{"description":"Its part of `value_usd`, from 0 to 1, all of it from before it stopped.","type":"number"}},"required":["country","last_month","share"],"type":"object"},"type":"array"},"unit_value_usd":{"description":"`value_usd` divided by `quantity`: the average price of one unit.","type":["number","null"]},"value_basis":{"description":"How `value_usd` is valued: customs value, cost-insurance-freight or free on board.","enum":["customs","cif","fob"],"type":"string"},"value_usd":{"description":"Trade value of the period, in US dollars.","type":"number"}},"required":["reporter","flow","period","value_usd","value_basis","by_partner_country","by_month","source"],"type":"object"},{"type":"null"}],"description":"Official trade statistics. Use these for market size and country shares."},"records":{"anyOf":[{"additionalProperties":false,"properties":{"by_exporter_country":{"anyOf":[{"items":{"additionalProperties":false,"properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"shipments":{"description":"Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.","type":"integer"}},"required":["country","shipments"],"type":"object"},"type":"array"},{"type":"null"}],"description":"Records by exporting country, largest first. Null when it could not be loaded."},"by_importer_country":{"anyOf":[{"items":{"additionalProperties":false,"properties":{"country":{"description":"ISO 3166-1 alpha-2 country code, such as `US`.","type":"string"},"shipments":{"description":"Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.","type":"integer"}},"required":["country","shipments"],"type":"object"},"type":"array"},{"type":"null"}],"description":"Records by importing country, largest first. Null when it could not be loaded."},"by_month":{"description":"One entry for each month of the range, oldest first.","items":{"additionalProperties":false,"properties":{"month":{"description":"`YYYY-MM`","type":"string"},"partial":{"description":"True when the month is not complete yet. Do not read it as a drop.","type":"boolean"},"recorded_value_usd":{"description":"Declared value of the month's records that have one, in US dollars.","type":["number","null"]},"shipments":{"description":"Shipment records of the month.","type":"integer"}},"required":["month","shipments","recorded_value_usd","partial"],"type":"object"},"type":"array"},"company_match":{"description":"With `company`: how its records were found. `id` counts the company itself, by its ID, over the last 12 months. `name` matches its name as it stands in the records, so companies that share the name count together.","enum":["id","name"],"type":"string"},"recorded_value_usd":{"description":"Sum of the declared values of the records that have one, in US dollars. A lower bound: US bills of lading carry no value.","type":["number","null"]},"shipments":{"description":"Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.","type":"integer"}},"required":["shipments","recorded_value_usd","by_importer_country","by_exporter_country","by_month"],"type":"object"},{"type":"null"}],"description":"Counts and declared values of our shipment records. Not official trade totals."}},"required":["records","official","coverage"],"type":"object"},"notice":{"description":"A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.","type":["string","null"]},"query":{"additionalProperties":{},"description":"The request as it was understood: country names as codes, the default dates filled in. `data_through` says how recent the records behind the answer are.","properties":{"data_through":{"description":"Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete.","type":["string","null"]}},"required":["data_through"],"type":"object"}},"required":["data","query","notice"],"type":"object"}}},"description":"Normalized successful response"},"default":{"content":{"application/json":{"schema":{}}},"description":"Error response; upstream passthrough responses may use provider formats"}},"summary":"Query trade market statistics and monthly trends","tags":["Global Trade & Customs"],"x-aisa-capabilities":{"idempotency":"Idempotency-Key","max_price":"X-AISA-Max-Price-USD","mpp":false,"mpp_methods":[],"quote":{"header":"X-AISA-Cost-Mode","value":"quote"},"x402":false},"x-aisa-catalog-id":"trade","x-aisa-category":"data","x-aisa-constraints":{"required_any_of":[[{"in":"body","name":"company","selector":"/company"},{"in":"body","name":"hs_code","selector":"/hs_code"},{"in":"body","name":"product","selector":"/product"}]]},"x-aisa-docs-url":"https://aisa.one/docs/api-reference/trade/trade-stats-query","x-aisa-pricing":{"cost_contract":"response_usd","customer_pricing":"fixed_success","default_request_estimate_usd":0.1,"estimate_source":"profile_seed","evidence_source":"response_body"},"x-aisa-query-policy":{"ignore_undeclared":false,"request_wins":false},"x-aisa-response-contract-hash":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","x-aisa-revision":{"customer_pricing_ref":"06dfc9fd7960","plan_policy_version":"e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb","profile_ref":"8f17eba9502a"},"x-aisa-runtime-operation":{"method":"POST","operation_id":"trade.stats.query","path":"/apis/v1/trade/stats/query"},"x-aisa-status":"enabled","x-aisa-validation":"runtime","x-codeSamples":[{"label":"Reference example","lang":"text","source":"# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/trade/stats/query \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"basis\": [\n    \"records\",\n    \"official\"\n  ],\n  \"hs_code\": \"847130\",\n  \"importer_country\": \"US\",\n  \"top\": 10\n}'"}]}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://api.aisa.one"}]}
