# Try it in browser!

The SDK is loaded in **this page!**

To try the SDK, just open the Console in your browser's Developer
Tools and call `sharetribeSdk.createInstance(...)` to create a new SDK
instance.

Then copy-paste the following commands to the Console:

Set your clientId:

```js
const clientId = "<your clientId here>";
```

Create new SDK instance:

```js
const sdk = sharetribeSdk.createInstance({clientId});
```

Fetch 10 listings:

```js
sdk.listings.query({per_page: 10}).then(response => {
  console.log("Fetched " + response.data.data.length + " listings.");
  response.data.data.forEach(listing => {
    console.log(listing.attributes.title);
  })
})
```
