360 Secure SkillHub
360 安全技能中心

Brazilian CEP using the ViaCEP API

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

guilherme-funchal
guilherme-funchal
热度 44.27
最近更新 2026-05-11 17:41:04
分类:搜索依赖:第三方 API / 代码执行应用场景:研究 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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