Skip to contents

Queries

Retrieving rows from the three TransfereGov APIs.

tg_get() tg_obter()
Retrieve rows from a TransfereGov table
tg_count() tg_contar()
Count the rows a query matches
tg_ted() tg_fundo_a_fundo() tg_transferencias_especiais()
Query a single module
tg_metadata() tg_metadados()
Inspect what a query retrieved

Filters

The comparison operators the APIs accept. Each topic also lists its Portuguese alias, which shares the same help page.

Discovery

What the APIs publish, without making a request.

tg_modules() tg_modulos()
List the TransfereGov API modules
tg_tables() tg_tabelas()
List the tables a module publishes
tg_fields() tg_campos()
List the columns of a table
tg_schema_date()
Report the frozen schema's build date

Configuration

Caching and connection settings.

tg_cache_dir() tg_cache_pasta()
Where cached responses are stored
tg_cache_clear() tg_cache_limpar()
Delete cached responses
tg_base_url()
The API base URL in use