API References
Last updated
Last updated
This API is designed to allow ethical security experts racing against time to streamline and expedite their efforts in recovering the compromised funds.
Get
Your Request
curl https://hackscan.hackbounty.io/public/hack-address.json
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
...
url := "https://hackscan.hackbounty.io/public/hack-address.json"
resp, err := http.Get(url)
if err != nil {
fmt.Println("requestErr:", err)
return
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
fmt.Println("statueCode:", resp.StatusCode)
return
}
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println("readErr:", err)
return
}
var data map[string]interface{}
if err := json.Unmarshal(body, &data); err != nil {
fmt.Println("jsonParseErr:", err)
return
}
fmt.Println(data)
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONObject;
...
String url = "https://hackscan.hackbounty.io/public/hack-address.json";
try {
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
if (responseCode == 200) {
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
JSONObject jsonResponse = new JSONObject(response.toString());
System.out.println(jsonResponse.toString(2));
} else {
System.out.println("failed:" + responseCode);
}
} catch (Exception e) {
System.out.println("requestErr:" + e.getMessage());
}
import requests
url = "https://hackscan.hackbounty.io/public/hack-address.json"
try:
response = requests.get(url)
response.raise_for_status()
data = response.json()
print(data)
except requests.exceptions.RequestException as e:
print("requestErr:", e)
const axios = require('axios');
const url = "https://hackscan.hackbounty.io/public/hack-address.json";
axios.get(url)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error("requestErr:", error.message);
});
Our Response