Locations .: Get Web Links

API Reference / v15

Get a Location’s Web Links

This endpoint return the web links associated with a specific LevelUp location.

Request Endpoint

GET /v15/locations/:location_id/web_links

No Authorization Required

cURL Example

curl -X GET -H Accept:application/json -H Content-Type:application/json https://api.thelevelup.com/v15/locations/180/web_links

Example Response

[
  {
    "web_link": {
      "ios_deeplink_url": "facebook:///",
      "title": "Facebook",
      "web_link_type_id": 1,
      "web_url": "http://www.facebook.com/example"
    }
  },
  {
    "web_link": {
      "ios_deeplink_url": null,
      "title": "Website",
      "web_link_type_id": 7,
      "web_url": "http://example.com"
    }
  },
  {
    "web_link": {
      "ios_deeplink_url": null,
      "title": "Yelp",
      "web_link_type_id": 8,
      "web_url": "http://www.yelp.com/example"
    }
  }
]

Response Parameters

Param Type Description
ios_deeplink_url String An optional URL that opens the link as an iOS deeplink.
title String The title of the web link.
web_link_type_id Integer The type identifier for this web link. Used to retrieve an image for the link.
web_url String The link’s URL.

Errors

No location matches the given ID

HTTP/1.1 404 Not Found

(No response body.)