Skip to main content
GET
/
citizen
/
{cpf}
/
pets
/
stats
Obter estatísticas de pets do CPF
curl --request GET \
  --url https://services.pref.rio/rmi/v1/citizen/{cpf}/pets/stats \
  --header 'Authorization: Bearer <token>'
{
  "cpf": "<string>",
  "self_registered_pets_count": 123,
  "statistics": {
    "quantidade_cachorro": 123,
    "quantidade_gato": 123,
    "quantidade_outro": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

cpf
string
required

CPF do cidadão (11 dígitos)

Required string length: 11

Response

Estatísticas obtidas com sucesso

cpf
string
self_registered_pets_count
integer

Count of non-curated self-registered pets

statistics
object

Curated pets statistics from governo