IpForensics
HomeGoto Dashboard
  • 📖Introduction
  • Protocols
    • HTTP Json Protocol
    • Response headers
    • Error Codes
  • Features
    • Pay-As-You-Go
    • API Security
    • HTTPS
  • Api Response Data
    • 📶Mobile Carrier
    • 🏥ASN
    • 📊General
    • ⏲️Timezone
    • 💵Currency
    • 👨‍💻Threat Detector
    • 🌐Company
    • 🌏Geolocation
    • 🌍Advance Geolocation
    • 💻Device Information
    • ✈️IATA/ICAO
  • API
    • 🚀Intro
    • 📊IP & Threat Intelligence API
      • Single Lookup
      • Origin Lookup
    • 💹Exchange Rate API
      • Currency Endpoint
      • Live Rate Endpoint
      • Historical Rate Endpoint
      • Currency Conversion Endpoint
      • Currency Swap Endpoint
  • Code Implantation
    • Block Automated Visits From Hosting Providers
    • Block VPN/Proxy and Tor users
    • Redirect by Country and Location Offers
    • Content Personalisation
    • Get the location from an IP Address in Javascript
    • How to get a client's IP address using JavaScript
    • HTML5 Geolocation with IpForensics fallback
    • Blocking Users by Country
    • Detecting Users Currency or Currency Personalisation
    • Preventing Free Trial Abuse
    • Device-Based Ads and App Binary
    • Detect Users Device/Computer and Operating System
    • Detect visitors from EU countries
    • How to detect and prevent credit card fraud
    • How to convert amounts to website visitor currency
  • MISC
    • Changelog
    • FAQs
    • Troubleshooting
    • API Status
    • Rate Limits
Powered by GitBook
On this page
  • HTTP / JSON protocol
  • Requests
  • Responses
  • Error response

Was this helpful?

  1. Protocols

HTTP Json Protocol

HTTP / JSON protocol

In the common cases ( e.g. web and mobile application development ) the most used method to access remote services, the used interface is HTTP/HTTPS. Such service is IpForensics API.

Requests

API Key and IP Address are passed as query param Query parameters are passed by GET.

Responses

Response is normally JSON array with multiple fields. The key response is always present and metadata.

Successful response

response: success means success.

Successful response example:

{
    'status' : true,
    'response' : 'success',
    'code' : '000',
    'message' : ...,
    'metadata' : [...]
}

Error response

Then response is set to the error key and message is an error message. After every method definition we list the possible error codes that could be returned.

Error response example:

{
    'status' : false,
    'response' : 'error',
    'code' : "INVALID_API_KEY"
    'message' : 'Your API key is invalid. Make sure you are using the right key or check its value for a typo.',
}
PreviousIntroductionNextResponse headers

Last updated 2 years ago

Was this helpful?