# Error: Empty Authorization header

**URL:** <http://forum.companieshouse.gov.uk/t/error-empty-authorization-header/5223>\
**Category:** API Issues\
**Created:** [July 5, 2022, 4:38pm UTC](http://forum.companieshouse.gov.uk/t/error-empty-authorization-header/5223 "2022-07-05T16:38:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitriynikolayev47](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/d/ba8739/32.png) [@dmitriynikolayev47](http://forum.companieshouse.gov.uk/u/dmitriynikolayev47)\
**Post date:** [July 5, 2022, 4:38pm UTC](http://forum.companieshouse.gov.uk/t/error-empty-authorization-header/5223/1 "2022-07-05T16:38:15Z")

</div>

Hello, when I try to interact with the API, I get this error.

1. I created a LIVE application.
2. Created a Rest API key.  
API I want to connect with Google Apps application. Sent a request with the following code:  
const url = “[https://api.company-information.service.gov.uk/search/companies](https://api.company-information.service.gov.uk/search/companies)”  
const api\_key = Utilities.base64Encode(“a9b0cfcb-a88d-4a53-8276-61d6c9ebda67:”)  
const params = {  
method: ‘GET’,  
muteHttpExceptions: true  
header: {  
“Authorization”: “Basic” + api\_key  
}  
}  
const req = UrlFetchApp.fetch(url, params)  
let res = JSON.stringify(req.getContentText())

The result of running this code:  
 ![5](http://discourselive.s3.dualstack.eu-west-1.amazonaws.com/original/2X/e/e11d8e525b91df5587e8b947b24963b3619689c8.png)

Also, I tried to make a curl request as in the example:

 ![4](http://discourselive.s3.dualstack.eu-west-1.amazonaws.com/original/2X/5/51368cc50c99981ab60efe19a3b91936df1e07f9.png)

I tried to create a Streaming API key and even connect via Oauth2, the result is the same.

Please tell me what could be the problem?
