100 articles · 8 breeds · tools · topics

official statistic

Swine inventory, all farms (PSA)

PSA's count of every pig in the country on the first morning of each quarter, all farm classifications together, from 01 January 2010. It measures the herd rather than what the herd costs, which nothing else here does.

Current quarterly Machine-retrieved heads

Download this series

What this series says

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

8,928,329

2.6%

01 Jul 2026. heads.

Highest

13,397,789

01 Jan 2010

Lowest

8,702,715

01 Apr 2026

Range

4,695,074

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.

Every published row

Swine inventory, all farms (PSA)

heads

9,000,00010,000,00011,000,00012,000,00013,000,00013,632,5438,467,96101 Jan 201001 Jul 202601 Apr 201301 Jul 201601 Jan 202001 Apr 2023

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.

Rows, blanks and columns

Coverage

67 rows, 2010-01-01 to 2026-07-01. 67 carry a figure.

Which optional columns it carries

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.

Freshness

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.

Whose survey, read how, out of which document

official statistic

PSA OpenSTAT — Philippine Statistics Authority statistical database

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.

How it was retrieved

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 0 — "TOTAL" 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.

The documents behind these rows

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,745 67 445983bdabe67a70…

The most recent 8

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 8,928,329 2026-08-21
01 Apr 2026 8,702,715 2026-08-21
01 Jan 2026 8,787,486 2026-08-21
01 Oct 2025 9,109,455 2026-08-21
01 Jul 2025 9,014,267 2026-08-21
01 Apr 2025 8,835,787 2026-08-21
01 Jan 2025 8,764,257 2026-08-21
01 Oct 2024 9,096,428 2026-08-21

All of these rows cite: https://openstat.psa.gov.ph/PXWeb/api/v1/en/DB/2E/LP/INV/NEW/0032E4FINS0.px

Four files, free, with attribution

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-total.csv text/csv 22 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-total.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-total.json application/json 28 KB 67 The same rows as the full CSV, as JSON, with the coverage summary and the licence.
swine-inventory-total.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.

Or the whole archive at once

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.

baboyph-industry.parquet

Please link back

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-total". CC BY 4.0. https://baboyph.com/data/swine-inventory-total

BibTeX

@misc{baboyph-swine-inventory-total,
  title        = {Swine inventory, all farms (PSA)},
  author       = {{Baboy PH}},
  howpublished = {\url{https://baboyph.com/data/swine-inventory-total}},
  note         = {heads. CC BY 4.0.},
  urldate      = {2026-08-21},
}

Straight at the data

https://baboyph.com/data/swine-inventory-total.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.