Sure - it uses the TraktTv API (http://trakt.tv/api-docs) which I believe is based on the TheTVDB. I picked that one because it had JSON (TheTVDB uses XML and you have to request a key).
I run a cron job that polls the API once a day to check for new episodes.