Questions tagged [bit.ly]

Bit.ly is an URL-shortening service

Bitly is an URL-shortening service, which provides an extensive API for programmers to easily integrate URL-shortening services into their own applications. Bitly's API supports JSON and XML, and allows retrieving statistics about specific short URLs.

203 questions
5
votes
4 answers

Using Bit.ly API in ASP.NET 2.0

Hey I was wondering if anyone can point me to some example on how to use Bit.ly API in ASP.NET 2.0
StevieB
  • 6,263
  • 38
  • 108
  • 193
5
votes
1 answer

How many bit.ly links can I create per account

I have searched the bitly API documentation for limits, and I only see information about rate limits, i.e. the amount of people that can visit your short link in a given period of time (http://dev.bitly.com/rate_limiting.html). Id like to know if…
tomwoods
  • 1,125
  • 1
  • 12
  • 19
4
votes
6 answers

PHP: how to grab an URL out of a chunk of text?

Let's say I have a big RSS feed full of Twitter posts, and they are all plain text. Lots of the posts contain URLs, and I'd like those URLs to be turned into links. So I've got a variable that is equal to: Visualization of layoffs by industry,…
Eileen
  • 6,630
  • 6
  • 28
  • 29
4
votes
3 answers

jQuery URL bit.ly shortener

Will someone please help me with this jQuery bit.ly URL shortener? The code is as follows: function shortenUrl(urlMatch) { var urlMatch = urlMatch var username="myusername"; var key = 'R_897b82b73568ea74fffbafa5a7b846d'; $.ajax({ …
mcbeav
  • 11,893
  • 19
  • 54
  • 84
4
votes
3 answers

Shortening a long URL with bit.ly v4 (migrate from bit.ly v3) and python 3.7 and bitlyshortener package

I do have some tutorial code that makes use of the bit.ly API v3 for shortening an URL response. I would like to migrate this code to the v4 API but I do not understand how to set up the correct API endpoint. At least I think this is my error and…
mks
  • 422
  • 5
  • 15
4
votes
6 answers

Nuget package for bitly to shorten the links

I need to shorten my links using bitly in C#. Is there any nuget package for this? Can some one provide me code for that so that I can use that.
Dalvir Singh
  • 423
  • 3
  • 11
  • 25
4
votes
4 answers

How to get redirecting url link with php from bit.ly

I'm trying to get url links to those bit.ly redirects. I've tried to open bit.ly links with file_get_contents but it already gets content from redirected site, but how to get its url?
foreline
  • 3,751
  • 8
  • 38
  • 45
4
votes
4 answers

How to use jQuery click event to change href value asynchronously, based on a JSON query

I'm using the bit.ly url shortening service to shorten certain url's being sent to a "share on twitter" function. I'd like to load the bit.ly url only when a user actually presses the share button (due to bit.ly's max 5 parallel reqs limitation).…
pavsaund
  • 696
  • 1
  • 5
  • 16
4
votes
5 answers

Determine Final Destination of a Shortened URL in PHP?

How can I do this in PHP? e.g. bit.ly/f00b4r ==> http://www.google.com/search?q=cute+kittens In Java, the solution is this: You should issue a HEAD request to the url using a HttpWebRequest instance. In the returned HttpWebResponse, check…
Zack Burt
  • 8,257
  • 10
  • 53
  • 81
4
votes
1 answer

How can you get the replaced text with preg_replace?

I am using the preg_replace function in PHP and am trying to replace urls that users submit with bit.ly shortened links: $comment = preg_replace( '/(http|ftp)+(s)?:(\/\/)((\w|\.)+)(\/)?(\S+)?/i', '', $strText ); This will show only the comment and…
John Doe
  • 3,559
  • 15
  • 62
  • 111
3
votes
1 answer

Getting the RATE_LIMIT_EXCEEDED in bitly

can any one tell me why i am getting this error .I am using the bit.ly to share in twitter.Sometimes i am getting the error {"errorCode": 403, "errorMessage": "RATE_LIMIT_EXCEEDED", "results": null, "statusCode": ""} Bit.ly "
Anish
  • 4,262
  • 6
  • 36
  • 58
3
votes
2 answers

Python bit.ly link wordlist generator

I've been developing a Python tool to generate a bit.ly wordlist. Here are the particularities of bit.ly links: Contain 7 entities Begin with a number (generally 3 or 2) End with a letter Can't have the same entity side by side I already did the…
J0ckS
  • 33
  • 4
3
votes
1 answer

How can I create a customized bit.ly URL via API?

I have a textbox that takes a name. I have a bit.ly pro domain: cnvrt.it I want to shorten a users URL but also customize it as such: cnvrt.it/customized_name how can I achieve this?
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
3
votes
1 answer

Why Bit.ly v4 API returns INVALID_CONTENT_TYPE_HEADER?

I am getting error. I use this curl: $url = "https://api-ssl.bitly.com/v4/shorten"; $data = array('long_url' => 'http://www.google.com'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch,…
user4271704
  • 723
  • 1
  • 12
  • 37
3
votes
2 answers

maximum length of bit.ly generated url, "http" and everything included

full explanation: I'm working on a project to generate twitter links that post over to twitter. My problem is twitter doesn't shorten the text correctly, and asks the user to fix the text. So I'm going to have javascript shorten the text to the…
Agile Noob
  • 2,305
  • 4
  • 24
  • 35
1
2
3
13 14