How to get list of all webinar along with its registrants?

Hi, I want to get the list of all webinars along with its registrants. For instance
Webinar: How to join Google as a developer?
Registrants

  • Jhon
  • David
  • Mom
  • Dad
  • Brother
    and more

Now I tried

https://api.zoom.us/v2/webinars/{webinarID}/registrants which gives me all related registrants
but I want to access all webinars all registrants

thanks

Hi @hassanaheer
Thanks for reaching out to the Zooom Developer Forum and welcome to our Community, I am glad you are here!

Unfortunately, we do not have an endpoint that you can call to access all webinars and all registrants.
You will need to programmatically do it, by calling each webinar to get all the registrants associated with it.

Hope this helps,
Elisa

Yes I have done it with programming. To send two different URL

  Task<Models.Webinars.WebinarMaster> GetWebinars()
        {
            return Task.Run(() =>
            {
                var webinars = new zoomwebinars.Models.Webinars.WebinarMaster();

                var url = "https://api.zoom.us/v2/users/me/webinars";
                var httpRequest = (HttpWebRequest)WebRequest.Create(url);

                httpRequest.Accept = "application/json";
                httpRequest.Headers["Authorization"] = $"Bearer  your token*****";

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();

                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                    var webinar = streamReader.ReadToEnd();
                    webinars = WebinarMaster.FromJson(webinar);
                }
                return webinars;
            });
        }

        // generate the list of against the webinar id 
        Task<Registrant.RegistrantMaster> Registrants(long webinarId)
        {
            return Task.Run(() =>
            {
                var getRegistrants = new RegistrantMaster();

                var url = $"https://api.zoom.us/v2/webinars/{webinarId}/registrants/";
                var httpRequest = (HttpWebRequest)WebRequest.Create(url);

                httpRequest.Accept = "application/json";
                httpRequest.Headers["Authorization"] = $"Bearer  your token****";

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();

                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                    var registrants = streamReader.ReadToEnd();
                    getRegistrants = RegistrantMaster.FromJson(registrants);
                };

                return getRegistrants;
            });
        }

then finally run nested loop to fetch data

1 Like

Thanks for sharing your workaround, I am sure others will benefit from this!