$url = "https://dadata.ru/api/v2/suggest/address"; 
     
        $headers = array( 
            "Content-type: application/json", 
            "Accept: application/json", 
			"Authorization: Token ДЛИННЫЙ_КЛЮЧ" 
        ); 
       
        $ch = curl_init(); 
        curl_setopt($ch, CURLOPT_URL,$url); 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
        curl_setopt($ch, CURLOPT_TIMEOUT, 60); 
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
        curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU"); 

        curl_setopt($ch, CURLOPT_POST, 1); 
        curl_setopt($ch, CURLOPT_POSTFIELDS, '{ "query": "Москва Площадь Ленина 5 6", "count": 5 }'); 

        $data = curl_exec($ch); 
		
		

        if (curl_errno($ch)) { 
		
			echo  "Error: " . curl_error($ch);			
         
			
        } else { 
		
			curl_close($ch);			
			echo json_decode($data, true);	
        }