The official Swift client library for the IPFinder.io get details for :
singup for a free account at https://ipfinder.io/auth/signup, for Free IPFinder API access token.
The free plan is limited to 4,000 requests a day, and doesn't include some of the data fields To enable all the data fields and additional request volumes see https://ipfinder.io/pricing.
See the official documentation.
Installing using Swift Package Manager:
.package(url: "https://github.com/ipfinder-io/ip-finder-swift.git", from: "1.0.0")
free
TOKENimport ipfinder
let ipfinder = Ipfinder()
let auth = ipfinder.Authentication()
print(auth)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// lookup your IP address information
let auth = ipfinder.Authentication()
print(auth)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// lookup IP address information
let ip = ipfinder.getAddressInfo("1.0.0.0")
print(ip)
This API available as part of our Pro and enterprise https://ipfinder.io/pricing.
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// lookup Asn information
let asn = ipfinder.getAddressInfo("as1")
print(asn)
This API available as part of our enterprise https://ipfinder.io/pricing.
formats supported are : apache_allow
, apache_deny
,nginx_allow
,nginx_deny
, CIDR
, linux_iptables
, netmask
, inverse_netmask
, web_config_allow
, web_config_deny
, cisco_acl
, peer_guardian_2
, network_object
, cisco_bit_bucket
, juniper_junos
, microtik
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// lookup Asn Firewall information
let fire = ipfinder.getFirewall("AS1", format:"nginx_deny")
print(fire)
This API available as part of our enterprise https://ipfinder.io/pricing.
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// lookup Organization information
let range = ipfinder.getRanges("Telecom Algeria")
print(range)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// lookup IP TOKEN information
let status = ipfinder.getStatus()
print(status)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// domain name
let domain = ipfinder.getDomain("google.ma")
print(domain)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// domain name IP history
let domain = ipfinder.getDomainHistory("google.in")
print(domain)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE")
// list live domain by country DZ,US,TN,FR,MA
let by = ipfinder.getDomainBy("DZ")
print(by)
import ipfinder
let ipfinder = Ipfinder("YOUR_TOKEN_GOES_HERE", baseUrl:"https://ipfinder.yourdomain.com")
Sample codes under examples/ folder.
Contact Us With Additional Questions About Our API, if you would like more information about our API that isn’t available in our IP geolocation API developer documentation, simply contact us at any time and we’ll be able to help you find what you need.
link |
Stars: 0 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics