--- title: "Extract data from a query" slug: "extract-data-from-a-query" updated: 2025-10-24T14:56:56Z published: 2025-10-27T16:36:42Z canonical: "docs.zetaly.io/extract-data-from-a-query" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zetaly.io/llms.txt > Use this file to discover all available pages before exploring further. # Extract data from a query ### API Endpoint: Get Queries This endpoint retrieves a list of queries available in the system. It is a simple HTTP GET request that returns a collection of query objects in JSON format. #### Request - **Method**: GET - **URL**: `https://{{base_url}}/zde/api/v2/queries/{query_id}/data?page=1&size=1000&format=OBJECT` - **Query Parameters**: - `page`: (integer) The page number of the results to retrieve. Default is `1`. - `size`: (integer) The number of results to return per page. Default is `1000`. - `format`: (string) The format of the response data. Must be set to `OBJECT`. #### Response Upon a successful request, the API will return a `200 OK` status along with a JSON array containing query objects. - **Response Structure**: The response is an array of objects, where each object contains its related fields. #### Notes - Ensure to handle cases where fields may be null or empty in the response. - This endpoint does not require any parameters to be passed in the request body.