Bing · curl
curl -G https://www.searchapi.io/api/v1/search \ -H "Authorization: Bearer $SEARCHAPI_API_KEY" \ --data-urlencode 'engine=bing' \ --data-urlencode 'country_code=US' \ --data-urlencode 'language=en' \ --data-urlencode 'q=how does a heat pump work'curl -G https://www.searchapi.io/api/v1/search \ -H "Authorization: Bearer $SEARCHAPI_API_KEY" \ --data-urlencode 'engine=bing' \ --data-urlencode 'country_code=US' \ --data-urlencode 'language=en' \ --data-urlencode 'q=how does a heat pump work'
The key is read from SEARCHAPI_API_KEY and sent as a Bearer token.