Skip to contents

Elecciones

get_tipos_eleccion()
List all election types
get_tipo_eleccion()
Get a single election type by code
get_elecciones()
List elections with optional filters
get_eleccion()
Get a single election by ID

Territorios

get_territorios()
List territories with optional filters
get_territorio()
Get a single territory by ID
get_territorio_hijos()
List child territories (hierarchical navigation)

Partidos

get_partidos()
List political parties with optional filters
get_partido()
Get a single party by ID
get_partidos_recode()
List party recode/groups with optional filter
get_partido_recode()
Get a single party recode/group by ID

Resultados

get_totales_territorio_eleccion()
List territorial totals for an election
get_resultado_completo()
Get complete result for an election and territory
get_resultados()
List combined results (fully expanded)
get_totales_territorio()
List territorial totals (cross-election)
get_votos_partido()
List per-party votes (cross-election)

Voto exterior (CERA)

get_cera_resumen()
List CERA (overseas vote) summaries
get_cera_votos()
List CERA (overseas) per-party votes

Utilidades

get_health()
Check API health status

Configuración avanzada

Funciones para apuntar el paquete a una instancia propia de la API. Ver vignette("autodespliegue") para más detalles.

edb_set_base_url()
Set the EleccionesDB API base URL
edb_get_base_url()
Get the current EleccionesDB API base URL