# Subscriber

#### Prerequisites

* A DPSN account with a registered topic.
* A delegated address with appropriate permissions.
* The DPSN SDK for your preferred programming language.

#### Quick Start <a href="#quick-start" id="quick-start"></a>

**1. Browse Data Stream Marketplace**

Navigate to the[ DPSN marketplace](https://streams.dpsn.org/) to discover and subscribe to real-time data streams. Click on the Subscribe button from the homepage to see all available streams. Filter streams by categories or sort by newest first. Click "View Details" to learn more about any specific stream.

<figure><img src="https://blog.dpsn.org/~gitbook/image?url=https%3A%2F%2Flh7-rt.googleusercontent.com%2Fdocsz%2FAD_4nXc2_YpiPJCBJs2ceQRHQwkBWQg5FdcZnDmKSsif9Au-7EvEsrSAp2GDYU1nxm8gRE2jy5i_gebt7U8-Y9Wcwrg3_tNsZBcagjWIyE-K_VJEb-2prAMOIPD9WlBP-tIwb8EyxNwq4A%3Fkey%3D5tcEOgMrXnnga4cALCJZtg&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=589dab28&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**2. View Stream Details**

Access comprehensive information about your selected data stream including description, availability timestamp, pricing per 1,000 events, and the unique Topic ID. The Topic ID serves as the unique identifier you'll use to access the data stream in your integration.

<figure><img src="https://blog.dpsn.org/~gitbook/image?url=https%3A%2F%2Flh7-rt.googleusercontent.com%2Fdocsz%2FAD_4nXfP22D0K74CMniHoGEkAz1t8Kjo8Aq9uw2YuB_xSNcB2qBAHbkQNdVRDST9WgdWDO00sDz2GJOO9Y5Yrthe1S1M6Om8eqgqT6NJQOFwrhJhDAKTmAbdWxAl-HAhEZ9lOLyYK_hC%3Fkey%3D5tcEOgMrXnnga4cALCJZtg&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1b6fbad4&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**3. API Access to Subscribe to the Stream**

You can access streams through our API integration. Follow the API access guide to subscribe to the specific stream of your choice.

<figure><img src="https://blog.dpsn.org/~gitbook/image?url=https%3A%2F%2Flh7-rt.googleusercontent.com%2Fdocsz%2FAD_4nXdzc4l9t1Dl6LaWUmP1eCFVFEkMZJw7eFvD758FAaca1eMpKo-8mET22o-qFdJDj5LQllArRGpUiyR_4ChuWK2-ycZ_aYrl8jkDuyijQAudrgotzAHB6y9ryhxZ0HyDdwWDFjUJiw%3Fkey%3D5tcEOgMrXnnga4cALCJZtg&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=85f0593&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**4. Alternatively you can choose SDK Access method to subscribe to the stream**

Alternatively you can choose the SDK Access method to Subscribe to the Stream. Install and Configure DPSN Client to begin.

Create a new file called dpsn-integration.js and initialize the DpsnClient with your server endpoint, access token, and connection settings. Add event handlers to monitor connection status and handle any errors that occur during the connection process.

<figure><img src="https://blog.dpsn.org/~gitbook/image?url=https%3A%2F%2Flh7-rt.googleusercontent.com%2Fdocsz%2FAD_4nXdFkSgH8D6J8iC60v2lxew0zvXYVp5Td8sEbMp0jWJ8av7LHaxavBWml9qgdGcdNo31nOtpSKF5JtR_WdhrvjNGyIVjKQ2WjI7twxxrImmYVws-BOg1OEO9_wYsjrPNPiab9eS5iw%3Fkey%3D5tcEOgMrXnnga4cALCJZtg&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=dc79bddd&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**5. Get Your Access Token and Integrate the Following Code**

Copy your access token from the dashboard to authenticate with the DPSN network. Use the provided details to complete your integration setup.

<figure><img src="https://blog.dpsn.org/~gitbook/image?url=https%3A%2F%2Flh7-rt.googleusercontent.com%2Fdocsz%2FAD_4nXc6WTwIYAgxIM4T_tol5P5oFR1WYJ2GqKu3aGdt38JKsA7WsEAfC2uRr78bLrXquKjLT3btMuTboKuPe0WOlvE1hRR2vJ8dqsI8rSbHaOBkSZjF0jFXcEEOn_8PD4uxqbl1Lf6Y%3Fkey%3D5tcEOgMrXnnga4cALCJZtg&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=e90d3ce&#x26;sv=2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dpsn.org/integration/subscriber.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
