>

durl

Skip Navigation List

Open API

Durl provides REST OpenAPI to allow (web)application developers to use Durl's service.

You can easily reduce longurl to shorturl and get the snapshot image of website longurl denotes.

Creation

api

http://snap.daum.net/api/Create.do

param

return value

xml
json

Status Checking

api

http://snap.daum.net/KEY.status

param

return value

xml
json

Snapshot Image

api

http://snap.daum.net/KEY.image

return value

png image data

Open API Example

1. if you want to reduce a long url like

http://www.google.co.kr/search?complete=1&hl=ko&q=why+worry&lr=&aq=5&oq=why

just call Create.do

http://snap.daum.net/api/Create.do?longurl=http%3A//www.google.co.kr/search%3Fcomplete%3D1%26hl%3Dko%26q%3Dwhy%2Bworry%26lr%3D%26aq%3D5%26oq%3Dwhy

and then you can get xml data like below.

if you specify type=json like

http://snap.daum.net/api/Create.do?type=json&longurl=http%3A//www.google.co.kr/search%3Fcomplete%3D1%26hl%3Dko%26q%3Dwhy%2Bworry%26lr%3D%26aq%3D5%26oq%3Dwhy

you can get json data like below

if you want to use a callback function helloCallback directly in your javascript code,

just add callback=helloCallback

http://snap.daum.net/api/Create.do?type=json&callback=helloCallback&longurl=http%3A//www.google.co.kr/search%3Fcomplete%3D1%26hl%3Dko%26q%3Dwhy%2Bworry%26lr%3D%26aq%3D5%26oq%3Dwhy

then you can get json data like below

2. You got a key "bt2" and short url

http://snap.daum.net/bt2

Then you want to get bt2's snapshot image

just add .image

http://snap.daum.net/bt2.image

3. Website snapshot takes a time for a while. so if you want to know that it has finished capturing a snapshot of website,

just add .status

http://snap.daum.net/bt2.status

then you can get xml data like below

if you want json data,

specify type=json

http://snap.daum.net/bt2.status?type=json

then you can get json data like below

if you want to add callback function,

specify callback=callbackNameYouwant

http://snap.daum.net/bt2.status?type=json&callback=callbackNameYouwant

then you can get json data like below

That's all.

Isn't it easy?

Copyright Information Area

Team
keron
Project
tamama