{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/siftwright-com/json-schema/siftwright-com-result-schema.json",
  "title": "Result",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/siftwright-com-api-openapi.json#/components/schemas/Result",
  "type": "object",
  "required": [
    "endpoint",
    "count",
    "billed",
    "results",
    "usage"
  ],
  "properties": {
    "endpoint": {
      "type": "string",
      "enum": [
        "youtube-transcript",
        "screenshot",
        "google-news",
        "pqc-scan",
        "contact-details",
        "tech-stack",
        "app-store-reviews",
        "ats-jobs",
        "domain-whois"
      ]
    },
    "count": {
      "type": "integer",
      "description": "Items returned, including failed ones."
    },
    "billed": {
      "type": "integer",
      "description": "Results counted against your plan."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "description": "Endpoint-specific item. Items usually carry a status field; only successful ones are billed."
      }
    },
    "usage": {
      "$ref": "#/$defs/Usage"
    }
  },
  "$defs": {
    "Usage": {
      "type": "object",
      "properties": {
        "plan": {
          "type": "string"
        },
        "used": {
          "type": "integer"
        },
        "quota": {
          "type": "integer"
        },
        "remaining": {
          "type": "integer"
        },
        "period_end": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}