---
title: "GET Anomalies by Inspection ID"
method: GET
path: "/solar_inspections/{inspection_id}/anomalies"
tags: ["Anomalies"]
---

# GET Anomalies by Inspection ID

`GET /solar_inspections/{inspection_id}/anomalies`

## Request

- Base URL: `https://api.raptormaps.com/v2`
- URL: `https://api.raptormaps.com/v2/solar_inspections/{inspection_id}/anomalies`
- Auth: HTTP bearer

List of anomalies from a single inspection

## Path parameters

- `inspection_id` integer, required

## Query parameters

- `org_id` integer, required
- `limit` integer
- `offset` integer
- `sort_by` 'id' | 'tag' | 'custom_locator_text' | 'priority' | 'row_x' | 'row_y' | 'string_x' | 'string_y' | 'module_x' | 'module_y' | 'delta_t' | 'norm_delta_t' | 'irradiance'
- `sort_order` 'asc' | 'desc'
- `include_tags` string, nullable
- `exclude_tags` string, nullable
- `priority_filter` string, nullable
- `images` boolean

## Response `200`

List anomalies

- GetDefectsResponse
  - `defects` DefectResponse[], required
    - `id` integer, required
    - `object_id` integer, required
    - `solar_farm_id` integer, required
    - `tag_id` integer, required
    - `object_type` string, nullable
    - `tag` SchemasResponsesGetDefectsResponseTagResponse
      - `color` string, nullable
      - `id` integer, required
      - `org_power_factor` number, nullable
      - `power_factor` number, nullable
      - `tag` string, required
      - `tag_display_text` string, nullable
    - `object_notation_json` ObjectNotationJson
      - `row` ObjectNotationJsonObject
        - `object_name` string, required
        - `prefix` string, nullable
        - `rule_index` integer, nullable
      - `string` ObjectNotationJsonObject
        - `object_name` string, required
        - `prefix` string, nullable
        - `rule_index` integer, nullable
      - `module` ObjectNotationJsonObject
        - `object_name` string, required
        - `prefix` string, nullable
        - `rule_index` integer, nullable
    - `geom` union
      - Point: Point Model
        - `bbox` union
          - unknown[]
            - unknown
          - unknown[]
            - unknown
        - `type` 'Point', required
        - `coordinates` union, required
          - unknown[]
            - unknown
          - unknown[]
            - unknown
      - MultiPoint: MultiPoint Model
        - `bbox` union
          - unknown[]
            - unknown
          - unknown[]
            - unknown
        - `type` 'MultiPoint', required
        - `coordinates` union[], required
          - union
            - unknown[]
              - …
            - unknown[]
              - …
      - LineString: LineString Model
        - `bbox` union
          - unknown[]
            - unknown
          - unknown[]
            - unknown
        - `type` 'LineString', required
        - `coordinates` union[], required
          - union
            - unknown[]
              - …
            - unknown[]
              - …
      - MultiLineString: MultiLineString Model
        - `bbox` union
          - unknown[]
            - unknown
          - unknown[]
            - unknown
        - `type` 'MultiLineString', required
        - `coordinates` array[], required
          - union[]
            - union
              - …
      - Polygon: Polygon Model
        - `bbox` union
          - unknown[]
            - unknown
          - unknown[]
            - unknown
        - `type` 'Polygon', required
        - `coordinates` array[], required
          - union[]
            - union
              - …
      - MultiPolygon: MultiPolygon Model
        - `bbox` union
          - unknown[]
            - unknown
          - unknown[]
            - unknown
        - `type` 'MultiPolygon', required
        - `coordinates` array[], required
          - array[]
            - union[]
              - …
    - `inspection_id` integer, nullable
    - `primary_shape_id` integer, nullable
    - `linked_shape_id` integer, nullable
    - `org_power_factor` number, nullable
    - `power_factor` number, nullable
    - `priority` integer, nullable
    - `primary_image_filename` string, nullable
    - `primary_image_id` integer, nullable
    - `primary_image_url` string, nullable
    - `primary_thumbnail_url` string, nullable
    - `linked_image_filename` string, nullable
    - `linked_image_id` integer, nullable
    - `linked_image_url` string, nullable
    - `linked_thumbnail_url` string, nullable
    - `avg_temp` number, nullable
    - `created_tsecs` integer, nullable
    - `delta_t` number, nullable
    - `feedback` SchemasResponsesGetDefectsResponseDefectFeedback
      - `confirmation` string, nullable
      - `confirmation_comment` string, nullable
      - `remediation` string, nullable
      - `remediation_comment` string, nullable
      - `attention` string, nullable
      - `attention_comment` string, nullable
    - `group_name` string, nullable
    - `inspection_uuid` string, nullable
    - `irradiance` number, nullable
    - `irradiance_tsecs` integer, nullable
    - `max_temp` number, nullable
    - `min_temp` number, nullable
    - `norm_delta_t` number, nullable
    - `sensor_id` integer, nullable
    - `anomaly_life_cycle` SchemasResponsesGetDefectsResponseLifeCycleResponse
      - `id` integer, nullable
      - `status` string, nullable
    - `custom_locator_text` string, nullable
    - `anomaly_custom_locator_text` string, nullable
    - `object_notation_text` string, nullable
  - `total` integer, required
  - `inspection_defect_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/raptormaps/apis/next-gen-apis.md) - [All operations](https://skmtc.dev/raptormaps/apis/next-gen-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/raptormaps/apis/next-gen-apis/revisions/bc138d1c5182?raw)
