{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlship-com/json-schema/curlship-com-listing-schema.json",
  "title": "Listing",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlship-com-openapi.yml#/components/schemas/Listing",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "link": {
      "type": "string",
      "format": "uri",
      "description": "The URL a visitor is actually sent to — url plus tracking params. Free listings carry ?ref=curlship; paid ones carry the owner's utm_*/ref params (set via POST /api/edit-request tracking)."
    },
    "tier": {
      "type": "string",
      "enum": [
        "free",
        "bronze",
        "silver",
        "gold",
        "platinum"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "image": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "has_badge": {
      "type": "boolean",
      "description": "True if a dofollow link back to curlship.com was found on the site."
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the listing was created, UTC."
    },
    "category": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string",
              "description": "The leaf slug when classified that deep, else the group."
            },
            "name": {
              "type": "string"
            },
            "group": {
              "type": "string",
              "description": "The top-level group this listing belongs to."
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "The listing's category, or null while it is unclassified. Set by the off-server classifier — submitters cannot choose one."
    }
  }
}