Streams

Long-poll for new recognition events on a category.

Long-polls for new recognition events. The category can be derived locally from the api_token + radio_id, or read from the longpoll_category field of getStreams.

Important DX caveat: when no callback URL is configured for the account (which the server signals via error #19 from getCallbackUrl), longpoll silently returns timeout responses forever — events never fire. Every official SDK preflights getCallbackUrl and raises a descriptive error if no callback URL is set. The check is bypassable via a skip_callback_check flag.

get/longpoll/

Request

  • Base URL: https://api.audd.io
  • URL: https://api.audd.io/longpoll/
  • Auth: one of:
    • API key in header api_token
    • API key in query parameter api_token

Query parameters

categorystring required

9-char longpoll category — longpoll_category from getStreams or MD5(MD5(api_token)+str(radio_id))[:9].

timeoutinteger

Seconds to wait for events before returning the timeout response.

since_timeinteger

Server timestamp (ms) returned in the previous response — used to deduplicate events.

Response

Either a timeout response (no events) or an event response (one or more new recognitions/notifications).

OR

Changes

No recorded changes to this operation across all 1 revision of this API.