Simple & Minimalist
URL Shrinker

Shrink unlimited long urls for free


Better Grue Banner Image

Basic API Documentation

Both endpoints have similar responses but have different methods allowed.

  • Shorten a new url

    endpoint:

    /api/generate


    curl -X POST https://grue.cf/api/generate -H 'Content-Type: application/json' 
    -d {"url":"https://www.google.com"}

    Response

    {
      "_id": "5ffefa6096d4370008ba400e",
      "request_url": "https://www.google.com",
      "redirect": "https://www.google.com",
      "shortlink": {
        "short": "QU47Q",
        "long": "https://grue.cf/QU47Q"
      },
      "created_date": "2021-01-13T13:49:20Z",
      "last_visit_date": "2021-01-13T13:49:20Z"
    }
  • Get grue (shortened / shortlink) data

    endpoint:

    /api/get/[shortlinkID]


    curl https://grue.cf/api/get/QU47Q

    Response

    {
      "_id": "5ffefa6096d4370008ba400e",
      "request_url": "https://www.google.com",
      "redirect": "https://www.google.com",
      "shortlink": {
        "short": "QU47Q",
        "long": "https://grue.cf/QU47Q"
      },
      "created_date": "2021-01-13T13:49:20Z",
      "last_visit_date": "2021-01-13T13:49:20Z"
    }