Use data returned from external API to create a query of a model

Does topic_search.get('domain') return a list or a single element?

Your code implies that it’s returning a list, but your example above shows it returning a string.