Accessing Data from Your Database Using UP CARE's REST API
In this user manual, we will walk you through the steps required to connect to the API and retrieve your data. Please read on to ensure a smooth and efficient data retrieval process.
Access the REST API Route
To access your data through the REST API, open a web browser and visit the following URL:
https://sync.upcare.ph/api/payload/<team's_database_name>
Replace <team's_database_name>
with the actual name of your team's database.
Retrieve Data Types and Parsed Values
If your team has already submitted data types and the MQTT subscribe service is parsing the payload for values, you can access the following additional routes to retrieve specific information:
- datatype: This route returns the data types that are saved in your database.
- data: Use this route to access parsed values stored in a wide database table format.
- measurement: This route is designed to retrieve values saved in a long database table format.
Simply append the desired route to your base URL as shown in the provided link.
Filtering Data
For detailed guidance on how to effectively filter the data returned by the REST API, please refer to our comprehensive documentation available at this link: UP CARE REST API Reference.
Remember to include the /
character followed by your <team's_database_name>
at the end of each route to specify your database context.
By following these steps and utilizing the provided resources, you will be able to seamlessly access and manipulate your data using UP CARE's REST API. If you encounter any issues or require further assistance, please don't hesitate to contact our support team for prompt assistance. We are here to help you make the most of your data.