fittings-nhtsa-safety-ratings
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNHTSA NCAP safety ratings
NHTSA NCAP 安全评级
nhtsa.safety-ratingshttps://fittings.shNCAP five-star crash ratings for a model year, make and model: overall, frontal, side and rollover, with recall, complaint and investigation counts.
nhtsa.safety-ratingshttps://fittings.sh获取某款车型(含年份、品牌、型号)的NCAP五星碰撞评级:包括总体评级、正面碰撞、侧面碰撞及翻滚评级,同时提供召回、投诉和调查次数数据。
The call
调用方式
GET https://fittings.sh/v1/nhtsa/safety-ratings| Field | Type | Required | Notes |
|---|---|---|---|
| number | yes | Model year, e.g. 2015 |
| string | yes | Make, e.g. Honda |
| string | yes | Model, e.g. Accord |
Example input:
json
{
"modelYear": 2015,
"make": "Honda",
"model": "Accord"
}GET https://fittings.sh/v1/nhtsa/safety-ratings| 字段 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| number | 是 | 车型年份,例如:2015 |
| string | 是 | 品牌,例如:Honda |
| string | 是 | 型号,例如:Accord |
示例输入:
json
{
"modelYear": 2015,
"make": "Honda",
"model": "Accord"
}Cost and provenance
费用与数据源
| Price | $0.004 |
| Source | NHTSA SafetyRatings API (api.nhtsa.gov), public domain |
| Licence | public-domain |
| 价格 | $0.004 |
| 数据源 | NHTSA SafetyRatings API (api.nhtsa.gov),属于公共领域 |
| 许可证 | 公共领域 |
Why call it rather than answer from memory
为何调用接口而非凭记忆回答
Crash-test scores are per body style and drivetrain, not per model, so an agent comparing vehicles needs the tested variant rather than a remembered headline number.
碰撞测试分数是基于车身样式和传动系统,而非单一车型,因此对比车辆的Agent需要获取测试的具体版本数据,而非记忆中的标题性数字。
Calling it
调用指南
A skill is loaded on its own, so this document has to be enough by itself. It
does not assume the general skill is also loaded.
ships alongside this file; if it is missing (this document reached you without
the rest of the skill), fetch it once with
.
fittingscall.mjscurl -sO https://fittings.sh/skill/call.mjsFree, and needs no wallet. Read the schema and see what a call would cost:
bash
curl -s https://fittings.sh/catalog/nhtsa.safety-ratings | jqPaying. The endpoint answers with a signed quote,
you sign an authorization, and a facilitator settles it — you never send a
transaction and never pay gas. Before it spends anything, the client checks its
own hash against the gateway and refuses rather than sign with logic the
gateway has moved past:
402 Payment Requiredbash
undefined技能需单独加载,因此本文档需独立可用,不假设已加载通用的 技能。 文件与本文档一同发布;若缺失(仅收到本文档而未获取技能的其余部分),可通过以下命令一次性获取:
。
fittingscall.mjscurl -sO https://fittings.sh/skill/call.mjs免费且无需钱包:查看接口Schema并了解调用费用:
bash
curl -s https://fittings.sh/catalog/nhtsa.safety-ratings | jq付费调用:接口会返回 状态码及签名报价,您需签署授权,由服务商完成结算——您无需发起交易,也无需支付Gas费。在产生费用前,客户端会将自身哈希与网关进行校验,若网关逻辑已更新则拒绝签署:
402 Payment Requiredbash
undefinedDry run. Prints the quote and pays nothing, because no key is set.
试运行。仅打印报价,无需支付,因为未设置密钥。
node call.mjs nhtsa.safety-ratings modelYear=2015 make=Honda model=Accord
node call.mjs nhtsa.safety-ratings modelYear=2015 make=Honda model=Accord
For real: a wallet holding USDC on Base, and nothing else.
正式调用:需持有Base链上USDC的钱包,无需其他资产。
export FITTINGS_PRIVATE_KEY=0x...
node call.mjs nhtsa.safety-ratings modelYear=2015 make=Honda model=Accord
Spending is never a side effect of curiosity: with no `FITTINGS_PRIVATE_KEY`
the client fetches the quote and stops. `FITTINGS_MAX_PRICE` caps what it will
pay without asking, and defaults to $0.05.
**Use a throwaway wallet holding a few dollars, not a main one.** The key sits
in plaintext wherever the agent runs, and the whole cost of entry is USDC on
Base — no account, no API key, and no ETH, because the payer signs off-chain and
the facilitator broadcasts and pays the gas.
Writing your own client instead of using this one? `@x402/core` and
`@x402/evm` on npm, and the `fittings` skill records the two things that cost
real debugging time: the challenge is in a response header rather than the body,
and it must be re-signed from the exact request being retried.
If this is not the right service, `https://fittings.sh/catalog/search?q=...`
searches all of them for free.export FITTINGS_PRIVATE_KEY=0x...
node call.mjs nhtsa.safety-ratings modelYear=2015 make=Honda model=Accord
仅在明确授权时才会产生费用:未设置 `FITTINGS_PRIVATE_KEY` 时,客户端仅获取报价即停止操作。`FITTINGS_MAX_PRICE` 用于设置无需确认的最高支付限额,默认值为0.05美元。
**请使用仅持有少量资金的临时钱包,而非主钱包**。密钥以明文形式存储在Agent运行的环境中,入门仅需Base链上的USDC——无需账户、API密钥或ETH,因为付款方进行链下签名,由服务商负责广播交易并支付Gas费。
若不想使用该客户端,可自行开发:npm上提供 `@x402/core` 和 `@x402/evm` 包,`fittings` 技能记录了两个耗时调试的要点:挑战信息位于响应头而非响应体中,且必须针对重试的精确请求重新签名。
若该服务不符合需求,可通过 `https://fittings.sh/catalog/search?q=...` 免费搜索所有可用服务。