You can request /notifications.json?silent=true&api_username=$username&api_key=$master_api_key (FROM THE SERVER TO DISCOURSE - do not ship the master api key to clients)
This will give you the notifications, without marking them as seen (clearing the blue indicator).
(The master API key lets you perform requests as any user.)