{
  "components": {
    "schemas": {
      "AdChallenge": {
        "properties": {
          "bits": {
            "type": "integer"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "rule": {
            "type": "string"
          },
          "seed": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "seed",
          "bits",
          "expires_at"
        ],
        "type": "object"
      },
      "AdOrder": {
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount_pico": {
            "description": "piconero (1 XMR = 10^12)",
            "type": "integer"
          },
          "amount_xmr": {
            "description": "XMR with 12 decimals",
            "type": "string"
          },
          "cancel_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "confirmations_needed": {
            "type": "integer"
          },
          "confirmations_seen": {
            "type": "integer"
          },
          "created_at": {
            "type": "string"
          },
          "creative_status": {
            "type": "string"
          },
          "hold_until": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "live_dates": {
            "type": [
              "object",
              "null"
            ]
          },
          "monero_uri": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": "string"
          },
          "period": {
            "properties": {
              "end": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "months": {
                "type": "integer"
              },
              "start": {
                "type": "string"
              }
            },
            "required": [
              "start",
              "end",
              "months"
            ],
            "type": "object"
          },
          "received_pico": {
            "description": "piconero (1 XMR = 10^12)",
            "type": "integer"
          },
          "received_xmr": {
            "description": "XMR with 12 decimals",
            "type": "string"
          },
          "secret": {
            "description": "only in the 201 answer; the only key to the order",
            "type": "string"
          },
          "service": {
            "type": [
              "string",
              "null"
            ]
          },
          "slot": {
            "type": "string"
          },
          "status": {
            "enum": [
              "requested",
              "awaiting_payment",
              "paid_creative_check",
              "scheduled",
              "live",
              "paused",
              "ended",
              "refunded",
              "cancelled"
            ],
            "type": "string"
          },
          "status_url": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "amount_pico",
          "amount_xmr",
          "address",
          "hold_until"
        ],
        "type": "object"
      },
      "AdOrderRequest": {
        "additionalProperties": false,
        "properties": {
          "challenge_id": {
            "type": "string"
          },
          "contact": {
            "maxLength": 200,
            "type": "string"
          },
          "creative": {
            "contentEncoding": "base64",
            "description": "PNG or JPG",
            "type": "string"
          },
          "cta": {
            "maxLength": 20,
            "type": "string"
          },
          "headline": {
            "maxLength": 40,
            "type": "string"
          },
          "line": {
            "maxLength": 90,
            "type": "string"
          },
          "months": {
            "maximum": 12,
            "minimum": 1,
            "type": [
              "integer",
              "string"
            ]
          },
          "nonce": {
            "type": [
              "string",
              "integer"
            ]
          },
          "scope": {
            "type": [
              "string",
              "integer"
            ]
          },
          "service": {
            "description": "the service's nokychub slug",
            "type": "string"
          },
          "slot": {
            "type": "string"
          },
          "start_month": {
            "pattern": "^[0-9]{4}-[0-9]{2}$",
            "type": "string"
          }
        },
        "required": [
          "challenge_id",
          "nonce",
          "slot",
          "service",
          "start_month",
          "months"
        ],
        "type": "object"
      },
      "AdQuote": {
        "properties": {
          "amount_pico": {
            "description": "piconero (1 XMR = 10^12)",
            "type": "integer"
          },
          "amount_xmr": {
            "description": "XMR with 12 decimals",
            "type": "string"
          },
          "availability": {
            "oneOf": [
              {
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "field",
                  "message"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "available": {
            "type": "boolean"
          },
          "currency": {
            "enum": [
              "XMR"
            ],
            "type": "string"
          },
          "eligibility": {
            "oneOf": [
              {
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "field",
                  "message"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "eligible": {
            "type": "boolean"
          },
          "errors": {
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "field",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "hold_hours": {
            "type": [
              "number",
              "null"
            ]
          },
          "months": {
            "type": "integer"
          },
          "note": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "ordering": {
            "description": "ordering_off or maintenance: an order would be refused now",
            "oneOf": [
              {
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "field",
                  "message"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "payments_on": {
            "type": "boolean"
          },
          "scope": {
            "type": [
              "string",
              "null"
            ]
          },
          "service": {
            "type": "string"
          },
          "slot": {
            "type": "string"
          },
          "start_month": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "amount_pico",
          "eligible",
          "available",
          "payments_on"
        ],
        "type": "object"
      },
      "AdQuoteRequest": {
        "additionalProperties": false,
        "properties": {
          "months": {
            "maximum": 12,
            "minimum": 1,
            "type": [
              "integer",
              "string"
            ]
          },
          "scope": {
            "type": [
              "string",
              "integer"
            ]
          },
          "service": {
            "description": "the service's nokychub slug",
            "type": "string"
          },
          "slot": {
            "type": "string"
          },
          "start_month": {
            "pattern": "^[0-9]{4}-[0-9]{2}$",
            "type": "string"
          }
        },
        "required": [
          "slot",
          "service",
          "start_month",
          "months"
        ],
        "type": "object"
      },
      "AdRefusal": {
        "properties": {
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "field": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "field",
              "message"
            ],
            "type": "object"
          },
          "errors": {
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "field",
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "error",
          "errors"
        ],
        "type": "object"
      },
      "AdSlots": {
        "properties": {
          "months": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "payments_on": {
            "type": "boolean"
          },
          "slots": {
            "items": {
              "properties": {
                "availability": {
                  "items": {
                    "properties": {
                      "month": {
                        "type": "string"
                      },
                      "state": {
                        "enum": [
                          "free",
                          "held",
                          "booked"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "month",
                      "state"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "creative_base64_max_chars": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "format": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "max_kb": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "num": {
                  "type": "integer"
                },
                "page": {
                  "type": "string"
                },
                "price_month_pico": {
                  "description": "piconero (1 XMR = 10^12)",
                  "type": "integer"
                },
                "price_month_xmr": {
                  "description": "XMR with 12 decimals",
                  "type": "string"
                },
                "price_quarter_pico": {
                  "description": "piconero (1 XMR = 10^12)",
                  "type": "integer"
                },
                "price_quarter_xmr": {
                  "description": "XMR with 12 decimals",
                  "type": "string"
                },
                "scope": {
                  "enum": [
                    "global",
                    "per_category",
                    "per_guide"
                  ],
                  "type": "string"
                },
                "size": {
                  "type": "string"
                },
                "text_only": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "price_month_pico",
                "price_quarter_pico",
                "max_kb",
                "text_only",
                "scope",
                "availability"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "payments_on",
          "months",
          "slots"
        ],
        "type": "object"
      },
      "Comparison": {
        "properties": {
          "data_refreshed_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer"
          },
          "row_groups": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "services": {
            "items": {
              "properties": {
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                }
              },
              "required": [
                "slug",
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "slug": {
            "type": "string"
          },
          "sponsored": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "slug",
          "services",
          "row_groups",
          "data_refreshed_at",
          "sponsored"
        ],
        "type": "object"
      },
      "Delisted": {
        "properties": {
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "sources": {
            "items": {
              "properties": {
                "checked": {
                  "type": "string"
                },
                "url": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "url",
                "checked"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "summary": {
            "type": "string"
          },
          "was_kyc": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "slug",
          "category",
          "reason",
          "date",
          "summary",
          "was_kyc",
          "sources"
        ],
        "type": "object"
      },
      "Service": {
        "properties": {
          "accepts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "category": {
            "type": "string"
          },
          "kyc": {
            "description": "KYC grade; null = pending",
            "enum": [
              "A",
              "B",
              "C",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "last_test": {
            "description": "null = not tested yet",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "no_js": {
            "type": "boolean"
          },
          "onion": {
            "description": "onion host; null = none known",
            "type": [
              "string",
              "null"
            ]
          },
          "rating": {
            "description": "share of up-votes 0..1; null below 25 votes",
            "type": [
              "number",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "sponsored": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "slug",
          "category",
          "kyc",
          "accepts",
          "onion",
          "no_js",
          "last_test",
          "rating",
          "sponsored"
        ],
        "type": "object"
      },
      "ServiceDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Service"
          },
          {
            "properties": {
              "addresses": {
                "properties": {
                  "clearnet": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "i2p": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "onion": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "clearnet",
                  "onion",
                  "i2p"
                ],
                "type": "object"
              },
              "answer": {
                "description": "one-line answer to «Does {name} need KYC?»",
                "type": "string"
              },
              "asks": {
                "items": {
                  "properties": {
                    "item": {
                      "enum": [
                        "account",
                        "email",
                        "phone",
                        "id_document",
                        "selfie",
                        "proof_of_address",
                        "source_of_funds"
                      ],
                      "type": "string"
                    },
                    "level": {
                      "enum": [
                        "never",
                        "optional",
                        "if_flagged",
                        "some",
                        "always",
                        "unknown"
                      ],
                      "type": "string"
                    },
                    "quote": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source": {
                      "format": "uri",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "item",
                    "level",
                    "source"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "category_name": {
                "type": "string"
              },
              "citation": {
                "type": "string"
              },
              "comparisons": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "url"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "description": {
                "type": "string"
              },
              "external_ratings": {
                "items": {
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "score": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "source",
                    "score",
                    "url",
                    "date",
                    "note"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "grade_rule": {
                "description": "null next to a neutral or named answer",
                "type": [
                  "string",
                  "null"
                ]
              },
              "guides": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "url"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "html_url": {
                "format": "uri",
                "type": "string"
              },
              "json_url": {
                "format": "uri",
                "type": "string"
              },
              "last_checked": {
                "format": "date",
                "type": [
                  "string",
                  "null"
                ]
              },
              "listed_at": {
                "format": "date",
                "type": [
                  "string",
                  "null"
                ]
              },
              "markdown_url": {
                "format": "uri",
                "type": "string"
              },
              "related": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "url"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "sources": {
                "items": {
                  "properties": {
                    "claim": {
                      "type": "string"
                    },
                    "date": {
                      "format": "date",
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "official",
                        "aggregator",
                        "news",
                        "own_check"
                      ],
                      "type": "string"
                    },
                    "url": {
                      "description": "null for our own checks",
                      "format": "uri",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "claim",
                    "url",
                    "date",
                    "kind"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "status": {
                "enum": [
                  "listed",
                  "delisted"
                ],
                "type": "string"
              },
              "test_purchases": {
                "type": "integer"
              },
              "updated_at": {
                "type": "string"
              },
              "votes": {
                "type": "integer"
              }
            },
            "required": [
              "status",
              "asks",
              "sources",
              "grade_rule",
              "updated_at",
              "html_url",
              "markdown_url"
            ],
            "type": "object"
          }
        ]
      }
    }
  },
  "externalDocs": {
    "description": "llms.txt",
    "url": "https://nokychub.com/llms.txt"
  },
  "info": {
    "description": "Data about services usable with Monero and without KYC (read-only, rebuilt hourly). No auth, no cookies. Licence CC BY 4.0, attribution «nokychub»; xmr.club scores are xmr.club's (CC-BY-4.0). The /api/v1/ads/ endpoints let agents book ad slots with the web form's checks and limits (proof of work per order, XMR only).",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "title": "nokychub API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/ads/challenge": {
      "get": {
        "operationId": "getAdChallenge",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdChallenge"
                }
              }
            },
            "description": "Solve SHA-256(seed \":\" nonce) with `bits` leading zero bits"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "not_found: the JSON API is switched off (feat_api), or no order has this secret"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          }
        },
        "summary": "A proof-of-work challenge for one order attempt"
      }
    },
    "/api/v1/ads/orders": {
      "post": {
        "operationId": "placeAdOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdOrder"
                }
              }
            },
            "description": "Order created; keep the secret"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "not_found: the JSON API is switched off (feat_api), or no order has this secret"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "too_large: the body is larger than 512 KB"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "425": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          }
        },
        "summary": "Place an ad order (XMR only)"
      }
    },
    "/api/v1/ads/orders/{secret}": {
      "get": {
        "operationId": "getAdOrder",
        "parameters": [
          {
            "in": "path",
            "name": "secret",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-f]{32}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdOrder"
                }
              }
            },
            "description": "The order"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          }
        },
        "summary": "An order's status by its secret"
      }
    },
    "/api/v1/ads/quote": {
      "post": {
        "operationId": "quoteAd",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdQuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdQuote"
                }
              }
            },
            "description": "The quote"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "not_found: the JSON API is switched off (feat_api), or no order has this secret"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "too_large: the body is larger than 64 KB"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          }
        },
        "summary": "Price, eligibility, availability and hold; no side effects"
      }
    },
    "/api/v1/ads/slots": {
      "get": {
        "operationId": "listAdSlots",
        "parameters": [
          {
            "description": "category slug or id, or guide id or slug, for scoped slots",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdSlots"
                }
              }
            },
            "description": "Active slots"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "not_found: the JSON API is switched off (feat_api), or no order has this secret"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdRefusal"
                }
              }
            },
            "description": "Refused: a machine-readable code plus the web form's message"
          }
        },
        "summary": "Ad slots, prices and availability"
      }
    },
    "/api/v1/comparisons.json": {
      "get": {
        "operationId": "listComparisons",
        "parameters": [
          {
            "description": "0 drops sponsored items (at most one per 20 items otherwise)",
            "in": "query",
            "name": "sponsored",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "comparisons": {
                      "items": {
                        "$ref": "#/components/schemas/Comparison"
                      },
                      "type": "array"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "generated": {
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "generated",
                    "count",
                    "comparisons"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Comparisons whose services are all listed"
          }
        },
        "summary": "Stored comparisons"
      }
    },
    "/api/v1/delisted.json": {
      "get": {
        "operationId": "listDelisted",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "delisted": {
                      "items": {
                        "$ref": "#/components/schemas/Delisted"
                      },
                      "type": "array"
                    },
                    "generated": {
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "generated",
                    "count",
                    "delisted"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Removed services with at least two working source links"
          }
        },
        "summary": "Public delisted record"
      }
    },
    "/api/v1/services.json": {
      "get": {
        "operationId": "listServices",
        "parameters": [
          {
            "description": "category slug",
            "in": "query",
            "name": "cat",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "0 drops sponsored items (at most one per 20 items otherwise)",
            "in": "query",
            "name": "sponsored",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "generated": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "services": {
                      "items": {
                        "$ref": "#/components/schemas/Service"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "generated",
                    "count",
                    "services"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Listed services, by name"
          }
        },
        "summary": "All listed services"
      }
    },
    "/api/v1/services/{slug}.json": {
      "get": {
        "operationId": "getService",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDetail"
                }
              }
            },
            "description": "The service"
          },
          "404": {
            "description": "Not found (drafts and unknown slugs)"
          }
        },
        "summary": "One listed or delisted service with asks and sources"
      }
    },
    "/c/{cat}/feed.xml": {
      "get": {
        "operationId": "categoryFeed",
        "parameters": [
          {
            "in": "path",
            "name": "cat",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "0 drops sponsored items (at most one per 20 items otherwise)",
            "in": "query",
            "name": "sponsored",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "RSS"
          },
          "404": {
            "description": "Not found (drafts and unknown slugs)"
          }
        },
        "summary": "RSS 2.0 for one category"
      }
    },
    "/feed.xml": {
      "get": {
        "operationId": "feed",
        "parameters": [
          {
            "description": "0 drops sponsored items (at most one per 20 items otherwise)",
            "in": "query",
            "name": "sponsored",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "RSS"
          }
        },
        "summary": "RSS 2.0: new listings and grade changes"
      }
    }
  },
  "servers": [
    {
      "url": "https://nokychub.com"
    }
  ]
}
