{
    "openapi": "3.1.0",
    "info": {
        "title": "Digitalex API",
        "version": "1.0.0",
        "description": "Public read-only API of Digitalex (digitalex.co.il), an Israeli performance digital marketing agency. Business details, services, published pricing, case studies, FAQ and site search. No authentication. Rate limit 120 requests/60s per client.",
        "contact": {
            "name": "Digitalex",
            "email": "info@digitalex.co.il",
            "url": "https://www.digitalex.co.il/developers"
        },
        "license": {
            "name": "Content (c) Digitalex. Free to read and quote with attribution.",
            "url": "https://www.digitalex.co.il/"
        }
    },
    "servers": [
        {
            "url": "https://www.digitalex.co.il/api/v1"
        }
    ],
    "security": [],
    "externalDocs": {
        "url": "https://www.digitalex.co.il/developers",
        "description": "Digitalex API docs"
    },
    "paths": {
        "/business": {
            "get": {
                "operationId": "getBusinessInfo",
                "summary": "Business info",
                "description": "Name, description, founder, address, phone, email, hours and official profiles.",
                "tags": [
                    "Digitalex"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Business"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        },
        "/services": {
            "get": {
                "operationId": "listServices",
                "summary": "List services",
                "description": "Marketing services Digitalex sells, with page URLs.",
                "tags": [
                    "Digitalex"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ServiceList"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        },
        "/pricing": {
            "get": {
                "operationId": "getPricing",
                "summary": "Published pricing",
                "description": "Monthly price ranges in ILS as published on the pricing page.",
                "tags": [
                    "Digitalex"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pricing"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        },
        "/case-studies": {
            "get": {
                "operationId": "listCaseStudies",
                "summary": "List case studies",
                "description": "Published client case studies, cursor-paginated.",
                "tags": [
                    "Digitalex"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Items per page (1-50, default 20)",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 20
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "next_cursor from the previous page",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CaseStudyPage"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        },
        "/case-studies/{slug}": {
            "get": {
                "operationId": "getCaseStudy",
                "summary": "Get a case study",
                "description": "One case study by slug.",
                "tags": [
                    "Digitalex"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "description": "Case study slug, e.g. five-tlv",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CaseStudy"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        },
        "/faq": {
            "get": {
                "operationId": "listFaq",
                "summary": "FAQ",
                "description": "Questions and answers shown on the homepage (Hebrew).",
                "tags": [
                    "Digitalex"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/FaqList"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        },
        "/search": {
            "get": {
                "operationId": "searchSite",
                "summary": "Search the site",
                "description": "Full-text search over published posts and pages.",
                "tags": [
                    "Digitalex"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Search words, 2+ characters",
                        "schema": {
                            "type": "string",
                            "minLength": 2
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (1-20, default 10)",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20,
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SearchResults"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "404": {
                        "$ref": "#/components/responses/Problem"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    },
                    "500": {
                        "$ref": "#/components/responses/Problem"
                    }
                }
            }
        }
    },
    "components": {
        "responses": {
            "Problem": {
                "description": "Error (RFC 9457)",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            },
            "RateLimited": {
                "description": "Rate limited",
                "headers": {
                    "Retry-After": {
                        "description": "Seconds to wait",
                        "schema": {
                            "type": "integer"
                        }
                    }
                },
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Problem"
                        }
                    }
                }
            }
        },
        "schemas": {
            "Problem": {
                "type": "object",
                "required": [
                    "type",
                    "title",
                    "status",
                    "code",
                    "detail"
                ],
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "integer"
                    },
                    "code": {
                        "type": "string",
                        "enum": [
                            "not_found",
                            "bad_request",
                            "method_not_allowed",
                            "rate_limited",
                            "server_error"
                        ]
                    },
                    "detail": {
                        "type": "string"
                    },
                    "hint": {
                        "type": "string"
                    }
                }
            },
            "Business": {
                "type": "object",
                "required": [
                    "name",
                    "url",
                    "phone",
                    "email"
                ],
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "alternate_names": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "type": {
                        "type": "string"
                    },
                    "description_he": {
                        "type": "string"
                    },
                    "description_en": {
                        "type": "string"
                    },
                    "founded": {
                        "type": "string"
                    },
                    "founder": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "role": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    },
                    "address": {
                        "type": "object",
                        "properties": {
                            "street": {
                                "type": "string"
                            },
                            "city": {
                                "type": "string"
                            },
                            "postal_code": {
                                "type": "string"
                            },
                            "country": {
                                "type": "string"
                            }
                        }
                    },
                    "phone": {
                        "type": "string"
                    },
                    "phone_local": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "opening_hours": {
                        "type": "string"
                    },
                    "area_served": {
                        "type": "string"
                    },
                    "languages": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "contact_page": {
                        "type": "string",
                        "format": "uri"
                    },
                    "profiles": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uri"
                        }
                    }
                }
            },
            "Service": {
                "type": "object",
                "required": [
                    "id",
                    "name_he",
                    "name_en",
                    "url"
                ],
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name_he": {
                        "type": "string"
                    },
                    "name_en": {
                        "type": "string"
                    },
                    "platforms": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "related_urls": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uri"
                        }
                    }
                }
            },
            "ServiceList": {
                "type": "object",
                "required": [
                    "data"
                ],
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Service"
                        }
                    }
                }
            },
            "Pricing": {
                "type": "object",
                "required": [
                    "currency",
                    "management_fee_monthly"
                ],
                "properties": {
                    "currency": {
                        "type": "string"
                    },
                    "updated": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string",
                        "format": "uri"
                    },
                    "management_fee_monthly": {
                        "type": "object",
                        "properties": {
                            "min": {
                                "type": "number"
                            },
                            "max": {
                                "type": "number"
                            }
                        }
                    },
                    "setup_fee": {
                        "type": "number"
                    },
                    "media_budget_monthly_min": {
                        "type": "number"
                    },
                    "total_monthly_from": {
                        "type": "number"
                    },
                    "notes_en": {
                        "type": "string"
                    }
                }
            },
            "CaseStudy": {
                "type": "object",
                "required": [
                    "slug",
                    "client",
                    "url"
                ],
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "client": {
                        "type": "string"
                    },
                    "work": {
                        "type": "string"
                    },
                    "results": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            },
            "CaseStudyPage": {
                "type": "object",
                "required": [
                    "data",
                    "next_cursor"
                ],
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CaseStudy"
                        }
                    },
                    "next_cursor": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total": {
                        "type": "integer"
                    }
                }
            },
            "FaqList": {
                "type": "object",
                "required": [
                    "data"
                ],
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "q": {
                                    "type": "string"
                                },
                                "a": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            },
            "SearchResults": {
                "type": "object",
                "required": [
                    "data"
                ],
                "properties": {
                    "query": {
                        "type": "string"
                    },
                    "data": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "title": {
                                    "type": "string"
                                },
                                "url": {
                                    "type": "string",
                                    "format": "uri"
                                },
                                "excerpt": {
                                    "type": "string"
                                },
                                "type": {
                                    "type": "string"
                                },
                                "modified": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}