Build with MalawiSongs
Integrate Malawi music, artists, albums, streaming and payments into your website or application using the MalawiSongs API.
Music API
Songs, albums, artists, genres and search.
Streaming
Playback and embeddable music experiences.
Payments
Build payment experiences for your application.
Webhooks
Receive events from MalawiSongs in real time.
Getting Started
Quick Start
Create a developer application, generate an API key and make your first request to the MalawiSongs API.
Create an application
Create your developer application from your MalawiSongs developer dashboard.
Generate an API key
Your API key identifies your application when making requests.
Make your first request
Request songs from the MalawiSongs Music API.
curl --request GET \
--url https://api.malawisongs.com/v1/songs \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json"Getting Started
Authentication
Authenticate API requests using the credentials issued to your developer application.
Keep credentials secure
Never expose secret server credentials in browser-side JavaScript, public repositories or mobile application source code.
Getting Started
Environments
Use test credentials while developing and live credentials when your integration is ready for production.
ms_test_••••••••••
Development and testing.
ms_live_••••••••••
Production integrations.
Music API
Songs
Retrieve public song information from MalawiSongs.
/v1/songsList songs/v1/songs/{song_id}Get song/v1/songs/latestLatest songs/v1/songs/trendingTrending songsMusic API
Albums
Retrieve albums, EPs, riddims and their associated songs.
/v1/albums/v1/albums/{album_id}/v1/albums/{album_id}/songsMusic API
Artists
Access public artist profiles, releases and performance information made available through the API.
/v1/artists/{artist_id}/v1/artists/{artist_id}/songs/v1/artists/{artist_id}/albumsMusic API
Search
Search MalawiSongs resources including songs, artists and albums.
/v1/search?q=search_term&type=songMusic API
Streaming
Build playback experiences while allowing MalawiSongs to securely manage stream access and tracking.
Recommended integration
Use an official MalawiSongs player or authorized playback endpoint instead of exposing private storage URLs directly.
Payments
Payments API
Create payment requests from your website or application.
curl --request POST \
--url https://api.malawisongs.com/v1/payments \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"amount": 5000,
"currency": "MWK",
"provider": "AIRTEL_MWI",
"phone": "0999123456",
"reference": "ORDER-1001"
}'Payments
Payment Status
Retrieve the latest state of an existing payment.
/v1/payments/{payment_id}Payments
Webhooks
Receive asynchronous events when the state of a MalawiSongs resource changes.
payment.completedPayment completed successfully.
payment.failedPayment could not be completed.
payment.pendingPayment is still processing.
payment.refundedPayment has been refunded where supported.
{
"event": "payment.completed",
"data": {
"payment_id": "PAY123456",
"reference": "ORDER-1001",
"amount": 5000,
"currency": "MWK"
}
}Resources
Errors
MalawiSongs uses standard HTTP status codes to indicate whether a request succeeded.
200Request successful400Invalid request401Authentication required403Permission denied404Resource not found422Validation failed429Too many requests500Server errorResources
Rate Limits
API requests may be rate limited to protect the stability and availability of MalawiSongs services. Exact limits should be documented here once your developer API policy is finalized.
Resources
SDKs & Examples
Provide integration examples for the technologies commonly used by MalawiSongs developers.
JavaScript
PHP
Laravel
Vue / Nuxt
React
Node.js
Resources
API Reference
The complete API reference can document every MalawiSongs endpoint, request parameter, response property, permission and error response.
MalawiSongs API v1
Base URL
https://api.malawisongs.com/v1