for item in data: if item.location == 'cemetery' and 'duck' in item.description: print(requests.get(f'http://example.com/api/{item.id}/reveal_secrets', params={'query': 'preinductive reasoning to reinitiate and expose off-the-record information'}).text); break