Install
openclaw skills install @upkuajing/customs-overview-us-importQuery US import transaction statistics — retrieve import records, container counts, and last-90-day data grouped by state or city, with cursor-based pagination. Trigger: US import stats, US import by state, US import by city, American import records, US container import data
openclaw skills install @upkuajing/customs-overview-us-importQuery US import transaction statistics using the UpKuaJing Open Platform API.
This skill provides US import transaction statistics from UpKuaJing's customs database. You can query import data grouped by state or city, including total import records, container counts, and recent 90-day activity data.
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_us_import.py. Do NOT use shell compound commands like cd scripts && python customs_overview_us_import.py
customs_overview_us_import.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 US import statistics:
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 US import statistics by state" | US Import Query (type=state) |
| "Get US import data grouped by city" | US Import Query (type=city) |
| "Which US cities have the most import activity" | US Import Query (type=city) |
User request: "Show US import statistics by state"
python scripts/customs_overview_us_import.py --params '{"type":"state"}'
Query by city:
python scripts/customs_overview_us_import.py --params '{"type":"city"}'
Query the next page:
python scripts/customs_overview_us_import.py --params '{"type":"state","cursor":"eyJzdGFydCI6MH0="}'
UPKUAJING_API_KEY in ~/.upkuajing/.env fileCheck API documentation:
Query type:
type=state groups results by US state (e.g., "California")type=city groups results by US citytype is the only required parameterData fields:
records is the total number of import recordsrecordsLast90Days shows recent import activitycontainers is the total container countcontainersLast90Days shows recent container activityPagination:
cursor parameter from the response to fetch the next pagecursor is returned, there are no more pagesCross-skill usage:
type is the only required parametername in the response contains the state or city namepython scripts/auth.py --price_info to get accurate pricing informationOther UpKuaJing skills you might find useful: