John VanOrange

John VanOrange API Docs

John VanOrange provides an API to interact with all the features available through the general website. You can browse through the methods listed on this page to see what options are available.

Here is an example of how to access a random image using jQuery:


$.get('https://jvo.io/api/image/random', function(data) {
 console.log(data);
});
	 

The response will look like:


{
 "id":"2005",
 "name":"f8e796dc9b2bb54843d24babbc98f6f0",
 "filename":"f8e796dc9b2bb54843d24babbc98f6f0.jpeg",
 "uid":"PINhTS",
 "hash":"47cb779eae621ba6117f6390afda108e",
 "type":"jpeg",
 "width":"1024",
 "height":"614",
 "display":"1",
 "nsfw":"0",
 "approved":"0",
 "tags":[],
 "page_title":"John VanOrange",
 "image_url":"http:\/\/media.jvo.io\/media\/f8e796dc9b2bb54843d24babbc98f6f0.jpeg",
 "thumb_url":"http:\/\/thumbs.jvo.io\/media\/thumbs\/f8e796dc9b2bb54843d24babbc98f6f0.jpeg",
 "page_url":"http:\/\/jvo.io\/PINhTS",
 "response":"PINhTS"
}
	 

The 'uid' is really important and used to identify images. To add a tag to the previously mentioned image, this is how it would look:


$.post('https://jvo.io/api/tag/add',{
	image: 'PINhTS',
	name: 'Here is a new tag'
}, function(data) {
	console.log(data);
});
	 

This is the response from that request:


{
 "message":"Tag added",
 "tags":[
		{
			 "name":"Here is a new tag",
			 "basename":"here-is-a-new-tag",
			 "uid":"PINhTS",
			 "url":"\/t\/here-is-a-new-tag"
		}
 ]
}
	 

Methods

tag

image

user

report

setting

message