Free image size API
Every spec on PixelSpec is available as static JSON. No key, no rate limit, and it is CORS-friendly, so you can build the current sizes straight into your own tools, bots or dashboards. 51 specs across 18 platforms.
All specs
Returns an object with a specs array containing every platform and asset.
A single spec
For example https://pixelspec.net/api/spec/youtube/thumbnail.json. Slugs match the page URLs, so /instagram/story maps to /api/spec/instagram/story.json.
All assets for one platform
For example https://pixelspec.net/api/spec/instagram.json.
Response shape
The provenance field
Every spec carries a provenance value of either documented or convention. It is the field to check before you present one of these numbers as a rule.
documentedmeans the platform publishes that number in its own help centre or developer docs. Thesourcesarray holds the URLs it was read from, andprovenanceNotesays exactly which parts are quoted.conventionmeans the platform publishes nothing for that surface, and the number is the one the industry has standardised on. Still the best available answer, but it is not a platform requirement and should not be described as one.
verifiedis per spec, so a single entry re-checked today carries today's date even when the rest of the set has not moved. The collection and platform endpoints report the newest date they contain. Where one file-size number would be misleading, maxKBNote carries the real answer in words (YouTube allows 50 MB from desktop but only 2 MB from the mobile app).
Example: fetch in JavaScript
Example: curl
Example: Python
License
The data is published under Creative Commons Attribution 4.0 International (CC BY 4.0). "Free to use, a link is appreciated" is a wish, not a licence, and a wish is not something a legal review can sign off on. CC BY 4.0 is: you may use, adapt and redistribute this data, including commercially, provided you credit the source. Paste this line wherever the numbers appear:
Versioning and stable fields
specs.json carries a top-level version and generatedAt. The version is semver over the data, not the site: patch when a value is corrected, minor when a spec or platform is added, major only when the response shape changes. These fields are guaranteed stable and safe to depend on: platform, asset, platformName, assetName, width, height, ratio, formats, minWidth, maxKB, maxKBNote, alt, provenance, verified and page. Anything not on that list may move without a major bump.
CSV
Most people who need these numbers work in a spreadsheet, not a terminal. https://pixelspec.net/api/specs.csv serves the same collection as CSV with a header row using exactly the field names above.
Terms
The API is static: no key, no rate limit, no account, and CORS is open. When a platform changes a size we update the JSON, bump that spec's verified field and record the correction in the changelog.
Prefer a visual reference? See the cheat sheet or embed the live resizer widget.