# Pulling data from a website

**URL:** https://community.glideapps.com/t/pulling-data-from-a-website/69418
**Category:** Ask for Help
**Created:** [January 9, 2024, 3:23pm UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418 "2024-01-09T15:23:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Melissa\_Baron](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/melissa_baron/32/61075_2.png) [@Melissa\_Baron](https://community.glideapps.com/u/Melissa_Baron)
#### Post date: [January 9, 2024, 3:23pm UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/1 "2024-01-09T15:23:29Z")

</div>

hello I am working on a book tracker app and I want my users to be able to look up books on the app and from there add to their favorites/ organize/ rate and review them. I have a key from ISBNdb for the list of books database but having some difficulty figuring out how to connect it to my app. Can anybody provide some guidance, thank you!

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [January 10, 2024, 1:02am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/2 "2024-01-10T01:02:32Z")

</div>

> [@Melissa\_Baron](#):
>
> I have a key from ISBNdb for the list of books database but having some difficulty figuring out how to connect it to my app.

What “key” are you mentioning here? Is it an API key? Does the website provide a way to get data through an API?

---

<div class="post-metadata">

### Author: ![Melissa\_Baron](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/melissa_baron/32/61075_2.png) [@Melissa\_Baron](https://community.glideapps.com/u/Melissa_Baron)
#### Post date: [January 11, 2024, 5:14am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/3 "2024-01-11T05:14:32Z")

</div>

Hi @ThinhDinh yes its an API key I am a bit confused how to connect it I guess to the app

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 11, 2024, 5:26am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/4 "2024-01-11T05:26:55Z")

</div>

What is the URL?

---

<div class="post-metadata">

### Author: ![Melissa\_Baron](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/melissa_baron/32/61075_2.png) [@Melissa\_Baron](https://community.glideapps.com/u/Melissa_Baron)
#### Post date: [January 11, 2024, 5:37am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/5 "2024-01-11T05:37:45Z")

</div>

this is the website [https://isbndb.com](https://isbndb.com) and they have a log of a bunch of books data so I wanted to use them for the search option

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 11, 2024, 5:38am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/6 "2024-01-11T05:38:40Z")

</div>

the URL for the API cal

---

<div class="post-metadata">

### Author: ![Melissa\_Baron](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/melissa_baron/32/61075_2.png) [@Melissa\_Baron](https://community.glideapps.com/u/Melissa_Baron)
#### Post date: [January 11, 2024, 5:41am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/7 "2024-01-11T05:41:20Z")

</div>

I am not too sure what you mean like they API key?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 11, 2024, 5:43am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/8 "2024-01-11T05:43:15Z")

</div>

The URL for the JSON request… you said that you have a key… now you need the URL to attach that key to 😉

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 11, 2024, 5:45am UTC](https://community.glideapps.com/t/pulling-data-from-a-website/69418/9 "2024-01-11T05:45:33Z")

</div>

1. $url = ‘[https://api2.isbndb.com/book/9780134093413](https://api2.isbndb.com/book/9780134093413)’;

2. $restKey = ‘YOUR\_REST\_KEY’;

- $headers = [array](http://www.php.net/array)(

1. “Content-Type: application/json”,

2. "Authorization: " . $restKey

3. );

- $rest = [curl\_init](http://www.php.net/curl_init)();

1. [curl\_setopt](http://www.php.net/curl_setopt)($rest,CURLOPT\_URL,$url);

2. [curl\_setopt](http://www.php.net/curl_setopt)($rest,CURLOPT\_HTTPHEADER,$headers);

3. [curl\_setopt](http://www.php.net/curl_setopt)($rest,CURLOPT\_RETURNTRANSFER, true);

- $response = [curl\_exec](http://www.php.net/curl_exec)($rest);

- echo $response;

1. [print\_r](http://www.php.net/print_r)($response);

2. [curl\_close](http://www.php.net/curl_close)($rest);
