Live data from Hacker News

Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

cia-factbook-archive.fly.dev

51–60 of 106 posts

Re: Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

#51

Cool project. The world population seems to be double counted. I think https://cia-factbook-archive.fly.dev/analysis/trends

Found the root cause. The "World" entity (population ~8 billion) was being called alongside all individual countries, doubling the total. Thank you again!

Re: Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

#52
post #31

There is a bug in the time series charts. Data needs to be normalized prior to charting. For example: https://cia-factbook-archive.fly.dev/archive/field/IN/Broadb...

Found the problem, the total regex doesn't handle magnitude suffixes:

2018: total: 17,856,024 → parses as 17856024 (correct raw count) 2020: total: 18.17 million → parses as 18.17 (WRONG - drops "million") 2025: total: 39.3 million → parses as 39.3 (WRONG) So the chart jumps from ~18 million down to ~18, making it wrong. The fix is to handle "million/billion/trillion" after total.

Just deployed a new bug fix.

Thanks for bringing this to my attention!

Re: Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

#54
There is a github of the factbook for anyone that just wants JSON or markdown files:=> https://github.com/factbook

"A cache for datasets for the country profiles from the World Factbook in the original (1:1) format from the cia.gov website"

https://github.com/factbook/cache.factbook.json

Re: Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

#56

I like the timeline feature. Maybe I need to spend more time, but to see political changes / borders / etc. would all be great! Keep up the good work.

Ohh that is a great idea! And since we already have the political field in SQL!. I will start working on some of this and update the website this week. Thank you for the awesome suggestions!

Re: Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

#57
post #33
post #5

Earlier quoted context omitted.

Hey there, will add the feature. Wasn't sure if people's computers could handle it all in one, lol, but will make it available in the data export page.

Not all. But some may. And in case you were shut down someone else can continue and one day it may be resurfaced perhaps even in USA.

Hi there, I have updated the webpage to include all countries/all years. It will give you a warning that the PDF is large. https://cia-factbook-archive.fly.dev/export

Re: Show HN: CIA World Factbook Archive (1990–2025), searchable and exportable

#59

There is a github of the factbook for anyone that just wants JSON or markdown files:=> https://github.com/factbook "A cache for datasets for the country profiles from the World Factbook in the original (1:1) format from the cia.gov website" https://github.com/factbook/cache.factbook.json

Hi there, thanks for linking this! My GitHub and website both link to and use this source! I just thought putting it in a SQL database and making the entire 1990-2025 queryable was needed since I couldn't find one anywhere :)
Post reply on HN