Search Response Schema

{
   "$schema": "http://json-schema.org/schema#",
   "type": "object",
   "properties": {
      "criteria": {
         "type": "string"
      },
      "type": {
         "type": "string"
      },
      "status": {
         "type": "string"
      },
      "sources": {
         "type": "array",
         "items": {
            "type": "object",
            "properties": {
               "name": {
                  "type": "string"
               }
            },
            "required": [
               "name"
            ]
         }
      },
      "data": {
         "type": "array",
         "items": {
            "type": "object",
            "properties": {
               "web_collection": {
                  "type": "object",
                  "properties": {
                     "ip_address": {
                        "type": "string"
                     },
                     "city": {
                        "type": "string"
                     },
                     "city_geoname_id": {
                        "type": "integer"
                     },
                     "region": {
                        "type": "string"
                     },
                     "region_iso_code": {
                        "type": "string"
                     },
                     "region_geoname_id": {
                        "type": "integer"
                     },
                     "postal_code": {
                        "type": "null"
                     },
                     "country": {
                        "type": "string"
                     },
                     "country_code": {
                        "type": "string"
                     },
                     "country_geoname_id": {
                        "type": "integer"
                     },
                     "country_is_eu": {
                        "type": "boolean"
                     },
                     "continent": {
                        "type": "string"
                     },
                     "continent_code": {
                        "type": "string"
                     },
                     "continent_geoname_id": {
                        "type": "integer"
                     },
                     "longitude": {
                        "type": "number"
                     },
                     "latitude": {
                        "type": "number"
                     },
                     "security": {
                        "type": "object",
                        "properties": {
                           "is_vpn": {
                              "type": "boolean"
                           }
                        },
                        "required": [
                           "is_vpn"
                        ]
                     },
                     "timezone": {
                        "type": "object",
                        "properties": {
                           "name": {
                              "type": "string"
                           },
                           "abbreviation": {
                              "type": "string"
                           },
                           "gmt_offset": {
                              "type": "integer"
                           },
                           "current_time": {
                              "type": "string"
                           },
                           "is_dst": {
                              "type": "boolean"
                           }
                        },
                        "required": [
                           "abbreviation",
                           "current_time",
                           "gmt_offset",
                           "is_dst",
                           "name"
                        ]
                     },
                     "flag": {
                        "type": "object",
                        "properties": {
                           "emoji": {
                              "type": "string"
                           },
                           "unicode": {
                              "type": "string"
                           }
                        },
                        "required": [
                           "emoji",
                           "unicode"
                        ]
                     },
                     "currency": {
                        "type": "object",
                        "properties": {
                           "currency_name": {
                              "type": "string"
                           },
                           "currency_code": {
                              "type": "string"
                           }
                        },
                        "required": [
                           "currency_code",
                           "currency_name"
                        ]
                     },
                     "connection": {
                        "type": "object",
                        "properties": {
                           "autonomous_system_number": {
                              "type": "integer"
                           },
                           "autonomous_system_organization": {
                              "type": "string"
                           },
                           "connection_type": {
                              "type": "string"
                           },
                           "isp_name": {
                              "type": "string"
                           },
                           "organization_name": {
                              "type": "null"
                           }
                        },
                        "required": [
                           "autonomous_system_number",
                           "autonomous_system_organization",
                           "connection_type",
                           "isp_name",
                           "organization_name"
                        ]
                     }
                  },
                  "required": [
                     "city",
                     "city_geoname_id",
                     "connection",
                     "continent",
                     "continent_code",
                     "continent_geoname_id",
                     "country",
                     "country_code",
                     "country_geoname_id",
                     "country_is_eu",
                     "currency",
                     "flag",
                     "ip_address",
                     "latitude",
                     "longitude",
                     "postal_code",
                     "region",
                     "region_geoname_id",
                     "region_iso_code",
                     "security",
                     "timezone"
                  ]
               }
            },
            "required": [
               "web_collection"
            ]
         }
      }
   },
   "required": [
      "criteria",
      "data",
      "sources",
      "status",
      "type"
   ]
}

Last updated