This is an unofficial API to fetch data from bins.ws
Note: Although bins.ws looks similar to bins.su but I don't know if they have the same database or not.
Deta | Heroku | Vercel |
---|---|---|
Send Get Request to http://yourhost:port/api/{bin}
Request to : https://localhost:3000/api/439192
Response :
{
"result": true,
"message": "Search Successful",
"data": {
"bin": "439192",
"vendor": "VISA",
"type": "CREDIT",
"level": "PLATINUM",
"bank": "KRUNGTHAI CARD PUBLIC CO., LTD.",
"country": "THAILAND",
"countryInfo": {
"name": "THAILAND",
"emoji": "🇹🇭",
"unicode": "U+1F1F9 U+1F1ED",
"code": "TH",
"dialCode": "+66"
}
}
}
// No Results Found
{
"result": false,
"message": "No results found"
}
// Invalid Bin
{
"result": false,
"message": "Request a Valid BIN"
}
$ git clone https://github.com/ArnabXD/bins-ws-api
$ cd bins-ws-api
$ npm install
$ npm start
Your app should now be running on localhost:3000.