UAPI District Lookup Skill for Openclaw

A specialized API skill for retrieving domestic and international administrative district codes (Adcodes) via the UAPI platform.

shuakami
v1.0.0
Mar 10, 2026
0
920
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install uapi-get-misc-district

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install uapi-get-misc-district using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is UAPI District Lookup Skill?

The UAPI District Lookup skill provides a streamlined interface for developers and AI agents to query administrative regional data. By leveraging the GET /misc/district endpoint, this Openclaw Skills integration allows for precise identification of geographical boundaries and codes required for logistics, data visualization, and localized services. It serves as a specialized tool within the Openclaw Skills ecosystem for handling complex geographical hierarchies without manual database management, ensuring high accuracy in location-based tasks.

UAPI District Lookup Skill Use Cases

  • Retrieving Adcodes for domestic and international administrative regions.
  • Building location-aware applications that require standardized district identifiers.
  • Automating the lookup of geographical metadata for data analysis.
  • Validating user-provided regional information against official administrative records.

How UAPI District Lookup Skill Works

  1. The user or agent identifies a need for administrative district information or a specific Adcode.
  2. The Openclaw Skills agent consults the quick-start guide to verify the GET /misc/district endpoint matches the requirement.
  3. The agent analyzes the specific parameters, such as district name or parent region, required for the lookup.
  4. A request is sent to the UAPI base URL at https://uapis.cn/api/v1 with the necessary query parameters.
  5. The system processes the response, handling any rate limits or authentication needs via the UAPI Key if required.

UAPI District Lookup Skill Setup

To get started with this skill in your Openclaw Skills environment, ensure you have access to the UAPI endpoint.

# Configure the UAPI Base URL
export UAPI_BASE_URL="https://uapis.cn/api/v1"

# Optional: Set your UAPI Key for higher rate limits and quota
export UAPI_KEY="your_api_key_here"

Users can register at https://uapis.cn to obtain a free API key if they encounter 429 rate limit errors.

UAPI District Lookup Skill Data Schema & Taxonomy

The skill organizes geographical data using a standardized taxonomy. The following table describes the primary data structure involved in the district lookup:

Attribute Description
Method GET
Endpoint /misc/district
Resource Category Misc
Output Format JSON containing Adcode and district metadata
Success Code 200 OK
Error Code 400 (Bad Request) or 429 (Rate Limit Exceeded)

UAPI District Lookup Skill Advanced Features

  • Automated handling of authentication headers when a UAPI Key is provided to the agent.
  • Cross-regional support allowing for both domestic (China) and international administrative queries.
  • Seamless integration with other Openclaw Skills for complex data processing and mapping workflows.
  • Detailed error reporting and status code mapping to ensure robust AI agent interactions and automated retry logic.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*