# How to Subscribe to DPSN Data Streams: A Guide for Developers

<figure><img src="/files/pL5eayfpr79LHixMtOBh" alt=""><figcaption></figcaption></figure>

DPSN is a real-time data marketplace where developers can discover and subscribe to exclusive data feeds instantly. Access high-quality data streams without custom builds or complex integrations.

### Quick Start

#### 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://lh7-rt.googleusercontent.com/docsz/AD_4nXc2_YpiPJCBJs2ceQRHQwkBWQg5FdcZnDmKSsif9Au-7EvEsrSAp2GDYU1nxm8gRE2jy5i_gebt7U8-Y9Wcwrg3_tNsZBcagjWIyE-K_VJEb-2prAMOIPD9WlBP-tIwb8EyxNwq4A?key=5tcEOgMrXnnga4cALCJZtg" 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://lh7-rt.googleusercontent.com/docsz/AD_4nXfP22D0K74CMniHoGEkAz1t8Kjo8Aq9uw2YuB_xSNcB2qBAHbkQNdVRDST9WgdWDO00sDz2GJOO9Y5Yrthe1S1M6Om8eqgqT6NJQOFwrhJhDAKTmAbdWxAl-HAhEZ9lOLyYK_hC?key=5tcEOgMrXnnga4cALCJZtg" 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://lh7-rt.googleusercontent.com/docsz/AD_4nXdzc4l9t1Dl6LaWUmP1eCFVFEkMZJw7eFvD758FAaca1eMpKo-8mET22o-qFdJDj5LQllArRGpUiyR_4ChuWK2-ycZ_aYrl8jkDuyijQAudrgotzAHB6y9ryhxZ0HyDdwWDFjUJiw?key=5tcEOgMrXnnga4cALCJZtg" 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://lh7-rt.googleusercontent.com/docsz/AD_4nXdFkSgH8D6J8iC60v2lxew0zvXYVp5Td8sEbMp0jWJ8av7LHaxavBWml9qgdGcdNo31nOtpSKF5JtR_WdhrvjNGyIVjKQ2WjI7twxxrImmYVws-BOg1OEO9_wYsjrPNPiab9eS5iw?key=5tcEOgMrXnnga4cALCJZtg" alt=""><figcaption></figcaption></figure>

#### 5. Get Your Access Token and Integrate the Following Code&#x20;

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://lh7-rt.googleusercontent.com/docsz/AD_4nXc6WTwIYAgxIM4T_tol5P5oFR1WYJ2GqKu3aGdt38JKsA7WsEAfC2uRr78bLrXquKjLT3btMuTboKuPe0WOlvE1hRR2vJ8dqsI8rSbHaOBkSZjF0jFXcEEOn_8PD4uxqbl1Lf6Y?key=5tcEOgMrXnnga4cALCJZtg" alt=""><figcaption></figcaption></figure>

#### 6. Purchase credits to subscribe to streams&#x20;

You can purchase credits to subscribe to any stream. Navigate to the top menu and click on Payments to view your credits purchased. To request more credits, you can click on the Request Credit button and contact us via email stating your requirements.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdDoh9oMmAtb_DW5LIyjuMq1Dvla74WHLKWkKUIWfyS4VGMXqx3An61tBUE3wWw_kFskfwLxxQfUjAIo2VLqjmvaAHnGPotmNABFF4sS8ZOvm52mCo3RkFMVZGhpEaeU8ktCGI2?key=5tcEOgMrXnnga4cALCJZtg" alt=""><figcaption></figcaption></figure>

### Post-Subscription

#### Data Flow

Once subscribed, your integration will automatically receive real-time data events from the stream. Monitor your console output for incoming messages and implement your business logic to process the received data according to your application needs.

#### Stream Management

Access your active subscriptions through the "My Subscriptions" section in the dashboard. Monitor data usage and manage your stream subscriptions from a centralized location.

### Resources

* [DPSN Client Documentation](https://docs.dpsn.org/)
* [Support](https://t.me/dpsn_dev)
* [GitHub Examples](https://github.com/DPSN-org/dpsn-examples)

### Need Help?

Contact support for integration assistance or technical questions: <https://t.me/dpsn_dev>


---

# 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://blog.dpsn.org/how-to-subscribe-to-dpsn-data-streams-a-guide-for-developers.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.
