# Getting a value using Http-Functions

**URL:** <https://forum.wixstudio.com/t/getting-a-value-using-http-functions/7499>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [March 13, 2021, 6:44am UTC](https://forum.wixstudio.com/t/getting-a-value-using-http-functions/7499 "2021-03-13T06:44:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paiysurv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/paiysurv/32/3707_2.png) [@paiysurv](https://forum.wixstudio.com/u/paiysurv)\
**Post date:** [March 13, 2021, 6:44am UTC](https://forum.wixstudio.com/t/getting-a-value-using-http-functions/7499/1 "2021-03-13T06:44:05Z")

</div>

Greetings.  
I am trying to get a value of a function result. I have one website that has a database and the other that I need to have the value obtained from the first website database displayed using HTTPS function. The http request seems not to work. The error am getting is a 404 error. I will also appreciate clues on how to display the text in my second site as a value. Here is my code:

//[https://erickkipngeno12.wixsite.com/mysite-2/\_functions/myFunctions/john](https://erickkipngeno12.wixsite.com/mysite-2/_functions/myFunctions/john)  
import { ok, notFound, serverError } from ‘wix-http-functions’ ;  
import wixData from ‘wix-data’ ;

export function get\_myFunction(request) {  
let options = {  
“suppressAuth” : **true** ,  
“suppressHooks” : **true**  
}

**return** wixData.query( “sample” )

```
    .eq( "number1" , request.path[0]) 

    .find() 

    .then((results) => { 

```

if (results.items.length \> 0 ) {

const body = “Found it!” ;

**return** ok({ body: body });

```
        } 

```

const body = “Not in the system” ;

**return** notFound({ body: body });

```
    }); 

```

}  
Any help will be appreciated!

 ![](https://us1.discourse-cdn.com/wix/original/3X/4/8/488e22b1f9ab2c5ea5bc3fab92266c8079d2e88d.png)
