Linkbee API

This document describes the reqired format of Linkbee API URLs and lists of available parameters. The Linkbee API returns a JSON-formatted string in response to a URL. Several functionalities can be generated, including quick link, cash link, and statistic. Authentication might be needed for certain functions.



URL Format

Linkbee API URLs must be in the following format:

http://linkbee.com/api.php?task=<name of function>&<parameter_1=value>&<parameter_2=value>


Parameters are seperated using the ampersand (&) character. You can specify parameters in any order. For example, the folling JSON-formatted string was returned in response to the URL below:


{"error":0,"msg":"","hits":"4"}

http://linkbee.com/api.php?task=hits&user=john&pass=_Mì·ZkeÖ]§Ï


Where:

  • http://linkbee.com/api.php? is the API location
  • task=hits is the requested function
  • & seperates parameters
  • user=john&pass=_Mì·ZkeÖ]§Ï is the username and password for authentication


JSON String Format


The JSON-fomartted string will be returned in the following format:

{"error":"value","msg":"value","requested function":"value"}


Where:

  • "error":"value" is the error code. 1 if an error occured and 0 otherwise.
  • "msg":"value" is the error message. None for a successful operation.
  • "requested function":"value" is the result of interest. Available requested functions are: quicken, shorten, hits.


Functions and Required Parameters


  • quicken - Create A Quick Link

    Example: http://linkbee.com/api.php?task=quicken&url=http://www.jokedollars.com


    Required:

    • url: a valid URL to be shorten.

  • shorten - Create A Cash Link
  • Example: http://linkbee.com/api.php?task=shorten&user=john&pass=_Mì·ZkeÖ]§Ï&ad=0&cat=9


    Required:

    • url: valid url to be shorten.
    • user: a Linkbee account's username.
    • pass: passoword for the specified account. It must be in MD5 hash string raw binary format. Note: it also needs to be encoded for URL query.

    Optional:

    If unspecified, default options will be assigned as None for Ad type and Unrelated for Catergory.

    • Ad Type
      • 0 - Interstitial
      • 1 - Banner
      • 2 - None
    • Catergory
      • 3 - Entertainment
      • 4 - Financial
      • 5 - Games
      • 6 - News
      • 7 - Politics
      • 7 - Politics
      • 8 - Sports
      • 9 - Travel
      • 10 - Unrelated / Other
      • 11 - Technology
      • 12 - Adult Related
      • 13 - File Sharing
      • 11 - Photo / People

  • hits - Get Number Of Hits for A Link
  • Example: http://linkbee.com/api.php?task=hits&user=john&pass=_Mì·ZkeÖ]§Ï


    Required:

    • link: A Linkbee link or hash.
    • user: a Linkbee account's username.
    • pass: password for the specified account. It must be in MD5 hash string raw binary format. Note: it also needs to be encoded for URL query.
LinkBee Logo

My Account

Help & Info

LinkBee

© 2009 JMG - Jolt Media Group Inc. All Rights Reserved. All Rights Reserved.