Skip to content

Mosquito

Mosquito Abundance Data

Here you get access to mosquito abundance data from the Contaovos project, co-developed by the Mosqlimate project. These data, described below, are based on eggtraps distributed throughout Brasil according to a monitoring design specified by the Ministry of Health.

To more information, please access Contaovos API page.

Parameters Table

Input

Parameter name Required Type Description
date_start no date ISO Format. Example: "2024-01-01"
date_end no date ISO Format. Example: "2025-01-01"
state no str UF. Example: "MG"
page no int Page to be displayed
municipality no str City name. Example: "Ponta Porã"

Output

Parameter name Type Description
counting_id int
date str
date_collect str
eggs int Eggs count
latitude float Ovitrap latitude
longitude float Ovitrap longitude
municipality str Municipality name
municipality_code str Geocode. Example: 3304557
ovitrap_id str Ovitrap ID
ovitrap_website_id int
state_code str Geocode. Example: 33
state_name str
time str (date) RFC 1123 date format
week int Epidemiological week
year int Year

Usage examples

import mosqlient

mosqlient.get_mosquito(
    api_key = api_key,
    date_start = "2024-01-01",
    date_end = "2024-12-31",
    state = "MG",
)
library(httr)

contaovos_api <- "https://api.mosqlimate.org/api/datastore/mosquito"

params <- list(
  date_start = "YYYY-MM-DD",
  date_end = "YYYY-MM-DD",
  page = 1,
  state = "STATE_CODE",
  municipality = "MUNICIPALITY_NAME"
)

headers <- add_headers(
  `X-UID-Key` = API_KEY
)

resp <- GET(contaovos_api, query = params, headers)

if (http_type(resp) == "application/json") {
  items <- content(resp, "parsed")
} else {
  cat("Request failed with status code:", resp$status_code, "\n")
}
curl -X 'GET' \
'https://contaovos.com/pt-br/api/lastcountingpublic?date_start=YYYY-MM-DD&date_end=YYYY-MM-DD&page=1&state=STATE_CODE&municipality=MUNICIPALITY_NAME' \
-H 'accept: application/json' \
-H 'X-UID-Key: See X-UID-Key documentation' \
-d ''