# GET /nowplaying/{station_id}

Returns a full summary of the specified station's current state.

Authentication: no security requirement declared for this operation.

Parameters:

- `station_id` (path, unknown, required)
  Type: unknown
  
  anyOf:
    Type: integer, int64
  
    Type: string, string

Responses:

- 200: Success

Content type: application/json

Type: object

Schema: [Api_NowPlaying](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying/index.md)

- `station` (required)
  Reference: [Api_NowPlaying_Station](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-station/index.md); Type: object

- `listeners` (required)
  Reference: [Api_NowPlaying_Listeners](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-listeners/index.md); Type: object

- `live` (required)
  Reference: [Api_NowPlaying_Live](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-live/index.md); Type: object

- `now_playing` (required)
  Type: unknown; nullable
  
  oneOf:
    Reference: [Api_NowPlaying_CurrentSong](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-currentsong/index.md); Type: object

- `playing_next` (required)
  Type: unknown; nullable
  
  oneOf:
    Reference: [Api_NowPlaying_StationQueue](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-stationqueue/index.md); Type: object

- `song_history` (required)
  Type: array
  
  Items:
    Reference: [Api_NowPlaying_SongHistory](https://sourcey-azuracast.pages.dev/docs/api/models/api-nowplaying-songhistory/index.md); Type: object

- `is_online` (required)
  Type: boolean
  
  Whether the stream is currently online.
  
  Example:
  
  ```json
  true
  ```

- `cache` (required)
  Type: string; nullable
  
  Debugging information about where the now playing data comes from.
  
  enum: ["hit","database","station"]

- 404: Record not found.

Content type: application/json

Type: object

Schema: [Api_Error](https://sourcey-azuracast.pages.dev/docs/api/models/api-error/index.md)

- `code` (required)
  Type: integer
  
  The numeric code of the error.
  
  Example:
  
  ```json
  500
  ```

- `type` (required)
  Type: string
  
  The programmatic class of error.
  
  Example:
  
  ```json
  "NotLoggedInException"
  ```

- `message` (required)
  Type: string
  
  The text description of the error.
  
  Example:
  
  ```json
  "Error description."
  ```

- `formatted_message` (required)
  Type: string; nullable
  
  The HTML-formatted text description of the error.
  
  Example:
  
  ```json
  "<b>Error description.</b><br>Detailed error text."
  ```

- `extra_data` (required)
  Type: array
  
  Stack traces and other supplemental data.
  
  Items:
    Type: any

- `success` (required)
  Type: boolean
  
  Used for API calls that expect an \Entity\Api\Status type response.
  
  Example:
  
  ```json
  false
  ```

## Examples

### cURL

```bash
curl -X GET 'https://demo.azuracast.com/api/nowplaying/0'
```

### JavaScript

```javascript
const response = await fetch('https://demo.azuracast.com/api/nowplaying/0', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('https://demo.azuracast.com/api/nowplaying/0')
print(response.text)
```
