this allows you to get the real link of bit.ly

check the real url from a url shortener (bit.ly)

Also you can use it as an API

example with deno

  const rawResponse = await fetch("https://anti-url-shortener.herokuapp.com/no-bitly?api=true", {
    method: "POST",
    headers: {
      Accept: "application/json",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      url: `https://bit.ly/3nv15Ci`,
    }),
  });
  const content = await rawResponse.json();
  console.log(content);

example with curl

curl --location --request POST 'https://anti-url-shortener.herokuapp.com/no-bitly?api=true' \
--header 'Content-Type: application/json' \
--data-raw '{"url":"https://bit.ly/3nv15Ci"}'

example with python

import requests
import json

url = "https://anti-url-shortener.herokuapp.com/no-bitly?api=true"

payload = json.dumps({
  "url": "https://bit.ly/3nv15Ci"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

example with nodejs (axios)

var axios = require('axios');
var data = JSON.stringify({
  "url": "https://bit.ly/3nv15Ci"
});

var config = {
  method: 'post',
  url: 'https://anti-url-shortener.herokuapp.com/no-bitly?api=true',
  headers: { 
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
Similar Resources

GoApiRandom - Api to get random numbers

GoApiRandom - Api to get random numbers

Jan 18, 2022

EGo lets you build, debug und run Go apps on Intel SGX - as simple as conventional Go programming!

EGo lets you build, debug und run Go apps on Intel SGX - as simple as conventional Go programming!

Dec 28, 2022

cuckoo-filter go implement. config by you 布谷鸟过滤器的Go实现,可以定制化过滤器参数

Cuckoo filter is a Bloom filter replacement for approximated set-membership queries. While Bloom filters are well-known space-efficient data structures to serve queries like "if item x is in a set?", they do not support deletion. Their variances to enable deletion (like counting Bloom filters) usually require much more space.

Jan 1, 2023

go-i18n is a Go package and a command that helps you translate Go programs into multiple languages.

go-i18n is a Go package and a command that helps you translate Go programs into multiple languages.

Jan 2, 2023

this is an api that execute your deno code and send you the output

this a simple api that execute your deno code and send you the output, has not limit per request example request: in deno: const rawResponse = await f

Dec 23, 2022

Clean-Swift source and test code auto-generator. It can save you time typing 500-600 lines of code.

Clean-Swift source and test code auto-generator. It can save you time typing 500-600 lines of code.

Clean-Swift source & test code auto generator Overview Run Output Basic Usage make config.yaml target_project_name: Miro // target project name copyri

Apr 13, 2022

How much you spend for glovo. Make config file and launch yourself

how_much_you_spend How much you spend for glovo. Make config file and launch yourself, you are welcome! Put config file in the same folder as executab

Nov 9, 2021

With Pasteback you can store common terms and paste them back to clipboard

Pasteback With Pasteback you can store common terms and paste them back to clipboard when needed. There is one central spot to put every string into y

Nov 22, 2021

JIN the coolest fighting game ever made that uses the M.U.G.E.N engine so heres how you can build it

JIN the coolest fighting game ever made that uses the M.U.G.E.N engine so heres how you can build it

Jan 24, 2022
Comments
  • Ademas de que te lo pase a golang tambien lo hice mejor

    Ademas de que te lo pase a golang tambien lo hice mejor

    Veamos , tiene un ratelimit Ademas de eso tambien acepta jsons y formvalues Se conecta a un proxy aleatorio No ejecuta un comando para obtener la url Hice que responda con la app o con el json hice la opcion para que puedas usarlo como una api , asi

    curl -X POST \                      
        'http://localhost:8080/no-bitly?api=true' \
        -H 'Content-Type: application/json' \
        -d '{"url":"https://bit.ly/3nv15Ci"}'
    
    
    

    y ahora esta perfecto

  • soy la segunda venida de cristo no joda

    soy la segunda venida de cristo no joda

    Estuve mejorandolo agregandole nuevas cosas tiene un ratelimit para evitar posibles ddos tambien ahora se conecta a proxies para asi evitar que nos bloquee bitly o algo parecido ademas de eso , ahora en vez de usar curl para hacer los request solo hace un request, hace el header y asi evita usar regex ahora esta mucho mejor que antes

  • Update noBitly.go perdon ya no soy la segunda de cristo SOY DIOSSS

    Update noBitly.go perdon ya no soy la segunda de cristo SOY DIOSSS

    solo es para el manejo de errores al parecer el request se ejecutaba en la linea 38 con el http.DefaultTransport.RoundTrip(req) ahora ya lo solucione y no da error

Procswap is a simple application that allows you to prioritize processes on a Windows machine.
Procswap is a simple application that allows you to prioritize processes on a Windows machine.

Procswap is a simple application that allows you to prioritize processes on a Windows machine.

Mar 8, 2022
This Go package allows you to set handler functions that run when named events occur

This Go package allows you to set handler functions that run when named events occur

Feb 10, 2022
Package ethtool allows control of the Linux ethtool generic netlink interface.

ethtool Package ethtool allows control of the Linux ethtool generic netlink interface.

Dec 14, 2022
memresolver is an in-memory golang resolver that allows to override current golang Lookup func literals

mem-resolver memresolver is an in-memory golang resolver that allows to override current golang Lookup func literals How to use it Create your custom

Jun 23, 2022
Get cloud instances with your favourite software pre-loaded

This Golang package can be used to provision cloud hosts using a simple CRUD-style API along with a cloud-init user-data script. It could be used to automate anything from k3s clusters, to blogs, or CI runners. We use it to create the cheapest possible hosts in the cloud with a public IP address.

Dec 14, 2022
✔️ Get random data for your app from a third-party source.

Random Data Securely produced random data for application testing. FAQ What would i use this data for? You can use this information to test your apps

Jul 5, 2022
redis-util business-friendly encapsulation of redis operations, such as the common cache set get operation

redis-util 方便业务使用的redis操作封装,比如常见的缓存set get操作, 一行代码搞定,不像开源库需要写好多行 使用方法

Oct 22, 2021
Easy way to get credentials of your clusters in GCP and stay connected

Easy way to get credentials of your clusters in GCP and stay connected. Don't lose time with alias or annotations with projects names and clusters. Use k8skey

Nov 9, 2021
Simple utility to get/set the PWM duty cycle and to measure the RPM for a fan connected to the 4-pin header on the CM4IO.

cm4iofan Simple utility to get/set the PWM duty cycle and to measure the RPM for a fan connected to the 4-pin header on the CM4IO. Requirements Enable

Mar 31, 2022
get windows system call number dynamically, it doesn't need the system call table.

GetSyscallID get windows system call number dynamically, it doesn't need the system call table. Try download go get github.com/akkuman/getsyscallid/cm

Jun 1, 2022