Bitly tools
The 11 Bitly operations your product runs on your customer's account through Connect. All of them use the same endpoint, POST /api/tools/{tool}/execute.
- List groupsGETLists the groups the account belongs to. Each group has the guid that the other tools ask for as group_guid and, in bsds, the custom domains the group can shorten links with.
- List BitlinksGETLists the Bitlinks of a group, with their id, link, long_url, title and tags. The response has links and pagination: pass pagination.search_after as search_after, with the same filters, to read the next page.
- Get BitlinkGETReturns a Bitlink: the short link, long_url, title, tags, archived, created_at and the custom back-halves it had.
- Create BitlinkPOSTShortens a long URL into a new Bitlink and returns it, with the short link in link and its id in id. It counts toward the monthly link limit of the plan, and features the plan lacks, like a custom back-half, answer 402 UPGRADE_REQUIRED.
- Update BitlinkPATCHUpdates a Bitlink and returns it. Fields left out keep their value. Changing long_url redirects the link and always counts toward the monthly link limit of the plan; plans without redirects answer 402 UPGRADE_REQUIRED.
- Get Bitlink clicksGETReturns the clicks of a Bitlink per unit of time, in link_clicks with date and clicks. unit and units set the window: unit day with units 30 is the 30 days up to unit_reference.
- Get Bitlink clicks summaryGETReturns the total clicks of a Bitlink in a window, in total_clicks. unit and units set the window: unit day with units 30 is the 30 days up to unit_reference.
- Get Bitlink clicks by countryGETReturns the clicks of a Bitlink per country in a window, in metrics with value (the country code) and clicks. unit and units set the window: unit day with units 30 is the 30 days up to unit_reference.
- Get Bitlink clicks by referrerGETReturns the clicks of a Bitlink per referrer in a window, in metrics with value (the referrer) and clicks. unit and units set the window: unit day with units 30 is the 30 days up to unit_reference.
- Get Bitlink clicks by deviceGETReturns the clicks of a Bitlink per device type in a window. unit and units set the window: unit day with units 30 is the 30 days up to unit_reference. Plans without this report answer 402 UPGRADE_REQUIRED.
- Get group clicksGETReturns the clicks on all the Bitlinks of a group per unit of time, in data. unit and units set the window: unit day with units 30 is the 30 days up to unit_reference. Plans without this report answer 402 UPGRADE_REQUIRED.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
