Coverage
67 rows, 2010-01-01 to 2026-07-01. 67 carry a figure.
official statistic
The backyard herd counted on its own. Close to four fifths of the national inventory sits in this classification, which is why a commercial-farm figure quoted as a national one is wrong by a margin nobody checks.
01 · The figures
Computed from the rows during the build, over live rows only — a withdrawn figure is one this site could not stand behind, and reprinting it as a record high would be republishing it under a different heading.
Latest
7,080,312
3.6%
01 Jul 2026. heads.
Highest
9,240,508
01 Jan 2010
Lowest
6,102,858
01 Jan 2025
Range
3,137,650
Highest minus lowest, across every published row.
Coverage
100%
67 of 67 rows carry a figure.
Span
16y
2010-01-01 to 2026-07-01
Freshness budget
184d
The rule: 92 days for a quarterly source, times 2 — 184 days. A budget at one cadence fires the moment a release is a day late, and a gate that fires on healthy data is one people learn to ignore.
Last read
2026-08-21
The last date somebody actually opened the source behind these rows.
02 · The shape of it
Swine inventory, smallhold farms (PSA)
heads
Reading it: the line breaks wherever the source published no figure, and each of those runs is shaded. The vertical axis is fitted to the data and both bounds are labelled; it does not start at zero, because ₱150 to ₱260 on a zero-based axis is a flat line and a fitted one is the same fact made legible.
03 · What is in it
67 rows, 2010-01-01 to 2026-07-01. 67 carry a figure.
Beyond the period, the value, the source and the access date, which every row in this archive has. Counted from the rows, so a column that stops being filled stops being listed.
first_seen
— 67 rows. the date this archive first held a row for that key, set once.
receipt_id
— 67 rows. the content-addressed receipt proving which document it came from.
The newest figure is 52 days old, inside its 184-day budget.
The rule: 92 days for a quarterly source, times 2 — 184 days. A budget at one cadence fires the moment a release is a day late, and a gate that fires on healthy data is one people learn to ignore.
04 · Where it comes from
official statistic
Every row carries the exact page or document it was read from, and the date somebody opened it — not just the agency. Those URLs are in the download, one per row, because "PSA OpenSTAT — Philippine Statistics Authority statistical database" is not a citation anybody can follow.
A PXWeb query against PSA OpenSTAT. The table is addressed by its full path, and every dimension this series pins names the code AND the label that code must still read. Both are re-read from the live table's own metadata before anything is written, and a label that has moved refuses the run instead of returning a different commodity at a believable peso figure.
| Field | Value | What guards it |
|---|---|---|
| Table | 2E/LP/INV/NEW/0032E4FINS0 | The full path from DB/ down, never the basename: 0042M4ARN09.px exists under two folders, one stops in 2021 and the other runs to 2026, and nothing in a response says which answered. |
| Classification | 1 — "Smallhold" | The label is re-read on every run. A code that changed meaning refuses. |
| Units | heads | PSA's own PX header, verbatim. Two production tables one geography level apart declare "metric ton, liveweight" and "metric ton"; reading the second as the first would put a claim on this site the source does not make. |
| Period | Period · the reading is a stock count taken on a stated morning, and the row is dated that morning rather than the end of the quarter it opens | The dimension is resolved by name, never by position, and the live value labels have to look like the style declared here. |
| Geography | geolocation 608 | Codes in the "livestock" family. PSA runs two schemes that are not translatable by arithmetic, so a code is only ever validated inside its own. |
1 document were read to build this series, each hashed on the exact bytes received. The newest 1 are below; the rest are on the provenance page . Download one, hash it, and either it matches or the publisher has reissued it.
| Document | Read on | Bytes | Rows | sha256 |
|---|---|---|---|---|
| scripts/fetch-psa-swine.mjs | 2026-08-21 | 3,698 | 67 | 086037866e2b56d9… |
07 · The tail
two years of a quarterly series. The whole thing is in the downloads below — this table is the end of it.
| Period | Value | Source read on |
|---|---|---|
| 01 Jul 2026 | 7,080,312 | 2026-08-21 |
| 01 Apr 2026 | 6,833,804 | 2026-08-21 |
| 01 Jan 2026 | 6,875,517 | 2026-08-21 |
| 01 Oct 2025 | 6,902,164 | 2026-08-21 |
| 01 Jul 2025 | 6,455,093 | 2026-08-21 |
| 01 Apr 2025 | 6,260,303 | 2026-08-21 |
| 01 Jan 2025 | 6,102,858 | 2026-08-21 |
| 01 Oct 2024 | 6,481,953 | 2026-08-21 |
All of these rows cite: https://openstat.psa.gov.ph/PXWeb/api/v1/en/DB/2E/LP/INV/NEW/0032E4FINS0.px
08 · Download
Every row carries its source, its URL and the date somebody actually opened it, and the attribution line is repeated on every row rather than in a header — because the unit of loss is the row, not the file.
| File | Format | Size | Rows | What is in it |
|---|---|---|---|---|
| swine-inventory-smallhold.csv | text/csv | 23 KB | 67 | Published rows only, one row per period. Retracted rows are excluded, so an average taken over this file is correct without filtering. Null values are the token NA. |
| full/swine-inventory-smallhold.csv | text/csv | 24 KB | 67 | Every row this archive has ever held, including withdrawn ones, with a status column and the retraction date and reason. Use this to audit the archive, not to compute on. |
| swine-inventory-smallhold.json | application/json | 28 KB | 67 | The same rows as the full CSV, as JSON, with the coverage summary and the licence. |
| swine-inventory-smallhold.parquet | application/vnd.apache.parquet | 3 KB | 67 | The published rows with types: the numeric columns are doubles and a missing figure is a real null rather than the NA token a CSV has to write. |
Sizes: the real ones, from the same call that produced the bytes the endpoint serves. There is deliberately no Parquet of the full file — the withdrawn rows are the ones nobody may compute on without looking.
Every series stacked under one schema, typed, with real nulls. It is not this series — kept in its own block so nobody takes the whole archive by mistake.
09 · Related
Each of these states its relation. A related list with no stated relation is a list of guesses, and the strongest ones here are facts about the source rather than editorial judgements.
Read out of the same source table, so the two move together or the table changed.
Read out of the same source table, so the two move together or the table changed.
Read out of the same source table, so the two move together or the table changed.
Same unit — heads — so the two compare directly.
Same unit — heads — so the two compare directly.
Same unit — heads — so the two compare directly.
Same unit — heads — so the two compare directly.
The herd — how many pigs there are.
10 · Cite it
Attribution is the only condition, and it is what keeps a figure traceable once it has been copied twice.
Plain text
Baboy PH state-of-the-industry archive, series "swine-inventory-smallhold". CC BY 4.0. https://baboyph.com/data/swine-inventory-smallhold
BibTeX
@misc{baboyph-swine-inventory-smallhold,
title = {Swine inventory, smallhold farms (PSA)},
author = {{Baboy PH}},
howpublished = {\url{https://baboyph.com/data/swine-inventory-smallhold}},
note = {heads. CC BY 4.0.},
urldate = {2026-08-21},
} Straight at the data
https://baboyph.com/data/swine-inventory-smallhold.csv
Licence: CC BY 4.0. The figures themselves are official statistics published by the agencies named above; what this archive adds is the retrieval, the provenance on every row, and the refusals.