The US doesn't know the number of laws on all the federal, state, and city books. Often the lowest level of laws and ordinances are only in a city database, and sometimes not on the internet.
As a result, there is already an impossibility to get all the laws in the US in one database - and there are even countries that have not taken any steps to make their laws accessible on the internet at all. For example North Korean Law.
This is compounded by different entities proclaiming their laws and regulations in only their own language and on different proclamation platforms. Where available at all, the countries have country-wide laws and ordinances on their own dedicated websites. But again, federalism for the win: there will be different proclamation platforms for lower levels of legislation.
For example germany has its justice department host https://www.gesetze-im-internet.de/ which hosts all federal german laws. Schleswig Holstein hosts their state-level laws in corporation with the service Juris on https://www.gesetze-rechtsprechung.sh.juris.de/jportal/portal/page/bsshoprod.psml and the town of Kiel has all of its ordinances and special orders on https://www.kiel.de/de/politik_verwaltung/ortsrecht_bekanntmachungen/index.php
Why a conglomerate is a bad idea
Now, making a conglomerate of all the laws is actually a bad idea for several reasons:
- Updates. The different entities that are in making regulations with the force of law only update their official proclamation site. Often, such changes are not announced too loudly for the lowest levels, and with the number of cities in a single federal state, it's near impossible to keep the database up to date on a complete level. This is why different databases usually only scrape the federal levels.
- Scraping will break quickly. Each of the websites I pointed to in Germany has a different system setup, making scraping these websites for the relevant information basically useless. Compounding that, City ordinance pages are redesigned at a somewhat elevated pace, resulting in the scraping of these pages to break quickly, even if you manage to set it up.
- Citability. In a court of law, only the official text is relevant. If an update is missed, then the whole text is useless - you'll have to look up the actual, currently in-force version of the law or ordinance, so the conglomerate is not helping.
- You want a ginormous database. In some countries, judgments also make law as precedent. So you want every judgment in your database. Which quickly runs into a different problem: The US alone generates millions per day.