There are four ways to get data from the API:
{
"unix_date":1311461814,
"total_faces":"50",
"total_views":"1234",
"items":[
{
"face_id":"4",
"face_views":"123",
"face_hidden":0,
"face_category":"twilight sparkle",
"face_filename":"573f9ec2",
"face_url":"http://ponyfac.es/faces/573f9ec2.png",
"face_tags":"twilight sparkle, happy",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_573f9ec2.png"
}
]
}
Explained JSON-response:
{
"unix_date":1311462196,
"total_faces":"50",
"total_views":"123",
"items":[
{
"face_id":"1",
"face_views":"4",
"face_hidden":0,
"face_category":"pinkie pie",
"face_filename":"3cc43dc9",
"face_url":"http://ponyfac.es/faces/3cc43dc9.gif",
"face_tags":"pinkie pie, happy, clap",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_3cc43dc9.png"
}
]
}
{
"unix_date":1311462567,
"total_faces":"50",
"total_views":"1234",
"items":[
{
"face_id":"23",
"face_views":"10",
"face_hidden":0,
"face_category":"twilight sparkle",
"face_filename":"88ef730a",
"face_url":"http://ponyfac.es/faces/88ef730a.jpg",
"face_tags":"twilight sparkle",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_88ef730a.png"
},
{
"face_id":"42",
"face_views":"20",
"face_hidden":0,
"face_category":"fluttershy",
"face_filename":"182465be",
"face_url":"http://ponyfac.es/faces/182465be.jpg",
"face_tags":"fluttershy",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_182465be.png"
}
]
}
{
"unix_date":1311463199,
"total_faces":"50",
"total_views":"1234",
"items":[
{
"face_id":"1",
"face_views":"4",
"face_hidden":0,
"face_category":"pinkie pie",
"face_filename":"3cc43dc9",
"face_url":"http://ponyfac.es/faces/3cc43dc9.gif",
"face_tags":"pinkie pie, happy, clap",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_3cc43dc9.png"
},
{
"face_id":"3",
"face_views":"16",
"face_hidden":0,
"face_category":"rainbow dash",
"face_filename":"80b6d653",
"face_url":"http://ponyfac.es/faces/80b6d653.gif",
"face_tags":"rainbow dash, happy, lol",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_80b6d653.png"
},
{
"face_id":"12",
"face_views":"4",
"face_hidden":0,
"face_category":"fluttershy",
"face_filename":"a476808d",
"face_url":"http://ponyfac.es/faces/a476808d.png",
"face_tags":"fluttershy, happy",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_a476808d.png"
}
]
}
{
"unix_date":1311464018,
"total_faces":"50",
"total_views":"1234",
"items":[
{
"face_id":"12",
"face_views":"4",
"face_hidden":0,
"face_category":"fluttershy",
"face_filename":"a476808d",
"face_url":"http://ponyfac.es/faces/a476808d.png",
"face_tags":"fluttershy, happy",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_a476808d.png"
},
{
"face_id":"14",
"face_views":"27",
"face_hidden":0,
"face_category":"fluttershy",
"face_filename":"2612bf13",
"face_url":"http://ponyfac.es/faces/2612bf13.jpg",
"face_tags":"fluttershy",
"face_thumbnail":"http://ponyfac.es/thumbs/thumb_120_a476808d.png"
}
]
}
{
"unix_date":1311612197,
"items":[
{
"cat_id":1,
"cat_name":"all",
"cat_displayname":"All Ponies"
},
{
"cat_id":2,
"cat_name":"rainbowdash",
"cat_displayname":"Rainbow Dash"
},
[...]
{
"cat_id":8,
"cat_name":"other",
"cat_displayname":"Other Ponies"
}
]
}
Explained JSON-response:
{
"unix_date":1311612476,
"items":[
{"tag_name":"pinkie pie"},
{"tag_name":"happy"},
{"tag_name":"clap"},
{"tag_name":"sweetie belle"},
{"tag_name":"tongue"},
{"tag_name":"taunt"},
{"tag_name":"tease"},
{"tag_name":"rainbow dash"},
{"tag_name":"lol"}
]
}
Explained JSON-response: