Skip to content

Organizations

List All Organizations

http
GET /organization

Returns a list of all active public organizations, including their links and streams. No auth required.

Example:

bash
curl https://api.radioreg.net/organization

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",
    "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/:id

Returns the details of an organization. No auth required.

Parameters:

NameTypeDescription
idintegerOrganization ID

Example:

bash
curl https://api.radioreg.net/organization/1

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",
  "links": []
}

Organization by Name

http
GET /organization/name/:name

Finds an organization by its name. No auth required.

Parameters:

NameTypeDescription
namestringName of the organization

Example:

bash
curl https://api.radioreg.net/organization/name/ExampleRadio

Random Organizations

http
GET /organization/limit/:limit

Returns a random selection of organizations. Useful for featured sections. No auth required.

Parameters:

NameTypeDescription
limitintegerNumber 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/10

Streams of an Organization

http
GET /organization/:id/streams

Returns all active streams of an organization. No auth required.

Parameters:

NameTypeDescription
idintegerOrganization ID

Example:

bash
curl https://api.radioreg.net/organization/1/streams

Response:

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
  }
]

RadioReg API