Source: https://dinakar-rewind.docs.pageloop.ai/api-reference/listening/refreshlisteningartistimages

# Refresh artist images via stored Apple Music id

POST `https://api.rewind.rest/v1/listening/admin/refresh-artist-images`

Deterministic-by-id fetch against the Apple Music catalog for artists that have an apple\_music\_id but no image row (or a stale null-source placeholder). Bypasses the name-search waterfall.

## Authorization

#### Authorization (header, string, required)

API key. Read keys (rw\_live\_...) access GET endpoints. Admin keys (rw\_admin\_...) access all endpoints.

## Response

#### 200

Image refresh results

#### success (boolean, required)

#### results (object, required)

#### properties

#### domain (string, required)

#### entityType (string, required)

#### queued (number, required)

#### succeeded (number, required)

#### skipped (number, required)

#### failed (number, required)

#### 401

Unauthorized

#### error (string, required)

#### status (integer, required)

#### Request

```bash cURL
curl -X POST 'https://api.rewind.rest/v1/listening/admin/refresh-artist-images' \
  -H 'Authorization: Bearer <token>'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/listening/admin/refresh-artist-images', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <token>',
  },
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/listening/admin/refresh-artist-images',
    headers={'Authorization': 'Bearer <token>'}
)
data = res.json()
```

#### Response

```json 200
{
  "success": true,
  "results": {
    "domain": "string",
    "entityType": "string",
    "queued": 0,
    "succeeded": 0,
    "skipped": 0,
    "failed": 0
  }
}
```

```json 401
{
  "error": "Not found",
  "status": 404
}
```
