Extraction Schemas

JSON schemas used by AI to extract structured data from HTML

Charge Subscription Schema Default

Type: charge

Default schema for extracting charge subscription products

View JSON Schema
{
    "type": "object",
    "description": "Schema for extracting charge subscription data for PHEV\/EV vehicles",
    "properties": {
        "products": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Product\/subscription name"
                    },
                    "provider": {
                        "type": "string",
                        "description": "Company\/provider name"
                    },
                    "price_monthly": {
                        "type": "number",
                        "description": "Monthly price in DKK"
                    },
                    "price_yearly": {
                        "type": "number",
                        "description": "Yearly price in DKK if available"
                    },
                    "price_refund_pr_kwh": {
                        "type": "number",
                        "description": "The Refund amount per kWh if available. Typically called 'Kwh Refusion' or 'Refusion pr. kWh, or simple refusion'"
                    },
                    "subscription_or_purchase": {
                        "type": "integer",
                        "description": "Is this a rental agreement or a purchase with a one time price? 0 = Subscription, 1 = Purchase"
                    },
                    "kwh_included": {
                        "type": "integer",
                        "description": "kWh included per month"
                    },
                    "kwh_overage_price": {
                        "type": "number",
                        "description": "Price per kWh when exceeding limit. Often called Spot Pris Tillæg or tillæg til spotpris, spottilæg etc."
                    },
                    "charging_speed": {
                        "type": "string",
                        "description": "Max charging speed (e.g., 11kW, 22kW, 150kW)"
                    },
                    "addtional22kw_price": {
                        "type": "number",
                        "description": "If theres an additional price for 22kW charging"
                    },
                    "network": {
                        "type": "string",
                        "description": "Charging network name"
                    },
                    "campaign": {
                        "type": "integer",
                        "description": "Is the price part of an active campaign? 0 = No, 1 = Yes"
                    },
                    "campaign_start": {
                        "type": "datetime",
                        "description": "If the campaign start date is visible else set to null"
                    },
                    "campaign_end": {
                        "type": "datetime",
                        "description": "If the campaign end date is visible else set to null"
                    },
                    "chargecable_included": {
                        "type": "integer",
                        "description": "Is a charge cable included? 0 = No, 1 = Yes"
                    },
                    "service_agreement_included": {
                        "type": "integer",
                        "description": "Is a service agreement included? 0 = No, 1 = Yes"
                    },
                    "service_agreement_extra": {
                        "type": "integer",
                        "description": "Is it possible to purchase a service agreement separately? 0 = No, 1 = Yes"
                    },
                    "service_agreement_extra_price": {
                        "type": "number",
                        "description": "Price for purchasing a service agreement separately if available"
                    },
                    "features": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "List of included features"
                    },
                    "binding_period": {
                        "type": "string",
                        "description": "Contract binding period"
                    },
                    "currency": {
                        "type": "string",
                        "default": "DKK"
                    }
                },
                "required": [
                    "name",
                    "price_monthly"
                ]
            }
        }
    }
}

Power Subscription Schema Default

Type: power

Default schema for extracting power subscription products

View JSON Schema
{
    "type": "object",
    "description": "Schema for extracting power\/electricity subscription data for private residentials",
    "properties": {
        "products": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Product\/subscription name"
                    },
                    "provider": {
                        "type": "string",
                        "description": "Company\/provider name"
                    },
                    "price_monthly": {
                        "type": "number",
                        "description": "Monthly subscription fee in DKK"
                    },
                    "price_per_kwh": {
                        "type": "number",
                        "description": "Price per kWh in DKK"
                    },
                    "price_type": {
                        "type": "string",
                        "enum": [
                            "fixed",
                            "variable",
                            "spot"
                        ],
                        "description": "Pricing model"
                    },
                    "green_energy": {
                        "type": "boolean",
                        "description": "Is it green\/renewable energy"
                    },
                    "features": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "List of included features"
                    },
                    "binding_period": {
                        "type": "string",
                        "description": "Contract binding period"
                    },
                    "currency": {
                        "type": "string",
                        "default": "DKK"
                    }
                },
                "required": [
                    "name"
                ]
            }
        }
    }
}

Note: Schemas define what data the AI should extract from HTML pages. The AI uses these schemas to understand the structure and types of data to look for.