{"api":{"id":"api_69ba88dbee06299185534a15","slug":"brazil-viacep-postal-codes","name":"Brazil CEP Postal Code API","description":"Look up Brazilian postal codes (CEP) in batch, or search a street by state, city and street name. Returns street, district, city, state, region, IBGE municipality code and phone area code.","kind":"ready_made","visibility":"public","domain":"viacep.com.br","source_url":"https://viacep.com.br/ws/01001000/json/","category":"places","record_type":"place","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":11,"created_at":"2026-12-06T04:45:48.343Z","updated_at":"2026-12-06T04:45:48.343Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"The postal code as 8 digits.","required":true,"coverage":1,"example":"08190461"},{"name":"cep","type":"string","description":"The postal code as written, with dash.","required":false,"coverage":1,"example":"08190-461"},{"name":"street","type":"string","description":"Street name.","required":false,"coverage":1,"example":"Viela Paulista"},{"name":"complement","type":"string","description":"Range or building note for the code.","required":false,"coverage":0.8,"example":"1728"},{"name":"district","type":"string","description":"Neighbourhood (bairro).","required":false,"coverage":1,"example":"Vila Itaim"},{"name":"city","type":"string","description":"City.","required":false,"coverage":1,"example":"São Paulo"},{"name":"state","type":"string","description":"Two-letter state code.","required":false,"coverage":1,"example":"SP"},{"name":"state_name","type":"string","description":"Full state name.","required":false,"coverage":1,"example":"São Paulo"},{"name":"region","type":"string","description":"Brazilian macro-region, such as Sudeste.","required":false,"coverage":1,"example":"Sudeste"},{"name":"ibge_code","type":"string","description":"IBGE municipality code.","required":false,"coverage":1,"example":"3550308"},{"name":"area_code","type":"string","description":"Telephone area code (DDD).","required":false,"coverage":1,"example":"11"}],"inputs":[{"name":"cep","type":"string","description":"One or several 8-digit postal codes, separated by commas, with or without the dash.","example":"01001000"},{"name":"state","type":"string","description":"Two-letter state code for a street search, for example SP.","example":"SP"},{"name":"city","type":"string","description":"City name for a street search, at least 3 characters.","example":"Sao Paulo"},{"name":"street","type":"string","description":"Street name or part of it for a street search, at least 3 characters.","example":"Paulista"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"area_code":{"description":"Telephone area code (DDD).","type":"string"},"cep":{"description":"The postal code as written, with dash.","type":"string"},"city":{"description":"City.","type":"string"},"complement":{"description":"Range or building note for the code.","type":"string"},"district":{"description":"Neighbourhood (bairro).","type":"string"},"ibge_code":{"description":"IBGE municipality code.","type":"string"},"id":{"description":"The postal code as 8 digits.","type":"string"},"region":{"description":"Brazilian macro-region, such as Sudeste.","type":"string"},"state":{"description":"Two-letter state code.","type":"string"},"state_name":{"description":"Full state name.","type":"string"},"street":{"description":"Street name.","type":"string"}},"required":["id"],"title":"Brazil CEP Postal Code API","type":"object"},"samples":[{"id":"08190461","cep":"08190-461","street":"Viela Paulista","complement":null,"district":"Vila Itaim","city":"São Paulo","state":"SP","state_name":"São Paulo","region":"Sudeste","ibge_code":"3550308","area_code":"11"},{"id":"01310919","cep":"01310-919","street":"Avenida Paulista","complement":"1728","district":"Bela Vista","city":"São Paulo","state":"SP","state_name":"São Paulo","region":"Sudeste","ibge_code":"3550308","area_code":"11"},{"id":"01310911","cep":"01310-911","street":"Avenida Paulista","complement":"960","district":"Bela Vista","city":"São Paulo","state":"SP","state_name":"São Paulo","region":"Sudeste","ibge_code":"3550308","area_code":"11"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"area_code":1,"cep":1,"city":1,"complement":0.67,"district":1,"ibge_code":1,"id":1,"region":1,"state":1,"state_name":1,"street":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_69ba88dbee06299185534a15/run","openapi":"https://pullrow.dev/v1/apis/api_69ba88dbee06299185534a15/openapi.json","contract":"https://pullrow.dev/v1/apis/api_69ba88dbee06299185534a15/contract.json","page":"https://pullrow.dev/catalog/brazil-viacep-postal-codes"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Street search needs state, city and street together (city and street at least 3 characters) and returns at most 50 addresses.","CEP lookup takes up to 200 codes per run, one request each at about three per second, so a full batch takes about a minute.","Codes that do not exist are skipped without a record.","complement is empty for most streets; for large-customer or odd/even-numbered ranges it holds the range note.","Free public service with fair-use expectations and no uptime guarantee; data follows the Brazilian postal service (Correios) and IBGE."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"The postal code as 8 digits.","group":"Technical","shown":false,"written":false},{"name":"cep","label":"Cep","description":"The postal code as written, with dash.","group":"Basics","shown":true,"written":false},{"name":"street","label":"Street name","description":"","group":"Location","shown":true,"written":false},{"name":"complement","label":"Complement","description":"Range or building note for the code.","group":"Basics","shown":true,"written":false},{"name":"district","label":"District","description":"Neighbourhood (bairro).","group":"Basics","shown":true,"written":false},{"name":"city","label":"City","description":"","group":"Location","shown":true,"written":false},{"name":"state","label":"Two-letter state code","description":"","group":"Location","shown":true,"written":false},{"name":"state_name","label":"Full state name","description":"","group":"Location","shown":true,"written":false},{"name":"region","label":"Region","description":"Brazilian macro-region, such as Sudeste.","group":"Location","shown":true,"written":false},{"name":"ibge_code","label":"IBGE municipality code","description":"","group":"Basics","shown":true,"written":false},{"name":"area_code","label":"Telephone area code (DDD)","description":"","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"cep","label":"Cep","help":"One or several 8-digit postal codes, separated by commas, with or without the dash.","example":"01001000","written":false},{"name":"state","label":"State","help":"Two-letter state code for a street search, for example SP.","example":"SP","written":false},{"name":"city","label":"City","help":"City name for a street search, at least 3 characters.","example":"Sao Paulo","written":false},{"name":"street","label":"Street","help":"Street name or part of it for a street search, at least 3 characters.","example":"Paulista","written":false}]}},"incidents":[]}