MootjeDev / GeoIP-API

Revplit provides free usage of its Geo IP API through multiple response formats. We support IPv4 and IPv6.

Home Page:https://revplit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note:

This repository is outdated! Click here to see the updated version

GeoIP-API

Revplit provides free usage of its Geo IP API through multiple response formats. We support IPv4 and IPv6.

Usage limits

Our system will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP you'll have to sent a email to revplit.service@gmail.com

You are free to use our API for non-commercial and commercial use.

Response formats

PHP https://revplit.com/pages/api/php-response.php

JSON https://revplit.com/pages/api/json-response.php

CSV https://revplit.com/pages/api/csv-response.php

Code sample

<?php

$result = "";

if(isset($_POST['sub'])) { 

  $ip = $_POST['ip']; 
  
  if(!empty($_POST['ip'])) { 
  
    $result = @file_get_contents("https://api.revplit.com/geo/all.php?ip=".$ip); 
    
  } else { 
   
       $result = "No IP filled in"; 
       
    } 
    
   } 

?>

<form method="POST"> <p>IP:</p> <input type="text" name="ip" placeholder="127.0.0" />

<input type="submit" value="Submit" name="sub"/> </form>

<?php echo $result; ?>

Support

If you've any questions you can ask them in our discord server https://discord.gg/BZfPMxe

About

Revplit provides free usage of its Geo IP API through multiple response formats. We support IPv4 and IPv6.

https://revplit.com/

License:Other


Languages

Language:PHP 100.0%