---
title: Get the list of recorded weights
slug: import-test-pdf/get-the-list-of-recorded-weights
createdAt: 2025-10-28T16:28:34.264Z
---

{
  "id": "t9Aixo7l0oOX4R2NKaPlw",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/api/v1/pets/{id}/weights",
    "servers": [],
    "name": "Get the list of recorded weights",
    "description": "Returns the list of Weights for Pet",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "filter[type]",
          "type": "string",
          "example": "vet",
          "description": "<p>Who registerd the Weights(ex.: vet | owner)</p>"
        },
        {
          "kind": "optional",
          "name": "filter[clinic_id]",
          "type": "integer",
          "description": "<p>Clinic ID (required when filter[type] is  vet)</p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": [
                  {
                    "name": "clinic_unit",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "lbs"
                  },
                  {
                    "name": "last_weight_value",
                    "kind": "optional",
                    "type": "number",
                    "description": "",
                    "example": 79.38
                  },
                  {
                    "name": "weight_trend_is_up",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": true
                  },
                  {
                    "name": "weights",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "example": "",
                    "schema": [
                      {
                        "name": "dateTimes",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "example": "[\"17-01-2020\",\"21-01-2020\",\"26-02-2020\",\"31-03-2020\",\"29-04-2020\",\"08-05-2020\",\"12-05-2020\",\"14-05-2020\",\"18-05-2020\",\"19-05-2020\",\"26-05-2020\",\"10-06-2020\",\"10-06-2020\",\"15-06-2020\",\"17-06-2020\"]",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "kg",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "example": "[71,71,22,20,28,20,20,22,40,32,24,30,23,35,36]",
                        "itemType": "number",
                        "customType": "number[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "lbs",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "example": "[156.555,156.555,48.51,44.1,61.74,44.1,44.1,48.51,88.2,70.56,52.92,66.15,50.715,77.175,79.38]",
                        "itemType": "number",
                        "customType": "number[]",
                        "itemExample": "",
                        "itemDefault": ""
                      }
                    ]
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url '/api/v1/pets/{id}/weights?filter[type]=vet' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/api/v1/pets/{id}/weights?filter[type]=vet\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/api/v1/pets/{id}/weights?filter[type]=vet\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/api/v1/pets/{id}/weights?filter[type]=vet\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// successful operation\n{\n  \"data\": {\n    \"clinic_unit\": \"lbs\",\n    \"last_weight_value\": 79.38,\n    \"weight_trend_is_up\": true,\n    \"weights\": {\n      \"dateTimes\": [\n        \"\"\n      ],\n      \"kg\": [\n        0\n      ],\n      \"lbs\": [\n        0\n      ]\n    }\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}