Organizations
List All Organizations
http
GET /organizationReturns a list of all active public organizations, including their links and streams. No auth required.
Example:
bash
curl https://api.radioreg.net/organizationResponse:
json
[
{
"id": 1,
"name": "Example Radio",
"description": "An example radio station",
"image": "https://cdn.radioreg.net/logos/example.png",
"thumbnail": "https://cdn.radioreg.net/thumbnails/example.png",
"links": [
{ "type": "website", "url": "https://example.com" }
],
"streams": [
{
"id": 1,
"name": "Main Stream",
"url": "https://stream.example.com/live"
}
]
}
]Organization by ID
http
GET /organization/:idReturns the details of an organization. No auth required.
Parameters:
| Name | Type | Description |
|---|---|---|
id | integer | Organization ID |
Example:
bash
curl https://api.radioreg.net/organization/1Response:
json
{
"id": 1,
"name": "Example Radio",
"description": "An example radio station",
"image": "https://cdn.radioreg.net/logos/example.png",
"thumbnail": "https://cdn.radioreg.net/thumbnails/example.png",
"links": []
}Organization by Name
http
GET /organization/name/:nameFinds an organization by its name. No auth required.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | Name of the organization |
Example:
bash
curl https://api.radioreg.net/organization/name/ExampleRadioRandom Organizations
http
GET /organization/limit/:limitReturns a random selection of organizations. Useful for featured sections. No auth required.
Parameters:
| Name | Type | Description |
|---|---|---|
limit | integer | Number of results (max. 100) |
Response:
json
[
{
"id": 1,
"name": "Example Radio",
"description": "An example radio station",
"image": "https://cdn.radioreg.net/logos/example.png",
"thumbnail": "https://cdn.radioreg.net/thumbnails/example.png"
}
]Example:
bash
curl https://api.radioreg.net/organization/limit/10Streams of an Organization
http
GET /organization/:id/streamsReturns all active streams of an organization. No auth required.
Parameters:
| Name | Type | Description |
|---|---|---|
id | integer | Organization ID |
Example:
bash
curl https://api.radioreg.net/organization/1/streamsResponse:
json
[
{
"id": 1,
"name": "Main Stream",
"url": "https://stream.example.com/live",
"tags": ["pop"],
"organization": {
"id": 1,
"name": "Example Radio",
"image": "https://cdn.radioreg.net/logos/example.png"
},
"song": {
"title": "Blinding Lights",
"artist": "The Weeknd",
"cover": "https://cdn.example.com/cover.jpg",
"songDuration": 200,
"songStartedAt": 1730465520,
"next": null
},
"isStreamOfTheMonth": false,
"isNewcomerOfTheMonth": false,
"isRecentPopularStream": false,
"isTopVotedStream": false
}
]