GET
/
links
curl --request GET \
  --url https://itlinks.to/v1/links/ \
  --header 'Authorization: <api-key>'
{
  "data": {
    "total": 2,
    "rows": [
      {
        "id": 1001,
        "name": "Example Link 1",
        "domain": "example.com",
        "slug": "example-link-1",
        "tags": [
          "tag1",
          "tag2"
        ],
        "rules": [
          {
            "id": 10001,
            "name": "Morning Rule",
            "active_from": "2023-01-01",
            "active_to": "2023-12-31",
            "locations": [
              {
                "type": "country",
                "name": "USA"
              }
            ],
            "device_types": [
              "Mobile",
              "Desktop"
            ],
            "oses": [
              "Windows",
              "iOS"
            ],
            "week_days": [
              "Monday",
              "Tuesday",
              "Wednesday"
            ],
            "day_time_ranges": [
              {
                "start": "08:00",
                "end": "12:00"
              }
            ],
            "url_ratios": [
              {
                "name": "Primary URL",
                "url": "http://example.com/main",
                "ratio": 0.8
              },
              {
                "name": "Secondary URL",
                "url": "http://example.com/secondary",
                "ratio": 0.2
              }
            ],
            "created_at": "2023-01-01T00:00:00"
          }
        ]
      },
      {
        "id": 1002,
        "name": "Example Link 2",
        "domain": "anotherexample.com",
        "slug": "example-link-2",
        "tags": [
          "tag3",
          "tag4"
        ],
        "rules": [
          {
            "id": 10002,
            "name": null,
            "active_from": "2023-02-01",
            "active_to": null,
            "locations": [
              {
                "type": "continent",
                "name": "Europe"
              }
            ],
            "device_types": [
              "Tablet"
            ],
            "oses": [
              "Android"
            ],
            "week_days": [
              "Thursday",
              "Friday"
            ],
            "day_time_ranges": [
              {
                "start": "17:00",
                "end": "21:00"
              }
            ],
            "url_ratios": [
              {
                "name": "Only URL",
                "url": "http://example.com/single",
                "ratio": 1
              }
            ],
            "created_at": "2023-02-01T10:00:00"
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Query Parameters

ids
number[]
q
string
Maximum length: 320

Response

200
application/json
List of links.
data
object