---
updatedAt: 2025-09-24T15:57:08.000Z
agentTools:
  projectIndex: https://docs.raptormaps.com/llms.txt
---

# GET Inspection Defects by Inspection ID

Gets list of anomalies (i.e. defects) for an inspection.

<br/>

## This route uses the base domain. Select the correct url using the Base URL option (<https://api.raptormaps.com/>)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "components": {
    "examples": {
      "DefectsExample": {
        "value": [
          {
            "avg_temp": 7.456210855687,
            "created_tsecs": 1617126976,
            "delta_t": 8.4771402860288,
            "farm_object": {
              "id": 20840,
              "object_notation_json": {
                "module": {
                  "object_name": "5,1",
                  "prefix": "The Other",
                  "rule_index": 2
                },
                "row": {
                  "object_name": "1,1",
                  "prefix": "That",
                  "rule_index": 0
                },
                "rule_separator": ",",
                "string": {
                  "object_name": "3,1",
                  "prefix": "This",
                  "rule_index": 1
                }
              },
              "object_notation_text": "That1,1,This3,1,The Other5,1"
            },
            "geom": {
              "coordinates": [
                [
                  [
                    -76.6758064674375,
                    42.0958962460287
                  ],
                  [
                    -76.6757822902816,
                    42.0958962464816
                  ],
                  [
                    -76.675782289881,
                    42.0958878234493
                  ],
                  [
                    -76.6758064670369,
                    42.0958878229963
                  ],
                  [
                    -76.6758064674375,
                    42.0958962460287
                  ]
                ]
              ],
              "type": "Polygon"
            },
            "id": 29,
            "inspection_id": 4353,
            "linked_shape_id": 2389215,
            "max_temp": 15.9333511417158,
            "min_temp": 5.89105084711235,
            "primary_shape_id": 2387597,
            "priority": 1,
            "tag": {
              "id": 9691,
              "org_power_factor": 1,
              "power_factor": 1,
              "tag": "Internal Short Circuit Low",
              "tag_display_text": "Internal Short Circuit Low"
            },
            "tag_id": 9691,
            "uuid": "97cab848-6586-4ba2-8e94-086a38b6a7e7"
          },
          {
            "avg_temp": -6.66225257285913,
            "created_tsecs": 1617126976,
            "delta_t": 14.0934370573062,
            "farm_object": {
              "id": 15944,
              "object_notation_json": {
                "module": {
                  "object_name": "19,1",
                  "prefix": "The Other",
                  "rule_index": 2
                },
                "row": {
                  "object_name": "1,10-B",
                  "prefix": "That",
                  "rule_index": 0
                },
                "rule_separator": ",",
                "string": {
                  "object_name": "3,2",
                  "prefix": "This",
                  "rule_index": 1
                }
              },
              "object_notation_text": "That1,10-B,This3,2,The Other19,1"
            },
            "geom": {
              "coordinates": [
                [
                  [
                    -76.6758615002359,
                    42.0948533255174
                  ],
                  [
                    -76.6758372864537,
                    42.0948533316935
                  ],
                  [
                    -76.6758372822242,
                    42.0948445593455
                  ],
                  [
                    -76.6758614960064,
                    42.0948445531694
                  ],
                  [
                    -76.6758615002359,
                    42.0948533255174
                  ]
                ]
              ],
              "type": "Polygon"
            },
            "id": 28,
            "inspection_id": 4353,
            "linked_shape_id": 2388676,
            "max_temp": 7.4311844844471,
            "min_temp": -8.33999621347556,
            "primary_shape_id": 2387560,
            "priority": 2,
            "tag": {
              "id": 9608,
              "org_power_factor": 0.3333,
              "power_factor": 0.3333,
              "tag": "Diode",
              "tag_display_text": "Diode"
            },
            "tag_id": 9608,
            "uuid": "d647a00e-f49b-451a-a55d-d6f426f4e119"
          }
        ]
      }
    },
    "schemas": {
      "DefectFeedback": {
        "properties": {
          "attention": {
            "type": "string"
          },
          "attention_comment": {
            "type": "string"
          },
          "confirmation": {
            "type": "string"
          },
          "confirmation_comment": {
            "type": "string"
          },
          "remediation": {
            "type": "string"
          },
          "remediation_comment": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "GeomData": {
        "type": "object"
      },
      "SolarDefect": {
        "description": "Representation of a defect on a solar farm. Note that \"primary\" = IR image and \"linked\" = RGB image.",
        "properties": {
          "avg_temp": {
            "type": "number"
          },
          "created_tsecs": {
            "type": "integer"
          },
          "custom_locator_text": {
            "type": "string"
          },
          "delta_t": {
            "type": "number"
          },
          "farm_object": {
            "$ref": "#/components/schemas/SolarFarmObject"
          },
          "feedback": {
            "$ref": "#/components/schemas/DefectFeedback"
          },
          "geom": {
            "$ref": "#/components/schemas/GeomData"
          },
          "group_name": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "inspection_id": {
            "type": "integer"
          },
          "inspection_uuid": {
            "type": "string"
          },
          "irradiance": {
            "type": "number"
          },
          "irradiance_tsecs": {
            "type": "integer"
          },
          "linked_image_filename": {
            "type": "string"
          },
          "linked_image_id": {
            "type": "integer"
          },
          "linked_image_url": {
            "type": "string"
          },
          "linked_shape_id": {
            "type": "integer"
          },
          "linked_thumbnail_url": {
            "description": "Signed thumbnail URL for RGB image",
            "type": "string"
          },
          "max_temp": {
            "type": "number"
          },
          "min_temp": {
            "type": "number"
          },
          "norm_delta_t": {
            "type": "number"
          },
          "org_id": {
            "type": "integer"
          },
          "primary_image_filename": {
            "type": "string"
          },
          "primary_image_id": {
            "type": "integer"
          },
          "primary_image_url": {
            "type": "string"
          },
          "primary_shape_id": {
            "type": "integer"
          },
          "primary_thumbnail_url": {
            "description": "Signed thumbnail URL for IR image",
            "type": "string"
          },
          "priority": {
            "type": "integer"
          },
          "sensor_id": {
            "type": "integer"
          },
          "tag": {
            "$ref": "#/components/schemas/Tag"
          },
          "tag_id": {
            "type": "integer"
          },
          "uuid": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SolarFarmObject": {
        "description": "Data about the real world equipment on the farm",
        "properties": {
          "id": {
            "type": "integer"
          },
          "object_notation_json": {
            "type": "object"
          },
          "object_notation_text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Tag": {
        "properties": {
          "color": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "org_power_factor": {
            "type": "number"
          },
          "power_factor": {
            "type": "number"
          },
          "tag": {
            "type": "string"
          },
          "tag_display_text": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "info": {
    "contact": {
      "email": "info@raptormaps.com"
    },
    "description": "API spec for Raptor Maps Customer API",
    "license": {
      "name": "Raptor Maps Inc.",
      "url": "https://app.raptormaps.com/terms-of-service"
    },
    "title": "Core Services API",
    "version": "1.0.0"
  },
  "paths": {
    "/solar_inspections/{inspection_id}/defects": {
      "get": {
        "description": "Gets list of anomalies (i.e. defects) for an inspection.",
        "operationId": "get_inspection_defects",
        "parameters": [
          {
            "description": "The ID of the inspection (not UUID)",
            "in": "path",
            "name": "inspection_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "DefectsExample": {
                    "$ref": "#/components/examples/DefectsExample"
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SolarDefect"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "bad input parameter"
          }
        },
        "summary": "GET Inspection Defects by Inspection ID",
        "tags": [
          "Inspections"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "Production server",
      "url": "https://api.raptormaps.com"
    },
    {
      "description": "Legacy Endpoint",
      "url": "https://app-legacy.raptormaps.com"
    }
  ],
  "tags": [
    {
      "description": "Inspection level resources",
      "name": "Inspections"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```