---
title: List all Weights for Pet
slug: list-all-weights-for-pet
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "YXKVKrmmA39E3rDNdWVpR",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://developer.digitail.io/api/v1/pets/{id}/weights",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/pets/{id}/weights",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/pets/{id}/weights",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "List all Weights for Pet",
    "description": "<p>Permissions needed: ACCESS_PATIENTS\nReturns the list of Weights for Pet</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "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": [
        {
          "id": "passport",
          "name": "passport",
          "kind": "optional",
          "type": "oauth2",
          "description": "Laravel passport oauth2 security.",
          "oauth2Flows": {
            "authorizationCode": {
              "authorizationUrl": "https://digitail.test/oauth/authorize",
              "tokenUrl": "https://digitail.test/oauth/token",
              "refreshUrl": "https://digitail.test/oauth/token"
            }
          }
        },
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "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": "afQXlDJrYzVb4UrQ4fqPz",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://developer.digitail.io/api/v1/pets/{id}/weights?filter[type]=vet' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "EEQtz8xP2l842YZWH-q0i",
          "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(\"https://developer.digitail.io/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": "ZNyJh9IvtgvZCDbaAEPCZ",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/pets/{id}/weights?filter[type]=vet\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "KXhR8pwTTSJPjzHgI7XsA",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/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": "afQXlDJrYzVb4UrQ4fqPz"
    },
    "results": {
      "languages": [
        {
          "id": "hyhoceU_MpWTOJH1a6Fl3",
          "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": "hyhoceU_MpWTOJH1a6Fl3"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}