How to Retrieve Microsoft Forms Responses Through the Graph API
Question details
Developers need a way to programmatically retrieve and process Microsoft Forms response data using Python and the Microsoft Graph API.

- Product
- Microsoft Forms / Microsoft Graph API
- Device & OS
- not provided
- Scenario
- Automating data retrieval from Microsoft Forms for processing in a Python application.
- Observed behavior
- Developers are seeking the correct Microsoft Graph endpoints, permissions, and authentication methods required to access form responses.
Ensure you have an active Microsoft 365 developer account, access to the Microsoft Entra admin center for app registration, and basic knowledge of Python and REST APIs.
Consult Microsoft Graph Documentation and Community Resources
Because Microsoft Forms API availability and supported Graph endpoints vary, verifying the latest endpoints and seeking community guidance is the most reliable approach.
Microsoft Graph API support for Microsoft Forms is continually evolving. Depending on whether the form is personal or tied to a Microsoft 365 Group, direct endpoints may not always be readily available or fully documented.
To ensure your Python application can successfully authenticate and retrieve response data, you must reference the official developer documentation or leverage established workarounds, such as reading form data synced to an Excel file.
Navigate to the official Microsoft Graph API documentation to review available endpoints, required scopes, and permissions for Microsoft Forms.
Go to the Microsoft Entra admin center, register your Python application, and obtain the necessary client ID, tenant ID, and client secret for authentication.
Assign the appropriate delegated or application permissions to your registered app and ensure an administrator grants consent if required by your organization.
If the specific endpoints you need are undocumented, post a detailed inquiry including your form type and authentication method in the Microsoft Q&A forum or the Microsoft Graph community.

Manage Exported Form Data with WPS Office
If you need to manually review or analyze Microsoft Forms responses exported to spreadsheets, WPS Office provides a powerful, free alternative to Microsoft Office. It offers seamless compatibility with Excel formats, making it easy to process, visualize, and share your form data without expensive subscriptions.
- 1. Download and Install: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open Exported Responses: Launch WPS Spreadsheet and open the .xlsx or .csv file containing your Microsoft Forms responses.
- 3. Analyze Your Data: Use pivot tables, formulas, and charts within WPS Spreadsheet to analyze and present the response data effectively.

Frequently Asked Questions
Is there a direct Microsoft Graph API endpoint for all Microsoft Forms?
API availability depends on the type of form. While some group form data can be accessed or synced via SharePoint and Excel APIs, direct support for querying all Forms responses varies. Always check the latest Microsoft Graph documentation for updates.
Can I use Python to authenticate with the Microsoft Graph API?
Yes, you can use the Microsoft Authentication Library (MSAL) for Python. It simplifies the process of handling authentication, managing tokens, and securely connecting your Python app to the Microsoft Graph API.
What should I do if the specific Forms API is not documented?
If direct endpoints are not officially documented, the most reliable workaround is to set your Microsoft Form to export responses to an Excel workbook stored in OneDrive or SharePoint. You can then use the Microsoft Graph Excel API to programmatically read the spreadsheet data.




