Warning: include(): open_basedir restriction in effect. File(/storage/content/35/142835/_includes/config.php) is not within the allowed path(s): (/storage/content/35/142835/forkortad.se/:/storage/configuration/wrappers/35/142835/forkortad.se/:/tmp/) in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 3 Warning: include(/storage/content/35/142835/_includes/config.php): failed to open stream: Operation not permitted in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 3 Warning: include(): open_basedir restriction in effect. File(/storage/content/35/142835/_includes/config.php) is not within the allowed path(s): (/storage/content/35/142835/forkortad.se/:/storage/configuration/wrappers/35/142835/forkortad.se/:/tmp/) in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 3 Warning: include(/storage/content/35/142835/_includes/config.php): failed to open stream: Operation not permitted in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 3 Warning: include(): Failed opening '../../../_includes/config.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/35/142835/pear/php') in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 3 Warning: include(): open_basedir restriction in effect. File(/storage/content/35/142835/_includes/shortlinkid.php) is not within the allowed path(s): (/storage/content/35/142835/forkortad.se/:/storage/configuration/wrappers/35/142835/forkortad.se/:/tmp/) in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 4 Warning: include(/storage/content/35/142835/_includes/shortlinkid.php): failed to open stream: Operation not permitted in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 4 Warning: include(): open_basedir restriction in effect. File(/storage/content/35/142835/_includes/shortlinkid.php) is not within the allowed path(s): (/storage/content/35/142835/forkortad.se/:/storage/configuration/wrappers/35/142835/forkortad.se/:/tmp/) in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 4 Warning: include(/storage/content/35/142835/_includes/shortlinkid.php): failed to open stream: Operation not permitted in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 4 Warning: include(): Failed opening '../../../_includes/shortlinkid.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/35/142835/pear/php') in /storage/content/35/142835/forkortad.se/public_html/api/index.php on line 4 API Förkortad.se

API dokumentation för Förkortad.se

Vi stödjer bÄde JSON och XML-format.

Skapa en kort lÀnk med API:et

Exempel pÄ anrop i XML: http://forkortad.se/api/?shorten=DIN_LANK&format=xml

Exempel pÄ anrop i JSON: http://forkortad.se/api/?shorten=DIN_LANK&format=json

Data man fÄr efter att skapat en lÀnk:

longurl Den lÄnga ursprungliga url:en.
shortID ID:t för den korta lÀnken.
shorturl LÀnken som den blir förkortad.

HÀmta info om en lÀnk

Exempel pÄ anrop i XML: http://forkortad.se/api/?info=FORKORTAD_LANK&format=xml

Exempel pÄ anrop i JSON: http://forkortad.se/api/?info=FORKORTAD_LANK&format=json

Data man fÄr ut med anropet:

longurl Den lÄnga ursprungliga url:en.
shortID ID:t för den korta lÀnken.
shorturl LÀnken som den blir förkortad.
clicks Antalet klick som lÀnken fÄtt sedan den blev postad.

HÀmta de senaste lÀnkarna

Exempel pÄ anrop i XML: http://forkortad.se/api/?latest=true&format=xml

Exempel pÄ anrop i JSON: http://forkortad.se/api/?latest=true&format=json

Data man fÄr ut med anropet:

longurl Den lÄnga ursprungliga url:en.
shortID ID:t för den korta lÀnken.
shorturl LÀnken som den blir förkortad.
clicks Antalet klick som lÀnken fÄtt sedan den blev postad.


LÀs ocksÄ: Förkortad.se för TweetBot



Kommentarer pÄ vÄrt API drivs av Disqus


FÄr du problem eller har förslag pÄ förbÀttringar? Kommentera ovan!