How to send and share data
Five ways to get data in
- WildTag cellular tags: nothing to do on the tag. In the study, open Cellular tags and link the tag. Everything it sends to the WildTag Hub is filed in the study, by animal, as it arrives (checked every hour, and when you open the study).
- Tag logs from WildTag Tools: download the log over USB in Tools (CSV), then Upload data in the study. Several files at once are fine.
- Other files: CSV, TSV or JSON from any logger, spreadsheet or a Movebank export.
- Base station or your own scripts: create a study upload key and POST data to
https://siamaktavakoli.com/wildtag/datahub/api/ingest.php. - Other internet-connected tags or gateways: register a device in Cellular tags and post packets to
https://siamaktavakoli.com/wildtag/datahub/api/cell.php.
The same record (tag + time + kind of data) is stored once, so sending a file twice does no harm. The original files are kept in your storage, in your folder structure.
Table format
One row per time. A time column is required (timestamp, time, t…, ISO 8601 or Unix seconds; times without a zone are UTC). Other columns are read by name:
| Column names | Stored as |
|---|---|
tag, tag_id, serial, tag-local-identifier | tag |
animal, individual, individual-local-identifier | animal (created in the study if new) |
lat/lon, latitude/longitude, location-lat/location-long, alt | GPS location |
temp, temperature, pressure, light/lux, hr/heart_rate, battery, activity/odba, acc_x/acc_y/acc_z, event | sensor records |
| any other number column | “other sensor”, under its column name |
Long format also works: columns time, tag, type, value (and lat, lon for type gps), with type one of gps, accel, temp, pressure, light, heartrate, battery, event, other.
timestamp,tag,animal,lat,lon,temp,activity 2027-05-01T06:00:00Z,WT-0012,Tortoise F3,33.401,-106.302,21.4,12 2027-05-01T07:00:00Z,WT-0012,Tortoise F3,33.402,-106.301,23.0,40
Upload API (study upload key)
curl -X POST "https://siamaktavakoli.com/wildtag/datahub/api/ingest.php?tag=WT-0012" \ -H "Authorization: Bearer sik_…" -H "Content-Type: text/csv" --data-binary @log.csv
Body: CSV, JSON array, NDJSON, or a packet (below). gzip is accepted with Content-Encoding: gzip. Reply: {"inserted":…,"duplicates":…,"rejected":…,"errors":[…]}.
Device API (device token)
curl -X POST "https://siamaktavakoli.com/wildtag/datahub/api/cell.php" -H "Authorization: Bearer dvt_…" \
-d '{"batt":3.91,"recs":[{"t":1798790400,"lat":33.40,"lon":-106.30,"temp":21.5,"hr":48}]}'
Data is always filed under the device’s registered tag serial. GET with the token returns the server time (clock sync). Short keys: t time, lat lon alt temp pres light hr acc batt event.
Sharing, contracts and the data API
- Owners choose to list a study. The catalogue shows only its title, kinds of data, number of tags, period and owner.
- Another researcher sends a request: purpose, data, duration, number of records, offer.
- The owner proposes terms: which data, how long, how many records, fee, location precision (exact, ≈1 km, ≈10 km or none), whether records may be downloaded and whether analyses and alerts may be run. Both sides sign that exact version (its fingerprint is shown).
- Free contracts open at once; paid ones when the payment is confirmed. The platform keeps 10% of the fee.
- The requester creates an access key and reads data:
curl -H "Authorization: Bearer dak_…" "https://siamaktavakoli.com/wildtag/datahub/api/data.php?type=gps&from=2027-05-01&limit=1000" # next page: add &after_id=<next_after_id>; CSV: &format=csv; terms and quota: ?info=1
Each call counts records against the contract, is limited to 120 calls a minute, and is logged for the owner. Access ends automatically at the end date; the owner can end it early.
Analyses and alerts
Per tag: records, period, sensor min/mean/max, distance moved, daily distance and home range (100% minimum convex polygon). Alerts: leaves or enters an area, no movement for a period (possible mortality or dropped tag), tag silent, sensor above or below a limit, long daily movement. An alert is sent in the hub and by e-mail to the study owner and to whoever set it. Researchers with a contract that allows analyses see results and alerts, never the raw positions.
Security
- One account for the WildTag Hub and the Data Hub; passwords are stored as hashes only.
- Upload keys, device tokens and access keys are shown once and stored only as fingerprints; each can be switched off at any time.
- Data and files are kept outside the public web folder and are reachable only through these pages and APIs.
- Forms are protected against cross-site requests; sign-in and APIs are rate-limited; every upload, download and change is logged.