Build innovative applications with our platform.
We provide official SDKs and libraries to help you integrate with the BeatConnect platform quickly and easily. These tools handle authentication, error handling, and rate limiting, allowing you to focus on building your application.
To use our SDKs, you'll need an API key. If you don't have one yet, register as a developer to get started.
All our SDKs provide these core features:
Our JavaScript SDK works in both Node.js and browser environments, with TypeScript support and Promise-based APIs.
npm install beatconnect-js
Our PHP SDK provides a clean interface for PHP 7.4+ applications, with Composer support and PSR-18 compatibility.
composer require beatconnect/php-sdk
Our Python SDK supports Python 3.7+ with both synchronous and asynchronous APIs using async/await.
pip install beatconnect
Our Ruby SDK provides idiomatic Ruby access to the BeatConnect API, with Rails integration options.
gem install beatconnect
Our Java SDK supports Java 8+ with fluent APIs and built-in support for both blocking and non-blocking operations.
com.beatconnect
beatconnect-sdk
1.0.8
Our Go SDK provides a clean, idiomatic Go interface to the BeatConnect API, with full context support.
go get github.com/beatconnect/go-sdk
These libraries are developed and maintained by the BeatConnect community. While not officially supported, they provide valuable integrations for additional platforms and frameworks.
Laravel integration with Facades and Artisan commands
View on GitHub →If you've built an SDK for a platform not listed here, or want to contribute to existing SDKs, check out our SDK contribution guidelines.
Showcase your beats on any website with our customizable embedded player. Simply copy and paste the code below:
<iframe
src="https://player.beatconnectafrica.com/embed?id=beat_123456"
width="100%"
height="180"
frameborder="0"
allow="autoplay">
</iframe>
Producer Name
| Parameter | Type | Description |
|---|---|---|
| id | string | Beat ID (required) |
| color | string | Primary accent color (hex value) |
| auto_play | boolean | Start playback automatically |
| show_artwork | boolean | Show or hide the cover art |
| theme | string | Player theme (light or dark) |
Here's a simple example of using our JavaScript SDK to fetch and display beats:
// Import the BeatConnect SDK
import { BeatConnect } from 'beatconnect-js';
// Initialize the client with your API key
const client = new BeatConnect({
apiKey: 'your_api_key_here'
});
async function displayTopBeats() {
try {
// Fetch the top 5 beats in the Afrobeats genre
const response = await client.beats.list({
limit: 5,
genre: 'afrobeats',
sort: 'popular'
});
// Process the beats
const beats = response.data;
// Display the beats on your page
const beatsList = document.getElementById('beats-list');
beats.forEach(beat => {
const beatElement = document.createElement('div');
beatElement.className = 'beat-item';
beatElement.innerHTML = `
${beat.title}
By ${beat.producer.name}
Buy for $${beat.price}
`;
beatsList.appendChild(beatElement);
});
} catch (error) {
}
}
// Call the function when the page loads
window.addEventListener('DOMContentLoaded', displayTopBeats);