Install
openclaw skills install @upkuajing/customs-overview-trade-listQuery paginated national trade list data — retrieve country-level trade breakdowns with annual, quarterly, and monthly trade volumes for market analysis. Trigger: country trade list, paginated trade query, national trade breakdown, import export country comparison, trade volume by country
openclaw skills install @upkuajing/customs-overview-trade-listQuery paginated national trade list data from customs data using the UpKuaJing Open Platform API.
This skill provides paginated trade list data from UpKuaJing's customs database. Given an origin country, arrival country, and year, it returns a paginated list of countries with trade statistics including annual, quarterly, and monthly trade volumes, as well as supplier and buyer counts.
python --versionpip install -r requirements.txtScript directory: scripts/*.py
Run example: python scripts/*.py
Important: Always use direct script invocation like python scripts/customs_overview_trade_list.py. Do NOT use shell compound commands like cd scripts && python customs_overview_trade_list.py
customs_overview_trade_list.py)This skill requires an API key. The API key is stored in the ~/.upkuajing/.env file:
cat ~/.upkuajing/.env
Example file content:
UPKUAJING_API_KEY=your_api_key_here
First check if the ~/.upkuajing/.env file has UPKUAJING_API_KEY;
If UPKUAJING_API_KEY is not set, prompt the user to choose:
auth.py --new_key), the new key will be automatically saved to ~/.upkuajing/.env
Wait for user selection;When API response indicates insufficient balance, explain and guide user to top up:
auth.py --new_rec_order)Use this script to get account information for UPKUAJING_API_KEY: auth.py --account_info
All API calls incur fees, different interfaces have different billing methods.
Latest pricing: Users can visit Detailed Price Description
Or use: python scripts/auth.py --price_info (returns complete pricing for all interfaces)
Billed by number of calls, each call returns one page of trade list:
Any operation that incurs fees must first inform and wait for explicit user confirmation. Do not execute in the same message as the notification.
| User Intent | Use API |
|---|---|
| "List countries trading with US from China in 2025" | Trade List Query |
| "Show country-by-country trade breakdown for CN to US" | Trade List Query |
| "Compare trade volumes across different countries" | Trade List Query |
User request: "List countries trading with US from China in 2025"
python scripts/customs_overview_trade_list.py --params '{"originCountryCode":"CN","arrivalCountryCode":"US","year":2025}'
Query the next page:
python scripts/customs_overview_trade_list.py --params '{"originCountryCode":"CN","arrivalCountryCode":"US","year":2025,"cursor":"eyJzdGFydCI6MH0="}'
Query for all origins to US:
python scripts/customs_overview_trade_list.py --params '{"arrivalCountryCode":"US","year":2025}'
UPKUAJING_API_KEY in ~/.upkuajing/.env fileCheck API documentation:
Pagination:
cursor parameter from the response to fetch the next pagecursor is returned in the response, there are no more pagesCountry codes:
countryCode in the response is the trading partner countryCross-skill usage:
year is the only required parametersellerCount and buyerCount are the number of distinct suppliers and buyerscursor for pagination — it's a base64-encoded stringpython scripts/auth.py --price_info to get accurate pricing informationOther UpKuaJing skills you might find useful: