JSON Response Explanation
When you retrieve responses from the Responses API, the data is returned in a structured JSON format. This guide explains each component of the response structure so you can efficiently parse and work with your data.
Response structure overview
Top-level properties
Individual response object
Each item in the items array represents a single form submission:
Response metadata properties
Metadata object
The metadata object contains information about how the form was accessed:
Hidden fields object
Hidden fields passed via URL parameters appear in the hidden object:
These correspond to the Hidden Fields you defined when creating your form.
Calculated object
Contains calculated values based on form logic:
Currently, the main calculated value is score for forms with scoring enabled.
Answers array
The answers array contains all question-answer pairs. Each answer object has a specific structure based on the field type.
Answer object structure
Common properties:
field: Information about the questionid: Unique field IDtype: Field typeref: Custom reference you assigned
type: Answer data type- Answer value in type-specific property
Field types and answer formats
Short text / Long text
Website / URL
Phone number
Number
Multiple choice (single selection)
Multiple choice (multiple selections)
Dropdown
Yes/No
Rating (stars, hearts, etc.)
Opinion scale
Date
File upload
Picture choice
Legal consent
Payment
Ranking
Complete example response
Working with response data
Accessing answers by reference
Type checking
Best practices
- Use refs for lookups: Reference answers by
refrather than field ID for maintainability - Check answer types: Always verify answer type before accessing type-specific properties
- Handle missing answers: Questions can be optional, so answers might not exist
- Parse dates correctly: Use proper date parsing for timestamp fields
- Cache field mappings: Build a lookup table of refs to field types for efficient processing
Next steps
- See Walkthroughs for practical examples
- Learn about filtering responses
- Implement Right to be Forgotten for data compliance
- Check the API Reference for complete endpoint details