TianAPI OBD Fault Code Lookup for Openclaw

An Openclaw Skills wrapper for TianAPI that translates OBD fault codes into bilingual, technician-friendly diagnostics from the command line.

workxin
v1.0.0
Jul 13, 2026
0
365
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install tianapi-obdcode

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 tianapi-obdcode 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 TianAPI OBD Fault Code Lookup?

This Openclaw Skills integration wraps TianAPI's OBD fault-code endpoint so you can turn codes like P0101 or P267B into practical diagnostics in seconds. It returns the code, Chinese and English meanings, applicable vehicle scope, fault category, and a detailed description in a consistent, script-friendly format.

Built for developers, mechanics, and support workflows, Openclaw Skills makes OBD lookup fast, repeatable, and easy to embed in terminal tools, service assistants, and maintenance automations. Instead of maintaining a local fault-code database, you query a maintained API and get standardized results on demand.

TianAPI OBD Fault Code Lookup Use Cases

  • Diagnose a dashboard check-engine code from a customer or vehicle scan tool.
  • Translate OBD codes into Chinese and English for multilingual support teams.
  • Add fault-code lookup to a CLI utility, chat assistant, or internal service tool.
  • Enrich fleet maintenance workflows with code category and vehicle-scope context.
  • Quickly confirm whether a code is generic or associated with a specific fault area.
  • Provide repair-oriented explanations during technician triage.

How TianAPI OBD Fault Code Lookup Works

  1. The user provides an OBD trouble code such as P0101 or P267B.
  2. The skill resolves the TianAPI API key from an environment variable, a local .env file, or a one-off command-line argument.
  3. scripts/fetch_obdcode.py sends a request to https://apis.tianapi.com/obdcode/index with key and code parameters, or you can call the REST endpoint directly.
  4. The API returns structured diagnostic data, including the fault code, bilingual meanings, vehicle applicability, category, and detailed description.
  5. The workflow renders the result for the terminal and handles documented error states such as missing parameters, invalid keys, quota limits, empty results, and timeouts.

TianAPI OBD Fault Code Lookup Setup

  1. Register for a TianAPI account and apply for the OBD code lookup API.
  2. Copy your API key from the TianAPI dashboard.
  3. Make sure Python 3 is installed, since this Openclaw Skills package requires python3.
  4. Choose one of the supported key-loading methods.
# Option 1: export an environment variable
export TIANAPI_OBDCODE_KEY=your_api_key

# Option 2: create a local .env file for scripts
mkdir -p scripts
echo 'TIANAPI_OBDCODE_KEY=your_api_key' > scripts/.env

# Option 3: pass the key at runtime
python3 scripts/fetch_obdcode.py your_api_key --code P267B
  1. Test the lookup with a known code.
python3 scripts/fetch_obdcode.py your_api_key --code P267B
  1. If you do not want to use the helper script, call the API endpoint directly.
curl 'https://apis.tianapi.com/obdcode/index?key=YOUR_API_KEY&code=P267B'

TianAPI OBD Fault Code Lookup Data Schema & Taxonomy

The skill is intentionally lightweight: it does not require a local database and does not generate persistent artifacts by default. The core inputs and outputs are organized as follows.

Layer Field / File Purpose
Config TIANAPI_OBDCODE_KEY Primary environment variable for the TianAPI key
Config scripts/.env Optional local file for storing the API key during script execution
Input code Required OBD fault code to query, such as P267B
Input key Required TianAPI credential passed via env, file, or CLI
Endpoint https://apis.tianapi.com/obdcode/index REST lookup endpoint used by the script or direct calls
Script scripts/fetch_obdcode.py CLI wrapper that packages the fault-code lookup flow
Output stdout Human-readable diagnostic result for terminal use or piping

Response taxonomy

Field Meaning
code Fault code identifier
descr Detailed fault description
ennote English meaning of the code
zhnote Chinese meaning of the code
carmodel Applicable vehicle scope
category Fault category or system area

Error taxonomy

Status Meaning
150 API quota exhausted
160 API not yet applied for
230 Invalid API key
240 Missing key parameter
250 Empty response data
280 Missing code parameter
Timeout Network issue; retry the request

Openclaw metadata contract

Metadata key Value Purpose
metadata.openclaw.emoji 🚙 Visual identifier for the skill
metadata.openclaw.requires.bins python3 Runtime requirement
metadata.openclaw.requires.env TIANAPI_OBDCODE_KEY Required environment variable
metadata.openclaw.primaryEnv TIANAPI_OBDCODE_KEY Primary credential source

For Openclaw Skills consumers, the most important contract is stable field names and deterministic CLI behavior, which makes the output easy to parse in automation.

TianAPI OBD Fault Code Lookup Advanced Features

  • Three credential injection options: environment variable, local .env file, or per-command key argument.
  • Direct REST endpoint support plus reusable scripts/fetch_obdcode.py execution.
  • Structured bilingual diagnostics that make Openclaw Skills useful for both English- and Chinese-language workflows.
  • Documented error handling for quota, auth, missing-parameter, empty-data, and timeout scenarios.
  • Lightweight Python 3 footprint with no local fault-code database to maintain.
  • Easy to embed in fleet tools, service desks, chatbot assistants, and CI-style validation scripts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Categories
Requires
Bins python3
Github Stars: 0
forks: 0

Featured*