Egg Count API

Consult and send ovitrap, block and field visit data directly from your system. This page documents all available public and private endpoints.

/en-ie/apiRequest API Key

About the API

This API has endpoints public and private. The public API returns data on latitude, longitude and number of eggs for each participating municipality over time, without the need for authentication. The private API is only recommended for applications that work in partnership with Conta Ovos, as it exposes sensitive data and allows you to insert, change and remove records.

Authentication and keys

To use the private API you will need an access key (key). To purchase it, send an email to contaovosdengue@gmail.com stating:

  • Why do you need API access;
  • What level of access is required (municipal, regional, state or country);
  • Which geographic region are you part of?

The key is made up of 45 random letters and must be sent in the parameter key of each private request. The geographic scope and plan linked to the key (api_access_municipality_id, state_id, region_id, country_id, plan) automatically define which records it can read or change — a municipal key, for example, can only read or modify data from the municipality itself.

Where to send the key: a key is always read from the URL query string (?key=SUA_CHAVE), including POST endpoints. Sending it only in the body of the form results in 404 "Wrong key". The other POST fields continue to appear in the request body.
Pagination: the parameters page accept a maximum of 100 on endpoints that support paging. Invalid or missing values ​​take page 1.

Response Codes

All endpoints follow the same HTTP status pattern:

CodeMeaning
200Request processed successfully.
400Mandatory parameter missing or in invalid format.
403The resource informed does not belong to the scope (city/state/region) of the key used.
404Invalid key (Wrong key) or resource not found.
409A record already exists for this identifier, year, and week combination.
500Internal error processing the request.

Public Endpoints

GET/api/lastcountingpublicPublic

Latest released counts

Returns the latest counts released by location (city, state or country), with the number of eggs and ovitrap data.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).
idintDisplays only occurrences from the given id. Example: id=7876.
datedateDisplays occurrences from the date of inclusion. Example: date=2025-01-01.
date_collectdateDisplays occurrences from the collection date onwards. Example: date_collect=2024-12-12.
date_startdateStart date to filter the counts. Example: date_start=2025-01-01.
date_enddateEnd date to filter counts. Example: date_end=2025-12-31.

Note: If no location parameters are sent, the endpoint returns the latest counts from Brazil.

Request example

curl -G -d "municipality=Ponta%20Pora" \
  /en-ie/api/lastcountingpublic

curl -G -d "state=MG" \
  /en-ie/api/lastcountingpublic

Sample answer

[
  {
    "state_name": "Minas Gerais",
    "state_code": "MG",
    "municipality": "Ponta Pora",
    "municipality_code": "5006606",
    "eggs": 42,
    "week": 3,
    "year": 2025,
    "time": "2025-01-20 14:32:10",
    "counting_id": 118342,
    "ovitrap_website_id": 981,
    "ovitrap_id": "97",
    "latitude": -7.000000,
    "longitude": -8.000000,
    "date": "2025-01-20",
    "date_collect": "2025-01-27"
  }
]
GET/api/getmunicipalityblocksvisitpublicPublic

Visits in Quarters

Returns data on visits (treatment actions) carried out in blocks — one line per visit, not per block.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "municipality=Vista%20Alegre" \
  /en-ie/api/getmunicipalityblocksvisitpublic

curl -G -d "state=MS" \
  /en-ie/api/getmunicipalityblocksvisitpublic

Sample answer

[
  {
    "block_id": 4521,
    "block_actions_mean": 3.4,
    "block_coordinates": "[[-7.123, -34.845], [-7.124, -34.846]]",
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS",
    "action_land_total_total": 21,
    "action_land_residence_total": 10,
    "action_land_commercial_total": 5,
    "action_land_empty_total": 3,
    "action_land_strategy_total": 1,
    "action_land_another_total": 2,
    "action_address_district": "Centro",
    "action_address_sector": "Setor 04",
    "action_deposit_a1_quantity": 4,
    "action_deposit_a2_quantity": 2,
    "action_deposit_b_quantity": 5,
    "action_deposit_c_quantity": 1,
    "action_deposit_d1_quantity": 0,
    "action_deposit_d2_quantity": 3,
    "action_deposit_e_quantity": 0,
    "action_observation": "Foco encontrado em pneus nos fundos do imovel.",
    "latitude": -7.123456,
    "longitude": -34.845678
  }
]
GET/api/getmunicipalityblockspublic-2Public

Registered blocks

Returns the blocks registered in the municipality — one line per block, with the polygon, total properties by type and average number of shares.

New endpoint. If you are looking for visits carried out in blocks, use /api/getmunicipalityblocksvisitpublic. As it is a public endpoint, the response does not include the agent responsible for the block or user/team identifiers.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "municipality=Alta%20Floresta" \
  /en-ie/api/getmunicipalityblockspublic-2

curl -G -d "state=MT" \
  /en-ie/api/getmunicipalityblockspublic-2

Sample answer

[
  {
    "block_id": 118342,
    "block_group_id": "1",
    "block_datetime": "Mon, 09 Sep 2024 10:12:41 GMT",
    "latitude": -9.849042,
    "longitude": -56.065069,
    "block_coordinates": "[{\"lat\":-9.849042,\"lng\":-56.065069}, ...]",
    "block_address_district": "DISTRITO INDUSTRIAL",
    "block_address_sector": "DISTRITO INDUSTRIAL",
    "block_municipality_id": 5566,
    "block_active": 1,
    "block_actions_mean": 22,
    "block_land_total": 24,
    "block_land_residence": 18,
    "block_land_commercial": 4,
    "block_land_empty": 2,
    "block_land_strategy": 0,
    "block_land_another": 0,
    "municipality": "Alta Floresta",
    "municipality_code": "5100250",
    "state_name": "Mato Grosso",
    "state_code": "MT"
  }
]
GET/api/getmunicipalityedlspublicPublic

Registered EDLs

Returns data from EDLs (strategic points that receive periodic maintenance from agents) registered by municipality.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "municipality=Vista%20Alegre" \
  /en-ie/api/getmunicipalityedlspublic

curl -G -d "state=MS" \
  /en-ie/api/getmunicipalityedlspublic

Sample answer

[
  {
    "edl_id": 1832,
    "edl_group_id": "104",
    "edl_address_datetime": "2025-02-11 09:15:00",
    "edl_lat": -7.123456,
    "edl_lng": -34.845678,
    "edl_municipality_id": 5007117,
    "group_id": 12,
    "user_id": 348,
    "edl_responsable_agent": "João da Silva",
    "edl_block_group_id": "12",
    "edl_responsable_home": "Maria Souza",
    "edl_date": "2025-02-11",
    "edl_water_mean": 1.8,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
GET/api/getmunicipalityedlmaintenancepublicPublic

EDL maintenance

Returns data on maintenance performed on the EDLs, including the observation recorded during each maintenance.

Replaces/api/getmunicipalityedlvisitspublic. EDLs receive maintenance, not visits — the fields have gone from edl_visit_* to edl_maintenance_*. The old URL continues to work and continues to return the old names, so as not to break integrations in production, but it is discontinued.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "municipality=Vista%20Alegre" \
  /en-ie/api/getmunicipalityedlmaintenancepublic

curl -G -d "state=MS" \
  /en-ie/api/getmunicipalityedlmaintenancepublic

Sample answer

[
  {
    "edl_maintenance_id": 9021,
    "edl_id": 1832,
    "edl_maintenance_time_week": 7,
    "edl_maintenance_time_year": 2025,
    "edl_maintenance_datetime": "2025-02-11 09:20:00",
    "edl_maintenance_user_id": 348,
    "edl_maintenance_observation": "Sem foco encontrado no local.",
    "edl_maintenance_observation_id": 3,
    "edl_maintenance_water_level": 0.5,
    "edl_maintenance_lat": -7.123456,
    "edl_maintenance_lng": -34.845678,
    "edl_maintenance_municipality_id": 5007117,
    "edl_maintenance_region_id": 4,
    "edl_maintenance_state_id": 24,
    "edl_maintenance_country_id": 1,
    "edl_maintenance_date": "2025-02-11",
    "edl_maintenance_observation_name": "Sem foco",
    "edl_maintenance_observation_number": 3,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
GET/api/getmunicipalityovitrapspublicPublic

Registered ovitraps

Returns data from ovitraps (egg monitoring points) registered by municipality.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "municipality=Vista%20Alegre" \
  /en-ie/api/getmunicipalityovitrapspublic

curl -G -d "state=MS" \
  /en-ie/api/getmunicipalityovitrapspublic

Sample answer

[
  {
    "ovitrap_id": 4471,
    "ovitrap_group_id": "97",
    "ovitrap_datetime": "2025-01-20 14:32:10",
    "ovitrap_lat": -7.123456,
    "ovitrap_lng": -34.845678,
    "ovitrap_lat_lng_error": 0,
    "ovitrap_municipality_id": 5007117,
    "group_id": 12,
    "user_id": 348,
    "ovitrap_eggs_mean": 12.5,
    "ovitrap_block_id": 4521,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
GET/api/getmunicipalityplacespublicPublic

Strategic points (places)

Returns the strategic points (land use locations at risk of proliferation) registered by municipality.

Parameters

NameTypeDescription
statestringState code. Example: state=RJ.
municipalitystringName of the municipality. Example: municipality=Ponta Pora
countrystringCountry name. Example: country=Brasil. If omitted, assumes "Brazil".
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "municipality=Vista%20Alegre" \
  /en-ie/api/getmunicipalityplacespublic

curl -G -d "state=MS" \
  /en-ie/api/getmunicipalityplacespublic

Sample answer

[
  {
    "place_id": 771,
    "user_id": 348,
    "place_address_district": "Centro",
    "place_address_sector": "Setor 04",
    "place_datetime": "2025-02-05 10:00:00",
    "place_address_lat": -7.123456,
    "place_address_lng": -34.845678,
    "place_municipality_id": 5007117,
    "place_region_id": 4,
    "place_state_id": 24,
    "place_country_id": 1,
    "place_type_id": 2,
    "place_name": "Ferro-velho Bom Preço",
    "place_coordinates": "[[-7.123, -34.845], [-7.124, -34.846]]",
    "place_subtype": 5,
    "place_area": 320.5,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]

Private Endpoints

All endpoints below require the parameter key with your API key.

GET/api/lastcountingPrivate

Latest released counts

Returns the last counts released within the scope of the key, with number of eggs, ovitrap data and the responsible user.

Parameters

NameTypeDescription
keystringYour API key. Defines the scope of the returned counts.
pageintPagination page (default 1, maximum 100).
date_startdateStart date to filter the counts. Example: date_start=2025-01-01.
date_enddateEnd date to filter counts. Example: date_end=2025-12-31.

Request example

curl -G -d "key=KEY&page=1" \
  /en-ie/api/lastcounting

Sample answer

[
  {
    "state_name": "Minas Gerais",
    "state_code": "MG",
    "municipality": "Ponta Pora",
    "municipality_code": "5006606",
    "eggs": 42,
    "week": 3,
    "year": 2025,
    "time": "2025-01-20 14:32:10",
    "user": "Joao da Silva",
    "counting_id": 118342,
    "ovitrap_website_id": 981,
    "ovitrap_id": "97",
    "district": "Centro",
    "street": "Rua das Flores",
    "number": "123",
    "complement": "",
    "loc_inst": "",
    "sector": "Setor 04",
    "latitude": -7.000000,
    "longitude": -8.000000,
    "date": "2025-01-20",
    "date_collect": "2025-01-27"
  }
]
GET/api/getmunicipalityedlsPrivate

Registered EDLs

Retorna os dados dos EDLs (pontos estratégicos visitados periodicamente pelos agentes) dentro do escopo geográfico da chave. O escopo é definido automaticamente pelo plano vinculado à chave — municipal, regional, estadual ou país — não sendo necessário informar município, estado ou país na requisição.

Parameters

NameTypeDescription
keystringSua chave de API. Define o escopo geográfico dos EDLs retornados.
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "key=KEY&page=1" \
  /en-ie/api/getmunicipalityedls

Sample answer

[
  {
    "edl_id": 1832,
    "edl_group_id": "104",
    "edl_address_datetime": "2025-02-11 09:15:00",
    "edl_lat": -7.123456,
    "edl_lng": -34.845678,
    "edl_municipality_id": 5007117,
    "group_id": 12,
    "user_id": 348,
    "edl_responsable_agent": "João da Silva",
    "edl_block_group_id": "12",
    "edl_responsable_home": "Maria Souza",
    "edl_date": "2025-02-11",
    "edl_water_mean": 1.8,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
GET/api/getmunicipalityedlvisitsPrivate

Visitas de EDLs

Retorna os dados das visitas realizadas aos EDLs dentro do escopo geográfico da chave, incluindo a observação registrada em cada visita. O escopo é definido automaticamente pelo plano vinculado à chave — municipal, regional, estadual ou país — não sendo necessário informar município, estado ou país na requisição.

Parameters

NameTypeDescription
keystringSua chave de API. Define o escopo geográfico das visitas retornadas.
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "key=KEY&page=1" \
  /en-ie/api/getmunicipalityedlvisits

Sample answer

[
  {
    "edl_visit_id": 9021,
    "edl_id": 1832,
    "edl_visit_time_week": 7,
    "edl_visit_time_year": 2025,
    "edl_visit_datetime": "2025-02-11 09:20:00",
    "edl_visit_user_id": 348,
    "edl_visit_observation": "Sem foco encontrado no local.",
    "edl_visit_observation_id": 3,
    "edl_visit_water_level": 0.5,
    "edl_visit_lat": -7.123456,
    "edl_visit_lng": -34.845678,
    "edl_visit_municipality_id": 5007117,
    "edl_visit_region_id": 4,
    "edl_visit_state_id": 24,
    "edl_visit_country_id": 1,
    "edl_visit_date": "2025-02-11",
    "edl_visit_observation_name": "Sem foco",
    "edl_visit_observation_number": 3,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
GET/api/getmunicipalityblocksPrivate

Latest actions in blocks

Retorna os dados das ações (visitas de tratamento) realizadas em quarteirões dentro do escopo geográfico da chave. O escopo é definido automaticamente pelo plano vinculado à chave — municipal, regional, estadual ou país — não sendo necessário informar município, estado ou país na requisição.

Parameters

NameTypeDescription
keystringSua chave de API. Define o escopo geográfico das ações retornadas.
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "key=KEY&page=1" \
  /en-ie/api/getmunicipalityblocks

Sample answer

[
  {
    "block_id": 4521,
    "block_actions_mean": 3.4,
    "block_coordinates": "[[-7.123, -34.845], [-7.124, -34.846]]",
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS",
    "action_land_total_total": 21,
    "action_land_residence_total": 10,
    "action_land_commercial_total": 5,
    "action_land_empty_total": 3,
    "action_land_strategy_total": 1,
    "action_land_another_total": 2,
    "action_address_district": "Centro",
    "action_address_sector": "Setor 04",
    "action_deposit_a1_quantity": 4,
    "action_deposit_a2_quantity": 2,
    "action_deposit_b_quantity": 5,
    "action_deposit_c_quantity": 1,
    "action_deposit_d1_quantity": 0,
    "action_deposit_d2_quantity": 3,
    "action_deposit_e_quantity": 0,
    "action_observation": "Foco encontrado em pneus nos fundos do imovel.",
    "latitude": -7.123456,
    "longitude": -34.845678
  }
]
GET/api/getmunicipalityovitrapsPrivate

Registered ovitraps

Retorna os dados das ovitrampas (pontos de monitoramento de ovos) dentro do escopo geográfico da chave. O escopo é definido automaticamente pelo plano vinculado à chave — municipal, regional, estadual ou país — não sendo necessário informar município, estado ou país na requisição.

Parameters

NameTypeDescription
keystringSua chave de API. Define o escopo geográfico das ovitrampas retornadas.
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "key=KEY&page=1" \
  /en-ie/api/getmunicipalityovitraps

Sample answer

[
  {
    "ovitrap_id": 4471,
    "ovitrap_group_id": "97",
    "ovitrap_datetime": "2025-01-20 14:32:10",
    "ovitrap_lat": -7.123456,
    "ovitrap_lng": -34.845678,
    "ovitrap_lat_lng_error": 0,
    "ovitrap_municipality_id": 5007117,
    "group_id": 12,
    "user_id": 348,
    "ovitrap_eggs_mean": 12.5,
    "ovitrap_block_id": 4521,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
GET/api/getmunicipalityplacesPrivate

Strategic points (places)

Retorna os pontos estratégicos (locais de uso do solo com risco de proliferação) dentro do escopo geográfico da chave. O escopo é definido automaticamente pelo plano vinculado à chave — municipal, regional, estadual ou país — não sendo necessário informar município, estado ou país na requisição.

Parameters

NameTypeDescription
keystringSua chave de API. Define o escopo geográfico dos pontos retornados.
pageintPagination page (default 1, maximum 100).

Request example

curl -G -d "key=KEY&page=1" \
  /en-ie/api/getmunicipalityplaces

Sample answer

[
  {
    "place_id": 771,
    "user_id": 348,
    "place_address_district": "Centro",
    "place_address_sector": "Setor 04",
    "place_datetime": "2025-02-05 10:00:00",
    "place_address_lat": -7.123456,
    "place_address_lng": -34.845678,
    "place_municipality_id": 5007117,
    "place_region_id": 4,
    "place_state_id": 24,
    "place_country_id": 1,
    "place_type_id": 2,
    "place_name": "Ferro-velho Bom Preço",
    "place_coordinates": "[[-7.123, -34.845], [-7.124, -34.846]]",
    "place_subtype": 5,
    "place_area": 320.5,
    "municipality": "Vista Alegre",
    "municipality_code": "5007117",
    "state_name": "Mato Grosso do Sul",
    "state_code": "MS"
  }
]
POST/api/postcountingPrivate

Read submission

Sends the reading of an ovitrap. It is possible to send data to an existing ovitrap or send the data and install a new ovitrap at the same time.

Parameters

NameTypeDescription
keystringYour API key. Defines the scope of the submission.

Request example

curl -X POST \
  "/en-ie/api/postcounting?key=KEY"

For standard shipping, where it is not necessary to install a new ovitrap, send the following fields (all mandatory) in the body of the request (form):

{
  "ovitrap_group_id": 97,
  "ovitrap_lat": -7.000000,
  "ovitrap_lng": -8.000000,
  "date": "2025-01-20",
  "counting_observation_id": 1,
  "counting_observation": "caso o counting_observation_id seja 9",
  "counting_eggs": 5
}

Table with the IDs of each type of observation (counting_observation_id):

IDMeaning
1No observations
2Interval between installation and collection longer than expected
3Ovitrap or missing palette
4Ovitrap or broken palette
5Ovitrap or palette removed
6Dry ovitrap
7Closed house
8Ovitrap filled with water
9Ovitrap with little water
10Another observation

To install a new ovitrap next to the shipment, mandatory the fields: ovitrap_lat, ovitrap_lng, ovitrap_group_id

{
  "ovitrap_group_id": 96,
  "ovitrap_address_district": "Distrito",
  "ovitrap_address_street": "Rua",
  "ovitrap_address_number": "Numero",
  "ovitrap_address_complement": "Complemento",
  "ovitrap_address_loc_inst": "",
  "ovitrap_lat": -7.000000,
  "ovitrap_lng": -8.000000,
  "ovitrap_address_sector": "Setor",
  "ovitrap_responsable": "Responsavel",
  "ovitrap_block_id": "Quarteirao",
  "ovitrap_type_id": 1,
  "date": "2025-01-20",
  "counting_date_collect": "2025-01-27",
  "counting_observation_id": 1,
  "counting_observation": "caso o counting_observation_id seja 9",
  "counting_eggs": 5
}

Table with the IDs of each type of ovitrap (ovitrap_type_id): send 1 to urban ovitrap and 2 to rural ovitrap. The field is optional and, when not sent, the ovitrap is installed as urban:

IDMeaning
1Urban ovitrap (standard)
2Rural ovitrap
Specific answers:
  • 400 — when any of the mandatory fields is not sent: ovitrap_lat, ovitrap_lng, ovitrap_group_id
  • 400 — when the ovitrap_type_id sent is neither 1 nor 2.
  • 404 — There is already a count for this ovitrap, year and week.
POST/api/postdeletecountingPrivate

Delete reading

Removes reading from an ovitrap.

Parameters

NameTypeDescription
keystringYour API key. Defines the scope of removal.

Request example

curl -X POST \
  "/en-ie/api/postdeletecounting?key=KEY"

Data required in the body of the request (form):

{
  "ovitrap_group_id": 97,
  "date": "2025-01-20"
}
POST/api/postdeleteovitrapPrivate

Delete ovitrap

Remove an ovitrap.

Parameters

NameTypeDescription
keystringYour API key.

Request example

curl -X POST \
  "/en-ie/api/postdeleteovitrap?key=KEY"

Data required in the body of the request (form):

{
  "ovitrap_group_id": 97
}
POST/api/postactionPrivate

Insert visit

Register a visit/action in a block. To add the visit to an existing block, send the field block_id. If it does not exist, use block_group_id — the system will create the block automatically. This endpoint only allows the insertion of blocks that are within the applicant's municipality.

Parameters

NameTypeDescription
keystringYour API key.

Request example

curl -X POST \
  "/en-ie/api/postaction?key=KEY"

Data sent in form or query parameters, using block_id:

{
  "block_id": 97,
  "date": "2025-01-20",
  "block_land_residence": 10,
  "action_land_residence_out": 2,
  "action_land_residence_breedings": 1,
  "action_land_residence_treated": 1,

  "block_land_commercial": 5,
  "action_land_commercial_out": 0,
  "action_land_commercial_breedings": 0,
  "action_land_commercial_treated": 0,

  "block_land_empty": 3,
  "action_land_empty_out": 1,
  "action_land_empty_breedings": 2,
  "action_land_empty_treated": 1,

  "block_land_strategy": 1,
  "action_land_strategy_out": 0,
  "action_land_strategy_breedings": 0,
  "action_land_strategy_treated": 0,

  "block_land_special": 0,
  "action_land_special_out": 0,
  "action_land_special_breedings": 0,
  "action_land_special_treated": 0,

  "block_land_another": 2,
  "action_land_another_out": 0,
  "action_land_another_breedings": 0,
  "action_land_another_treated": 0,

  "action_deposit_a1_quantity": 4,
  "action_deposit_a1_eliminated": 2,
  "action_deposit_a1_treated": 1,
  "action_deposit_a1_larvicid": 10,

  "action_deposit_a2_quantity": 2,
  "action_deposit_a2_eliminated": 1,
  "action_deposit_a2_treated": 0,
  "action_deposit_a2_larvicid": 0,

  "action_deposit_b_quantity": 5,
  "action_deposit_b_eliminated": 5,
  "action_deposit_b_treated": 0,
  "action_deposit_b_larvicid": 0,

  "action_deposit_c_quantity": 1,
  "action_deposit_c_eliminated": 0,
  "action_deposit_c_treated": 1,
  "action_deposit_c_larvicid": 5,

  "action_deposit_d1_quantity": 0,
  "action_deposit_d1_eliminated": 0,
  "action_deposit_d1_treated": 0,
  "action_deposit_d1_larvicid": 0,

  "action_deposit_d2_quantity": 3,
  "action_deposit_d2_eliminated": 1,
  "action_deposit_d2_treated": 2,
  "action_deposit_d2_larvicid": 15,

  "action_deposit_e_quantity": 0,
  "action_deposit_e_eliminated": 0,
  "action_deposit_e_treated": 0,
  "action_deposit_e_larvicid": 0,

  "action_observation": "Visita realizada conforme cronograma. Foco encontrado em pneus nos fundos do imovel."
}

Opting for block_group_id (block not yet registered), also send the data of the block itself:

{
  "block_group_id": 97,
  "date": "2025-01-20",
  "block_address_district": "Centro Historico",
  "block_address_sector": "Setor 04 - Norte",
  "block_coordinates": "[[-7.123, -34.845], [-7.124, -34.846]]",
  "block_lat": -7.123456,
  "block_lng": -34.845678,
  "block_responsable": "Joao da Silva",

  "block_land_residence": 10,
  "action_land_residence_out": 2,
  "action_land_residence_breedings": 1,
  "action_land_residence_treated": 1,

  "block_land_commercial": 5,
  "action_land_commercial_out": 0,
  "action_land_commercial_breedings": 0,
  "action_land_commercial_treated": 0,

  "block_land_empty": 3,
  "action_land_empty_out": 1,
  "action_land_empty_breedings": 2,
  "action_land_empty_treated": 1,

  "block_land_strategy": 1,
  "action_land_strategy_out": 0,
  "action_land_strategy_breedings": 0,
  "action_land_strategy_treated": 0,

  "block_land_special": 0,
  "action_land_special_out": 0,
  "action_land_special_breedings": 0,
  "action_land_special_treated": 0,

  "block_land_another": 2,
  "action_land_another_out": 0,
  "action_land_another_breedings": 0,
  "action_land_another_treated": 0,

  "action_deposit_a1_quantity": 4,
  "action_deposit_a1_eliminated": 2,
  "action_deposit_a1_treated": 1,
  "action_deposit_a1_larvicid": 10,

  "action_deposit_a2_quantity": 2,
  "action_deposit_a2_eliminated": 1,
  "action_deposit_a2_treated": 0,
  "action_deposit_a2_larvicid": 0,

  "action_deposit_b_quantity": 5,
  "action_deposit_b_eliminated": 5,
  "action_deposit_b_treated": 0,
  "action_deposit_b_larvicid": 0,

  "action_deposit_c_quantity": 1,
  "action_deposit_c_eliminated": 0,
  "action_deposit_c_treated": 1,
  "action_deposit_c_larvicid": 5,

  "action_deposit_d1_quantity": 0,
  "action_deposit_d1_eliminated": 0,
  "action_deposit_d1_treated": 0,
  "action_deposit_d1_larvicid": 0,

  "action_deposit_d2_quantity": 3,
  "action_deposit_d2_eliminated": 1,
  "action_deposit_d2_treated": 2,
  "action_deposit_d2_larvicid": 15,

  "action_deposit_e_quantity": 0,
  "action_deposit_e_eliminated": 0,
  "action_deposit_e_treated": 0,
  "action_deposit_e_larvicid": 0,

  "action_observation": "Area com alta densidade de recipientes descartaveis."
}
Specific answers:
  • 400 — when date is not sent or when one of the numeric fields is not a valid number.
  • 400 — when block_group_id is not sent when creating a new block.
  • 403 — when the block_id informed does not belong to the key municipality.
  • 409 — when there is already a visit for that block, year and week.
POST/api/postdeleteactionPrivate

Delete visit

Removes a visit from one block.

Parameters

NameTypeDescription
keystringYour API key.

Request example

curl -X POST \
  "/en-ie/api/postdeleteaction?key=KEY"

Data required in the body of the request (form):

{
  "block_group_id": 97,
  "date": "2025-01-20"
}
POST/api/postdeleteblockPrivate

Delete block

Removes a block.

Parameters

NameTypeDescription
keystringYour API key.

Request example

curl -X POST \
  "/en-ie/api/postdeleteblock?key=KEY"

Data required in the body of the request (form):

{
  "block_group_id": 97
}