@@ -11,10 +11,10 @@ type IP struct {
1111 ASN ASN `json:"asn"`
1212 Organization string `json:"organisation"`
1313
14- City string `json:"city"`
15- Region string `json:"region"`
14+ City string `json:"city"`
15+ Region string `json:"region"`
1616 RegionCode string `json:"region_code"`
17- Postal string `json:"postal"`
17+ Postal string `json:"postal"`
1818
1919 CountryName string `json:"country_name"`
2020 CountryCode string `json:"country_code"`
@@ -37,6 +37,8 @@ type IP struct {
3737
3838 Currency * Currency `json:"currency,omitempty"`
3939
40+ Carrier * Carrier `json:"carrier,omitempty"`
41+
4042 TimeZone * TimeZone `json:"time_zone,omitempty"`
4143
4244 Threat * Threat `json:"threat,omitempty"`
@@ -55,6 +57,13 @@ type ASN struct {
5557 Type string `json:"type"`
5658}
5759
60+ // Carrier represents the carrier data returned from the API.
61+ type Carrier struct {
62+ Name string `json:"name"`
63+ MCC string `json:"mcc"`
64+ MNC string `json:"mnc"`
65+ }
66+
5867// Language represents the language object within the JSON response from the
5968// API. This provides information about the language(s) where that IP resides.
6069type Language struct {
@@ -105,6 +114,7 @@ type Blocklist struct {
105114 Type string `json:"type"`
106115}
107116
117+
108118type Scores struct {
109119 VPNScore int `json:"vpn_score"`
110120 ProxyScore int `json:"proxy_score"`
0 commit comments