Why am I getting a 500 “Internal server error” on a standard surveyreport API GET call?


In Python, I have a very standard and simple GET LIST call to SG’s API for the Report object.


url = f”https://restapi.surveygizmo.com/v5/survey/{surveyid}/surveyreport?api_token={mytoken}&api_token_secret={mysecret}”

reports = requests.get(url).json()


I’m getting the following error:

{‘result_ok’: False, ‘code’: 500, ‘message’: ‘Internal Server Error’}

I can successfully run other very similar calls to the API for the same survey, like CREATE CAMPAIGN and CREATE CONTACT, but it seems to be failing¬†when I try to GET LIST (of Survey Reports). I’ve tried v5 and v4, but no luck.

Any ideas?

Alex Silverman answered

    It seems there’s a bug out there, and using the BETA object worked. so:


    url = f”https://restapi.surveygizmo.com/v5/survey/{survey_id}/reporting?{apiHeaders}”
    report = requests.get(url).json()

    Alex Silverman answered


      Question stats

      • Active
      • Views923 times
      • Answers1 answer
      • Followers1 follower