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
classification
For example, something like this
http://www1.k9webprotection.com/support/check-site-rating

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.

http://www.urlfilterdb.com/en/support/faq.html

from this search, fyi:

https://www.google.com/search?q=squid+url+filtering+classification

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.