Install
openclaw skills install @upkuajing/customs-analysis-overviewQuery analysis report overview data — retrieve supplier/buyer counts by country with cursor-based pagination. Trigger: analysis overview, country statistics, supplier buyer counts, trade overview by country, report overview
openclaw skills install @upkuajing/customs-analysis-overviewQuery analysis report overview data from customs data using the UpKuaJing Open Platform API.
This skill provides aggregated overview data from UpKuaJing's customs analysis report. It returns supplier and buyer counts grouped by country, allowing you to understand trade activity distribution across different countries.
python --versionpip install -r requirements.txtScript directory: scripts/*.py
Run example: python scripts/*.py
Important: Always use direct script invocation like python scripts/customs_analysis_overview.py. Do NOT use shell compound commands like cd scripts && python customs_analysis_overview.py
customs_analysis_overview.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 overview data:
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 |
|---|---|
| "Show supplier and buyer counts by country" | Overview Query |
| "Get analysis report overview data" | Overview Query |
| "What countries have the most trade activity" | Overview Query |
User request: "Show analysis overview of supplier and buyer counts by country"
python scripts/customs_analysis_overview.py --params '{}'
Query the next page:
python scripts/customs_analysis_overview.py --params '{"cursor":"eyJpZCI6MX0="}'
UPKUAJING_API_KEY in ~/.upkuajing/.env fileCheck API documentation:
Pagination:
cursor parameter from the response to fetch the next pagecursor is returned, there are no more pagesCountry codes:
Cross-skill usage:
cursor is optional — omit to get the first pagecountSeller is the number of distinct supplierscountBuyer is the number of distinct buyerspython scripts/auth.py --price_info to get accurate pricing informationOther UpKuaJing skills you might find useful: