360 Secure SkillHub
360 安全技能中心

Brazilian CEP using the ViaCEP API

根据用户提供的巴西 CEP 邮编调用 ViaCEP 公共接口,返回街道、街区、城市、州和补充信息;对格式错误、查无结果和网络失败给出提示,无需认证。

分类:搜索
guilherme-funchal
guilherme-funchal
热度 32.37
最近更新 2026-05-11 17:41:04

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add guilherme-funchal/cep-lookup
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
cep-lookup
description
Looks up address data for a Brazilian CEP using the ViaCEP API.
metadata
{"openclaw":{"emoji":"📮","requires":{"bins":["node","npm"]},"install":[{"id":"npm","kind":"npm","package":"axios","bins":["axios"],"label":"Install axios for HTTP requests"}]}}

CEP Lookup

Looks up the full address for a Brazilian postal code (CEP) using the public ViaCEP API. No authentication required.

Triggers

Use this skill when the user mentions a CEP in any of these formats:

  • cep 01001-000
  • CEP 20040020
  • details for CEP 30140-110

Output

The skill returns:

  • Street (logradouro)
  • Neighborhood (bairro)
  • City (localidade)
  • State (UF)
  • Complement, if available (complemento)

Error handling

  • Invalid CEP format → usage instruction
  • CEP not found in ViaCEP database → informative message
  • Network failure → generic error message