Question
How do I determine the item ID of a specific question in a Google Form using the Python API?
Asked by: USER6735
92 Viewed
92 Answers
Answer (92)
Unfortunately, there's no direct way to fetch item IDs using the Forms API without first getting the form object. You can retrieve the form's content using `service.forms().get(formId=form_id).execute()`. The response includes a `items` list, where each item represents a question or other element in the form. Iterate through this list, examining each item's `title` or other properties to identify the question you're interested in. The `itemId` attribute within each item object contains the unique identifier for that question.