GET
/
shorten-domains
curl --request GET \
  --url https://api.u301.com/v2/shorten-domains
{
  "meta": {
    "total": 6,
    "perPage": 10,
    "currentPage": 1,
    "lastPage": 1,
    "firstPage": 1
  },
  "data": [
    {
      "domainName": "x.jarfire.org",
      "visibility": "private"
    },
    {
      "domainName": "go.jarfire.org",
      "visibility": "private"
    },
    {
      "domainName": "t.fbi.com",
      "visibility": "public"
    },
    {
      "domainName": "az.jarfire.org",
      "visibility": "public"
    },
    {
      "domainName": "localhost",
      "visibility": "public"
    },
    {
      "domainName": "a1.jarfire.org",
      "visibility": "private"
    }
  ]
}

Params: Visibiliy

available options are

  • public domains provided by the system and available for all users to use.
  • private your custom domains that you have created and can only be used by you.
  • all all domains that you can use.

You can fetch the available domains for shortening, including your own custom domains.

Query Parameters

perPage
integer

Results per Page, range: 1-500

page
integer

Current Page

visibility
enum<string>

Domain Types

Available options:
public,
private,
all

Response

200 - application/json
Success
meta
object

Pagination Meta Data, including pages, total results...

data
object[]

Domain List