> For the complete documentation index, see [llms.txt](https://docs.userlane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.userlane.com/developers/analytics-api/public/get-surveys-data.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Get Surveys Data

```json
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"servers":[{"url":"https://api.userlane.com/analytics"}],"security":[{"ApiTokenAuth":[]}],"components":{"securitySchemes":{"ApiTokenAuth":{"type":"http","scheme":"bearer"}},"schemas":{"PublicPaginatedSurveysResponsesData":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PublicSurveyResponse"},"type":"array","title":"Data","description":"List of surveys responses"},"pagination":{"$ref":"#/components/schemas/PaginationResponse"}},"type":"object","required":["pagination"],"title":"PublicPaginatedSurveysResponsesData","description":"Paginated surveys responses data model for public API"},"PublicSurveyResponse":{"properties":{"timestamp":{"type":"string","title":"Timestamp","description":"Timestamp of the survey response"},"score":{"type":"integer","maximum":5,"minimum":1,"title":"Score","description":"Survey score (1-5)"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment","description":"Optional comment provided with survey response"},"user":{"$ref":"#/components/schemas/PublicUserModel","description":"The end user, carrying both the internal id and your own application user id where one is mapped."}},"type":"object","required":["timestamp","score","user"],"title":"PublicSurveyResponse"},"PublicUserModel":{"properties":{"id":{"type":"string","title":"Id"},"applicationUserId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicationuserid"}},"type":"object","required":["id"],"title":"PublicUserModel"},"PaginationResponse":{"properties":{"page":{"type":"integer","exclusiveMinimum":0,"title":"Page"},"limit":{"type":"integer","exclusiveMinimum":0,"title":"Limit"},"totalElements":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Totalelements"},"totalPages":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Totalpages"}},"type":"object","required":["page","limit"],"title":"PaginationResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/public/surveys/property_id/{property_id}/survey_id/{survey_id}/responses":{"get":{"tags":["public"],"summary":"Get Surveys Data","operationId":"get_surveys_data_public_surveys_property_id__property_id__survey_id__survey_id__responses_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"survey_id","in":"path","required":true,"schema":{"type":"integer","description":"Survey ID","title":"Survey Id"},"description":"Survey ID"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Type of date range..","default":"custom","title":"Type"},"description":"Type of date range.."},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string"},{"type":"null"}],"description":"Start date of the range. Can be ISO date ('2024-01-01') or datetime ('2024-01-01T00:00:00.000Z')","title":"Start"},"description":"Start date of the range. Can be ISO date ('2024-01-01') or datetime ('2024-01-01T00:00:00.000Z')"},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string"},{"type":"null"}],"description":"End date of the range. Can be ISO date ('2024-12-31') or datetime ('2024-12-31T23:59:59.999Z')","title":"End"},"description":"End date of the range. Can be ISO date ('2024-12-31') or datetime ('2024-12-31T23:59:59.999Z')"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"exclusiveMinimum":0,"description":"Number of records per page","default":1000,"title":"Limit"},"description":"Number of records per page"},{"name":"segment_snapshot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"ID of the segment snapshot to filter users","title":"Segment Snapshot Id"},"description":"ID of the segment snapshot to filter users"},{"name":"commentOnly","in":"query","required":false,"schema":{"type":"boolean","description":"Filter to responses with comments only","default":false,"title":"Commentonly"},"description":"Filter to responses with comments only"},{"name":"score","in":"query","required":false,"schema":{"type":"array","items":{"enum":["1","2","3","4","5"],"type":"string"},"description":"Scores to filter by","title":"Score"},"description":"Scores to filter by"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"Sort direction and field (e.g. '-timestamp' for descending by timestamp)","default":"-timestamp","title":"Sort"},"description":"Sort direction and field (e.g. '-timestamp' for descending by timestamp)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPaginatedSurveysResponsesData"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.userlane.com/developers/analytics-api/public/get-surveys-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
