url category database, flat file lists, or API

Does anyone know of a open source database, flat file lists, or API
that allows me to feed a url and have it return a category
For example, something like this

I know of dansguardian but it doesn't have battlefield.com as a game
site and is more of a blacklist.
I thought I saw one a few years back but it was only for linux but
still had categories.


from this search, fyi:


Looks like urlfilterdb isn't completely free but might be a solution.
I forgot the SQUID might have builtin classifications so I need to
look at that.