---
title: "React Native Retail SDK - Discovery API"
slug: "react-native-retail-sdk-discovery-api"
updated: 2024-11-26T10:06:12Z
published: 2024-11-26T10:06:12Z
canonical: "ignite.ticketmaster.com/react-native-retail-sdk-discovery-api"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://ignite.ticketmaster.com/llms.txt
> Use this file to discover all available pages before exploring further.

# React Native Retail SDK - Discovery API

To use the Discovery API in React Native you can call the Discovery API directly. You can find the documentation for the API here: [https://developer.ticketmaster.com/products-and-docs/apis/discovery-api/v2/](https://developer.ticketmaster.com/products-and-docs/apis/discovery-api/v2/) **Here is an example:**

```typescript
...
 const entityIds = ['K8vZ9171o57', 'K8vZ91718XV'].join(',')

 useEffect(() => {
        fetch(`https://app.ticketmaster.com/discovery/v2/attractions.json?id=${entityIds}&sort=relevance,desc&size=200&page=${page}&locale=en-us&apikey=${apiKey}`)
            .then((response) => response.json())
            .then((data) => {
               console.log(data._embedded.attractions)
            });
    }, [entityIds, page, apiKey])

...
```

Obtain an API key through your [developer account](https://developer-acct.ticketmaster.com/user/login?destination=user)
