/api/link/:name

Added in v1.0
GET https://api.example.com/api/link/:name
Requires authentication: X-API-Key: YOUR_API_KEY

Fetch an existing link by the link/URL name.

Headers

  • x-api-key string required
    API key used to authenticate the request
    Example: Your actual API key

Path parameters

  • name string required
    The name or URL of the link to search for
    Example: google

Responses

  • 200Success
  • 404Link not found from name or url.
Request
curl -X GET 'https://api.example.com/api/link/google' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'x-api-key: Your actual API key'
Response
Success
{
  "id": 1,
  "name": "google",
  "url": "https://google.com",
  "count": 0,
  "creator": "API",
  "creatorID": "0",
  "createdAt": "1720000000000"
}