Pull buzzfeed api stuff into functions