API connected to the word frequency over category