Locations .: Get Web Link Type Image

API Reference / v15

Get a Location’s Web Link Type Image

This endpoint redirects the client (using an HTTP 302 response with a Location header) to an image URL for a Web Link type.

The image will be 25 x 25 at 1x, 1.5x, 2x or 3x.

Note that an Accept header with the value image/jpg is required for the request.

Request Endpoint

GET /v15/web_link_types/:web_link_type_id/image?density=1&height=25&width=25

No Authorization Required

Request Parameters

Param Type Description
density Decimal The desired pixel density of the desired image. Must be 1, 1.5, 2 or 3.
height Integer The height of the desired image in pixels. Must be 25
width Integer The width of the desired image in pixels. Must be 25

cURL Example

curl -X GET -H Accept:image/jpeg https://api.thelevelup.com/v15/web_link_types/7/image?density=1&height=25&width=25

Example Response

HTTP/1.1 302 Found


Location: https://s3.amazonaws.com/levelup/afdb7142.jpg

(No response body.)


No image exists with the requested dimensions

HTTP/1.1 404 Not Found

(No response body.)