Zum Inhalt
HALOWERK

Handelswerk

articles / history median drop

Uses3–60strictly chronological caller-owned same-product/currency price observations within366days. Previous must equal last snapshot. History is explicitly unverified; no independent historical collection or prediction. Fresh HTML price evaluated BEFORE callback against median/min/max/mean/variation safety. Decimal/rational comparisons avoid binary-float boundaries. Existing pinnedHTTPS/robots/9s/at-most-once7dayreceipts unchanged. No FX, VAT, stock or statistical forecast.

POST https://handel.halowerk.com/v1/price/articles/history-median-drop

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
urlstringJa
previousobjectJa
callback_urlstringJa
idempotency_keystringJa
historyarrayJa
drop_percentnumberJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "url",
    "previous",
    "callback_url",
    "idempotency_key",
    "history",
    "drop_percent"
  ],
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2048
    },
    "previous": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "currency"
      ],
      "properties": {
        "value": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        }
      }
    },
    "callback_url": {
      "type": "string",
      "maxLength": 2048
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 32,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$"
    },
    "history": {
      "type": "array",
      "minItems": 3,
      "maxItems": 60,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url",
          "observed_at",
          "value",
          "currency"
        ],
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048
          },
          "observed_at": {
            "type": "string",
            "maxLength": 40
          },
          "value": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          }
        }
      }
    },
    "drop_percent": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
  "previous": {
    "value": 59,
    "currency": "GBP"
  },
  "callback_url": "https://stack.halowerk.com/_top10-endspurt/callback",
  "idempotency_key": "example_replace_with_random_32_character_history_key",
  "history": [
    {
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
      "observed_at": "2026-10-01T00:00:00Z",
      "value": 60,
      "currency": "GBP"
    },
    {
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
      "observed_at": "2026-10-02T00:00:00Z",
      "value": 58,
      "currency": "GBP"
    },
    {
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
      "observed_at": "2026-10-03T00:00:00Z",
      "value": 59,
      "currency": "GBP"
    }
  ],
  "drop_percent": 5
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →