ImageLnk API

You can call ImageLnk functions via HTTP.

api/get

Getting image URLs from image page HTML.

URL:

http://imagelnk.pqrs.org/api/get

Parameters:

url URL of the image page

Response (JSON):

pageurl URL of the image page
title The title of image page
referer Referer which you should set when you access the image URL.
backlink URL of the article page.
imageurls URLs of the image file.

Example:

Request URL: http://imagelnk.pqrs.org/api/get?url=https://twitter.com/ImageLnk/status/631948031873519616
Response:
{
"pageurl":"https://twitter.com/ImageLnk/status/631948031873519616",
"title":"twitter: ImageLnk: Penguins http://t.co/aQuSe9BGBD",
"referer":"https://twitter.com/ImageLnk/status/631948031873519616",
"backlink":"",
"imageurls":["http://pbs.twimg.com/media/CMUhYqLVEAAOVT7.jpg:large"]
}

api/sites

Getting web site URLs which are supported by ImageLnk.

URL:

http://imagelnk.pqrs.org/api/sites

Parameters:

Nothing.

Response (JSON):

sites An array of web site URLs

Example:

Request URL: http://imagelnk.pqrs.org/api/sites
Response:
{
"sites":["http://itunes.apple.com/",
"http://ow.ly/",
...]
}