API Ideas

Status
This thread has been locked.

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
So I own MCUUID.COM.
What APIs should I have? Just UUID based or loads of Minecraft based APIs (server info, server blacklist lookup, idk...)?

image.php
image.php

The api subdomain doesn't exist yet... but the APIs work and cache for 24hrs and sh*t

(Images work now! Thanks to Christopher)
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Samuel

The most serious person ever.
Supreme
Feedback score
33
Posts
2,210
Reactions
1,572
Resources
0
API?! PSCH! I'll stick to parsing HTML with Regular Expression!
Kappa
 

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
For the love of God, whatever type of API you choose to do, please don't make it have a JSON based output.

Everyone has told you lies. JSON is not the way to go.

If you make it give the response in plaintext, magical things will happen Kappa

jk, I don't care what output you do, though it would be nice to see a basic plaintext Minecraft API someday.
Hmmm...
https://api.mcuuid.com/json/name/uuid-here
&
https://api.mcuuid.com/raw/name/uuid-here
I feel like the urls will just end up being long as hell but oh well.
If people want plain text then people will get plain text.
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Imgur is blocked, use these:
image.php

image.php
[DOUBLEPOST=1473143944][/DOUBLEPOST]Server API?
 

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Thanks babes <3
I was going to put them on i.incrementing.pw but... eh... effort.
* Self advertising Warning *

Also use i.christophermoore.website because you can take other links (like imgur) and upload it directly without having to download it to your computer using the 'remote' option :D

Sorry, I had too Kappa
 

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

XenoPanel

Next Generation Game Control Panel [XenoPanel.com]
Premium
Feedback score
0
Posts
114
Reactions
81
Resources
0
Would be nice for simple reasons to have a UUID > Username and Username > UUID.

Some kind of blacklist would be cool too.
 

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
UPDATE: The website has been released (ish).

APIs:
https://api.mcuuid.com/json/name/7944c9ef-a57b-4e4f-b4b3-531d92f579da
https://api.mcuuid.com/json/uuid/Incrementing
or (for txt as Remade requested)
https://api.mcuuid.com/txt/name/7944c9ef-a57b-4e4f-b4b3-531d92f579da
https://api.mcuuid.com/txt/uuid/Incrementing

Please Note:
  • All APIs are rated limited to 200 requests per minute (a very reasonable limit).
  • The main website is horrible and needs to be changed
  • Very limited documentation can be found here (if you can't copy and paste a url?...)
  • https://mcuuid.com/q/Incrementing is horrible, unfished and makes me want to commit.
Enjoy?
Let me know what you think?
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
You are clearly not a developer. JSON is a very common API response. Most public APIs use either JSON or XML. I don't know of a single API that returns plain text.
Of course I'm not :p. But as a complete amateur, there should be options available. I have no doubt that parsing JSON is simple, but TXT will always be simpler.
I'd use and do use JSON but I could see why some (n00b) people would want to use plain text.
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Incrementing

gian.sh
Banned
Feedback score
16
Posts
246
Reactions
146
Resources
0
Online, offline, players, version, etc.

Just an idea.
https://api.mcuuid.com/json/server/domain:port

{
"success": true,
"server": "mc.arespvp.com",
"port": "25565",
"latency": "3ms",
"player_list": "2ms,Incrementing",
"player_count": "2",
"max": "4000",
"software": "Bungeecord",
"version": "1.8.x, 1.9.x, 1.10.x",
"favicon": "N/A",
"received_at": 1474310400885,
"replied_at": 1474310400894,
"request_count": 1,
"max_requests": 200
}

{
"success": true,
"server": "192.xx.xxx.xx",
"port": "25565",
"latency": "1ms",
"player_list": "Incrementing,2ms",
"player_count": "2",
"max": "2500",
"software": "CraftBukkit on Bukkit 1.8.8-R0.1-SNAPSHOT",
"version": "1.8.8",
"favicon": "N/A",
"received_at": 1474310581433,
"replied_at": 1474310581442,
"request_count": 1,
"max_requests": 200
}

{
"success": false,
"server": "mc.hypixel.net",
"port": "25565",
"latency": "36ms",
"player_list": "N/A",
"player_count": "N/A",
"max": "N/A",
"software": "N/A",
"version": "N/A",
"favicon": "N/A",
"received_at": 1474310631549,
"replied_at": 1474310634593,
"request_count": 2,
"max_requests": 200
}

{
"success": false,
"server": "random.thingy.lol",
"port": "25565",
"latency": "-1ms",
"player_list": "N/A",
"player_count": "N/A",
"max": "N/A",
"software": "N/A",
"version": "N/A",
"favicon": "N/A",
"received_at": 1474310769434,
"replied_at": 1474310769466,
"request_count": 1,
"max_requests": 200
}

I'm still working on the favicon (it will be a base64 encoded image of the favicon).
I'll add it to the documentation later.
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/incrementing-scam-report.598498/)

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Idk if I am just stupid or if there is something wrong with your API because I use this exact code all the time and it works... but not for you:

PHP:
<?php
$jsonurl='https://api.mcuuid.com/json/server/test.blaa.net:25589';
$json = file_get_contents($jsonurl,0,null,null);
$json = strip_tags($json);
$json_output = var_dump(json_decode($json,true));

echo $json_output;
?>
Returns => NULL

Any ideas?
Incrementing

EDIT: Yes I use a real IP, I have just removed it here.[DOUBLEPOST=1474939462][/DOUBLEPOST]
Idk if I am just stupid or if there is something wrong with your API because I use this exact code all the time and it works... but not for you:

PHP:
<?php
$jsonurl='https://api.mcuuid.com/json/server/test.blaa.net:25589';
$json = file_get_contents($jsonurl,0,null,null);
$json = strip_tags($json);
$json_output = var_dump(json_decode($json,true));

echo $json_output;
?>
Returns => NULL

Any ideas?
Incrementing

EDIT: Yes I use a real IP, I have just removed it here.
Lyphiard you are a dev, can you help?
 
Last edited:

Lyphiard

Supreme
Feedback score
25
Posts
621
Reactions
1,156
Resources
0
Idk if I am just stupid or if there is something wrong with your API because I use this exact code all the time and it works... but not for you:

PHP:
<?php
$jsonurl='https://api.mcuuid.com/json/server/test.blaa.net:25589';
$json = file_get_contents($jsonurl,0,null,null);
$json = strip_tags($json);
$json_output = var_dump(json_decode($json,true));

echo $json_output;
?>
Returns => NULL

Any ideas?
Incrementing

EDIT: Yes I use a real IP, I have just removed it here.[DOUBLEPOST=1474939462][/DOUBLEPOST]
Lyphiard you are a dev, can you help?
smh use cURL. The content contained "&nbsp;" which you didn't strip with strip_tags

Code:
$ch = curl_init('https://api.mcuuid.com/json/server/test.blaa.net:25589');
curl_setopt_array($ch, array(
    CURLOPT_SSL_VERIFYPEER => 0,
    CURLOPT_SSL_VERIFYHOST => 0,
    CURLOPT_RETURNTRANSFER => 1
));
$res = curl_exec($ch);

if (!$res) {
    die('Could not connect.');
}

var_dump(json_decode(strip_tags(str_replace('&nbsp;', '', $res))));

Incrementing
Please don't output your JSON with html tags & nbsp's...

Code:
$data = array(
    'key' => 'value'
);

header('Content-Type: application/json');
echo json_encode($data, JSON_PRETTY_PRINT);

More Suggestions:
  • Use "ServerTokens Prod" to avoid showing your server version
  • Use nginx, it's so much better than apache
  • (personal preference: centos over ubuntu ;))
  • Invalid API endpoints should return a JSON response, not a 404 document
 
Last edited:
Status
This thread has been locked.
Top