The connector only reads data. It never creates, changes or deletes anything in Ideagri.
Configuring Ideagri as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Ideagri option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
The connector signs in to the Ideagri API with the username and password of an Ideagri Web user, the same ones used to sign in to Ideagri Web. The user must be allowed to use the Ideagri API (Ideagri support enables it) and be associated with the farms you want to sync. We recommend a user created for Nekt, so that a password change by a person does not stop your syncs. The following configurations are available:- Username: The username used to sign in to Ideagri Web.
- Password: The password of that user.
- Start Date: Earliest month read by the monthly tables (Milk Statistics and Monthly Indices) and by Mastitis Treatments, on the first sync and on full syncs. The other tables are always read in full.
- Farm Codes (advanced, optional): Comma-separated Ideagri farm codes (
cdfazenda, for example1000, 2000) to sync. Leave it empty to sync every farm associated with the user. The Farms table lists the codes after the first sync. - Monthly Tables Lookback (months) (advanced, default 3, minimum 1): On every sync, the monthly tables read again this many months before the month each farm was last read up to, because recent months keep changing as data is entered in Ideagri. A farm read for the first time (for example, one associated with the user later, or added to Farm Codes) is read from the Start Date.
- Data Origin (origemDados) (advanced, default 1): Application code Ideagri asks for when signing in and on most reads (0, 1 or 2). Keep the default unless Ideagri support tells you otherwise.
2. Select streams
Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new data. Milk Statistics and Monthly Indices are incremental by month.
- Full table: every time the extraction happens, we’ll get the current state of the data. Ideagri has no filter by change date, so the farm tables (animals, calvings, lactations and the registries) are always read in full.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. A full sync of the monthly tables reads again from the Start Date.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Available streams
The table below lists every stream, its slug (the exact identifier to pass when creating the source via API) and a short description.Fields by stream
Every table has the farm code (cdfazenda) where it applies, and an extra_fields column (JSON) with any other field Ideagri returned for the record. Column names follow Ideagri’s own field names. Dates, weights and yields are kept as text exactly as Ideagri sends them. Passwords are never loaded.
Farms and herd
Farms
Farms
The farms associated with the Ideagri user (or the ones listed in Farm Codes).Table:
farms · Primary key: cdfazenda · Sync: Full tableFarm Last Processing
Farm Last Processing
When each farm’s data was last processed into Ideagri Web: use it to check how fresh the other tables are.Table:
farm_last_processing · Primary key: cdfazenda · Sync: Full tableAnimals
Animals
Every animal of each farm with its category, sector, group, breed, parents, last weighing, last milk recordings, last calving and reproductive status.Table:
animals · Primary key: cdfazenda, cdanimal · Sync: Full tableSires
Sires
Bulls and semen registered on each farm (the sires list of the animals route), with the same fields as Animals.Table:
sires · Primary key: cdfazenda, cdanimal · Sync: Full tableCalvings
Calvings
Every calving recorded on each farm, with calving order, calving interval, calf sex, sire and body condition score.Table:
calvings · Primary key: cdfazenda, cdanimal, data, occurrence · Sync: Full tableLactations
Lactations
Every lactation of each farm, with start date, length, total and 305-day production, peak, average, SCC, protein and dry-off date.Table:
lactations · Primary key: cdfazenda, cdlactacao · Sync: Full tableHealth and registries
Mastitis Treatments
Mastitis Treatments
Base mastitis treatment protocols of each farm and their validity, from the Start Date month to the current month.Table:
mastitis_treatments · Primary key: cdfazenda, cdtratamentobase, dtinicio · Sync: Full tableProducts
Products
Active products of each farm, flagged when Ideagri lists them as veterinary products.Table:
products · Primary key: cdfazenda, cdproduto · Sync: Full tableDiseases
Diseases
Diseases registered on each farm.Table:
diseases · Primary key: cdfazenda, cddoenca · Sync: Full tableDiscard Reasons
Discard Reasons
Reasons for an animal leaving the herd (sale, death, discard).Table:
discard_reasons · Primary key: cdfazenda, cdmotivobaixa · Sync: Full tableDry-off Reasons
Dry-off Reasons
Reasons for drying off a cow.Table:
dry_off_reasons · Primary key: cdfazenda, cdmotivosecagem · Sync: Full tableSectors
Sectors
Sectors (pens, lots) of each farm.Table:
sectors · Primary key: cdfazenda, cdsetor · Sync: Full tableAnimal Groups
Animal Groups
Active animal groups of each farm.Table:
animal_groups · Primary key: cdfazenda, cdgrupoanimal · Sync: Full tableBreeds
Breeds
Breeds registered on each farm.Table:
breeds · Primary key: cdfazenda, cdraca · Sync: Full tableTanks
Tanks
Milk tanks of each farm.Table:
tanks · Primary key: cdfazenda, cdtanque · Sync: Full tableFarm Parameters
Farm Parameters
Configuration parameters of each farm, farm-wide or per sector.Table:
farm_parameters · Primary key: cdfazenda, cdparametro, cdsetor, occurrence · Sync: Full tableIATF Protocols
IATF Protocols
Fixed-time artificial insemination (IATF) protocols of each farm.Table:
iatf_protocols · Primary key: cdfazenda, cdprotocolo · Sync: Full tableFarm People
Farm People
Ideagri FIT app users and inseminators of each farm, with the sectors they work in. Passwords are never loaded.Table:
farm_people · Primary key: cdfazenda, role, cdpessoa · Sync: Full tableRankings
Rankings
Rankings
The classification rankings that exist in Ideagri.Table:
rankings · Primary key: id · Sync: Full tableRanking Results
Ranking Results
Every ranking applied to every farm, as it stands at sync time.Table:
ranking_results · Primary key: cdfazenda, cdranking, numero, occurrence · Sync: Full tableMonthly indicators
Milk Statistics
Milk Statistics
Monthly milk statistics per farm: cows in milk, days in milk, discarded milk, milk production and average, bacterial count, fat, protein and milk urea nitrogen.Table:
milk_statistics · Primary key: cdfazenda, tipo_consulta, ano, mes · Sync: Incremental (by periodo)Monthly Indices
Monthly Indices
Monthly herd indices per farm: cows, heifers and females, first-calf cows, age at first breeding and calving, service and voluntary waiting periods, daily production, days in milk, tank analyses (SCC, bacterial count, fat, protein) and SCC counts of cows.Table:
monthly_indices · Primary key: cdfazenda, indicador, periodo · Sync: Incremental (by periodo)Implementation Notes
Data Quality Considerations
- Ideagri Web holds what the farm’s Ideagri software last sent to it. The Farm Last Processing table shows when that happened for each farm.
- Ideagri has no filter by change date and no pagination, so every sync reads each farm’s whole lists. A table is only sent when every farm was read: if one farm fails, nothing is sent for that table in that run.
- If a farm that had rows returns none, or Ideagri no longer lists it for the user, that table stops with a warning instead of emptying the farm’s rows. A farm you leave out with Farm Codes is not an error. If the data or the farm access really was removed in Ideagri, run a full sync to accept it.
- Mastitis Treatments are treatment protocols and their validity periods (one row per treatment and validity start), not mastitis cases per cow.
- Monthly Indices are asked one farm at a time, because Ideagri averages over all the farms in one request. The current month is partial until it ends and is read again on the next syncs.
calvingsandranking_resultshave no record id in Ideagri;occurrencenumbers rows that repeat the same key (for example, twins).
API Limits & Performance
- Requests are sequential. Large herds take longer, because the animals list of each farm comes in a single answer.
- Milk Statistics makes one request per farm, statistic and year, and Mastitis Treatments one per farm and month since the Start Date: an early Start Date makes the first sync longer.
- Ranking Results makes one request per ranking and farm.
Not available through the Ideagri API
Ideagri’s API only lets other systems send individual milk recordings, inseminations, pregnancy diagnoses, weighings, product applications, mastitis cases, dry-offs and herd exits into Ideagri; it does not return them. Those events are therefore not available as tables, except through the latest values kept on each animal (last weighing, last three milk recordings, last calving, last breeding attempt) and through the monthly indicators. Financial, stock and sales data are not in the Ideagri API.Troubleshooting
Skills for agents
Download Ideagri skills file
Ideagri connector documentation as plain markdown, for use in AI agent contexts.