Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Bitly Object

Nathaniel Kirby edited this page · 5 revisions
Clone this wiki locally

Each of the public Bitly API endpoints are mapped and available with the following method signature

Bitly.[method name](parameters, callback(error, response){

});

For Example:

Bitly.shorten({longUrl:"https://github.com/nkirby/node-bitlyapi"}, function(err, results) {
    // Do something with your new, shorter url...
});

Where parameters is a key-value object {} according to Bitly's API documentation.

The following is a listing of all implemented endpoings, along with their relative path to the Bitly API

Data APIs

/v3/highvalue

Bitly.getHighvalueLinks()

/v3/search

Bitly.search()

/v3/realtime/bursting_phrases

Bitly.getRealtimeBurstingPhrases()

/v3/realtime/hot_phrases

Bitly.getRealtimeHotPhrases()

/v3/realtime/clickrate

Bitly.getRealtimeClickrate()

/v3/link/info

Bitly.getLinkFullInfo()

/v3/link/content

Bitly.getLinkContent()

/v3/link/category

Bitly.getLinkCategory()

/v3/link/social

Bitly.getLinkSocial()

/v3/link/location

Bitly.getLinkLocation()

/v3/link/language

Bitly.getLinkLanguage()

Links

/v3/expand

Bitly.expand()

/v3/info

Bitly.getLinkInfo()

/v3/link/lookup

Bitly.linkLookup()

/v3/shorten

Bitly.shorten()

/v3/user/link_edit

Bitly.userEditLink()

/v3/user/link_lookup

Bitly.userLookupLink()

/v3/user/link_save

Bitly.userSaveLink()

/v3/user/save_custom_domain_keyword

Bitly.userSaveCustomDomainKeyword()

Link Metrics

/v3/link/clicks

Bitly.getLinkClicks()

/v3/link/countries

Bitly.getLinkCountries()

/v3/link/encoders

Bitly.getLinkEncoders()

/v3/link/encoders_by_count

Bitly.getLinkEncodersByCount()

/v3/link/encoders_count

Bitly.getLinkEncodersCount()

/v3/link/referrers

Bitly.getLinkReferrers()

/v3/link/referrers_by_domain

Bitly.getLinkReferrersByDomain()

/v3/link/referring_domains

Bitly.getLinkReferringDomains()

/v3/link/shares

Bitly.getLinkShares()

User Info/History

/v3/oauth/app

Bitly.getAppInfo()

/v3/user/info

Bitly.getUserInfo()

/v3/user/link_history

Bitly.getUserLinkHistory()

/v3/user/network_history

Bitly.getUserNetworkHistory()

/v3/user/tracking_domain_list

Bitly.getUserTrackingDomains()

User Metrics

/v3/user/clicks

Bitly.getUserClicks()

/v3/user/countries

Bitly.getUserCountries()

/v3/user/popular_earned_by_clicks

Bitly.getUserPopularEarnedByClicks()

/v3/user/popular_earned_by_shortens

Bitly.getUserPopularEarnedByShortens()

/v3/user/popular_links

Bitly.getUserPopularLinks()

/v3/user/popular_owned_by_clicks

Bitly.getUserPopularOwnedByClicks()

/v3/user/popular_owned_by_shortens

Bitly.getUserPopularOwnedByShortens()

/v3/user/referrers

Bitly.getUserReferrers()

/v3/user/referring_domains

Bitly.getUserReferringDomains()

/v3/user/share_counts

Bitly.getUserShareCounts()

/v3/user/share_counts_by_share_type

Bitly.getUserShareCountsByShareType()

/v3/user/shorten_counts

Bitly.getUserShortenCounts()

Organization Metrics

/v3/organization/brand_messages

Bitly.getOrganizationBrandMessages()

/v3/organization/intersecting_links

Bitly.getOrganizationIntersectingLinks()

/v3/organization/leaderboard

Bitly.getOrganizationLeaderboard()

/v3/organization/missed_opportunities

Bitly.getOrganizationMissedOpportunities()

Bundles

/v3/bundle/archive

Bitly.archiveBundle()

/v3/bundle/bundles_by_user

Bitly.bundlesByUser()

/v3/bundle/clone

Bitly.cloneBundle()

/v3/bundle/collaborator_add

Bitly.addCollaboratorToBundle()

/v3/bundle/collaborator_remove

Bitly.removeCollaboratorFromBundle()

/v3/bundle/contents

Bitly.getBundleContents()

/v3/bundle/create

Bitly.createBundle()

/v3/bundle/edit

Bitly.editBundle()

/v3/bundle/link_add

Bitly.addLinkToBundle()

/v3/bundle/link_comment_add

Bitly.addCommentToBundleLink()

/v3/bundle/link_comment_edit

Bitly.editBundleLinkComment()

/v3/bundle/link_comment_remove

Bitly.removeBundleLinkComment()

/v3/bundle/link_edit

Bitly.editBundleLink()

/v3/bundle/link_remove

Bitly.removeBundleLink()

/v3/bundle/link_reorder

Bitly.reorderBundleLink()

/v3/bundle/pending_collaborator_remove

Bitly.removePendingCollaboratorFromBundle()

/v3/bundle/reorder

Bitly.reorderBundle()

/v3/bundle/view_count

Bitly.getBundleViewCount()

/v3/user/bundle_history

Bitly.getUserBundleHistory()

Domains

/v3/bitly_pro_domain

Bitly.getBitlyProDomain()

/v3/user/tracking_domain_clicks

Bitly.getTrackingDomainClicks()

/v3/user/tracking_domain_shorten_counts

Bitly.getTrackingDomainShortens()

More Info

For more information about the Bitly public API, visit dev.bitly.com

Something went wrong with that request. Please try again.