Skip to content
HALOWERK

Signalwerk

hours site vs osm

Parses OSM opening_hours with an own implementation of the common subset (weekday ranges and lists, several time spans, overnight spans, off/closed, 24/7, later rules overriding earlier ones, additional rules after a comma); month/date/week selectors, school holidays, nth weekdays, variable times and fallback rules are reported as unsupported instead of guessed, PH rules are noted. Reads the website hours from JSON-LD openingHoursSpecification/openingHours, microdata, or – as a flagged.

POST https://signal.halowerk.com/v1/hours-site-vs-osm

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
osm_opening_hoursstringNoThe OSM opening_hours value.
osm_objectstringNoAlternatively an OSM object such as node/123 to read opening_hours from the built-in extract.
urlstringNoPublic page to fetch (robots.txt respected).
htmlstringNoAlready loaded HTML (nothing is fetched).
base_urlstringNoURL the HTML was loaded from (required with html).
site_hoursstringNoAlternatively the website hours in schema.org/OSM syntax (Mo-Fr 09:00-18:00).
business_namestringNoSelects the matching JSON-LD object if a page lists several businesses.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "osm_opening_hours": {
      "type": "string",
      "minLength": 2,
      "maxLength": 1000,
      "description": "The OSM opening_hours value."
    },
    "osm_object": {
      "type": "string",
      "pattern": "^(node|way)/\\d{1,12}$",
      "description": "Alternatively an OSM object such as node/123 to read opening_hours from the built-in extract."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Public page to fetch (robots.txt respected)."
    },
    "html": {
      "type": "string",
      "minLength": 20,
      "maxLength": 3000000,
      "description": "Already loaded HTML (nothing is fetched)."
    },
    "base_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "URL the HTML was loaded from (required with html)."
    },
    "site_hours": {
      "type": "string",
      "minLength": 2,
      "maxLength": 1000,
      "description": "Alternatively the website hours in schema.org/OSM syntax (Mo-Fr 09:00-18:00)."
    },
    "business_name": {
      "type": "string",
      "maxLength": 120,
      "description": "Selects the matching JSON-LD object if a page lists several businesses."
    }
  }
}

Open original schema

Published input example

{
  "osm_opening_hours": "Mo-Fr 08:00-18:00; Sa 09:00-13:00",
  "base_url": "https://halowerk.com/",
  "html": "<html><head><script type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"Bakery\",\"name\":\"Bäckerei Beispiel\",\"openingHours\":[\"Mo-Fr 08:00-18:00\",\"Sa 09:00-14:00\"]}</script></head><body></body></html>"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →