It's a more general version of the topic How to use Nominatim API through PHP to retrieve latitude and longitude? which was asked in June 2017.
Currently, I just get an empty response.
Is it still possible to use the API with PHP file_get_contents?
Example API call
This site required the
User-AgentheaderI recommend using the guzzle package for HTTP requests.