Welcome to Genhike Sports

GET /api/v1/tags

Source app/api/ApiController.php@44492cfc3aef Parameters and errors scanned from tags() Rendered at 2026-11-23 20:58:58
Method
GET
Path
/api/v1/tags
Auth
Token required (Authorization: Bearer, X-Api-Key or ?key=)
Handler
ApiController::tags()
Routing
Reserved endpoint for $first === 'tags' in dispatch()
Description
Tag list

Parameters

The parameter set, types and defaults are scanned out of the endpoint source. A ✓ next to Required means the exact source line that rejects the missing value is still present in the method body, which the reconciler re-checks every run.

Parameter Type Required Default Notes Origin / evidence
lang string no zh Language code (zh / en). Defaults to the site default language; a token language allow-list still applies resolveLang()
limit int no 0 Number of tags to return; default 200, clamped to 1-1000 Request::int

Response sample

not captured yet Run php cli/build-manual.php --capture; the reconciler reports a missing sample as a failure.

Error codes

Code Meaning Scope
400 Unknown language Parameter validation
401 Invalid API token
403 This token may not access that model
403 This token may not access that language Authorization
404 Endpoint not found
404 Unknown content model
405 Read-only API: GET is the only supported method
429 Too many requests, please retry later
500 Internal server error
503 The open API is not enabled on this site

Example call

The URL is built from the registry path plus real parameters from this site; replace the token with your own.

curl -sS \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json' \
  'https://www.genhikesports.com/api/v1/tags'
Placeholder Value on this site
{model} news
{slug} heng-air-6-3-launch

Common scenarios

  • Tag cloud or related tags: take the first N by usage
    /api/v1/tags?limit=20

← /api/v1/categories · /api/v1/search → · All endpoints

Send an Enquiry