The knowledge graph API might be a better choice than Trends:
https://developers.google.com/knowledge-graph/reference/rest...
Example response for [Taylor Swift],
{
"@id": "kg:/m/0dl567",
"name": "Taylor Swift",
"@type": ["Thing", "Person"],
// etc.
}
That's the same "mid" as Trends uses.