@@ -150,14 +150,25 @@ def summary_hostname(self, hostname):
150150 method = 'get' )
151151
152152 def simple_geoloc (self , ip ):
153- """Call API Onyphe https://www.onyphe.io/api/v2/simple/synscan /<IP>
153+ """Call API Onyphe https://www.onyphe.io/api/v2/simple/geoloc /<IP>
154154
155155 :param ip: IPv4 or IPv6 address
156156 :type ip: str
157157 :returns: dict -- a dictionary containing the results of synscan of IP
158158 """
159159 return self ._prepare_request (
160- '/' .join ([self .version , 'simple/synscan' , ip ]), method = 'get' )
160+ '/' .join ([self .version , 'simple/geoloc' , ip ]), method = 'get' )
161+
162+ def simple_geoloc_best (self , ip ):
163+ """Call API Onyphe https://www.onyphe.io/api/v2/simple/geoloc/best<IP>
164+
165+ :param ip: IPv4 or IPv6 address
166+ :type ip: str
167+ :returns: dict -- a dictionary containing the results of geoloc of IP
168+ """
169+ return self ._prepare_request (
170+ '/' .join ([self .version , 'simple/geoloc/best' , ip ]), method = 'get' )
171+
161172
162173 def simple_inetnum (self , ip ):
163174 """Call API Onyphe https://www.onyphe.io/api/v2/simple/inetnum/<IP>
@@ -168,7 +179,27 @@ def simple_inetnum(self, ip):
168179 """
169180 return self ._prepare_request (
170181 '/' .join ([self .version , 'simple/inetnum' , ip ]), method = 'get' )
182+
183+ def simple_inetnum_best (self , ip ):
184+ """Call API Onyphe https://www.onyphe.io/api/v2/simple/inetnum/best<IP>
171185
186+ :param ip: IPv4 or IPv6 address
187+ :type ip: str
188+ :returns: dict -- a dictionary containing the results of intenum of IP
189+ """
190+ return self ._prepare_request (
191+ '/' .join ([self .version , 'simple/inetnum/best' , ip ]), method = 'get' )
192+
193+ def simple_threatlist_best (self , ip ):
194+ """Call API Onyphe https://www.onyphe.io/api/v2/simple/threatlist/best<IP>
195+
196+ :param ip: IPv4 or IPv6 address
197+ :type ip: str
198+ :returns: dict -- a dictionary containing the results of threatlist with best API of IP
199+ """
200+ return self ._prepare_request (
201+ '/' .join ([self .version , 'simple/threatlist/best' , ip ]), method = 'get' )
202+
172203 def simple_pastries (self , ip ):
173204 """Call API Onyphe https://www.onyphe.io/api/v2/simple/pastries/<IP>
174205
0 commit comments