How to get all topics list of Firebase through API?

Hisham Muneer picture Hisham Muneer · Jun 17, 2016 · Viewed 14.2k times · Source

I want to retrieve all the topics created so far via API request, similar to the list that firebase console display. See the image attached.

enter image description here

Answer

Ali picture Ali · May 18, 2017

I just copy Answer from same question here becuase this page is first result in google: Get all subscribed topics from firebase cloud messaging

you can do it through a GET request

HTTP GET Request

https://iid.googleapis.com/iid/info/<TOKEN>?details=true
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA

TOKEN in url : FirebaseInstanceId.getInstance().getToken();

key : can be found in [firebase console][1]: Your project -> settings -> Project settings -> Cloud messaging -> Server Key