← All tool references

SEO Tools · not_available

LocalBusiness Schema Generator

LocalBusiness Schema with transparent inputs and reviewable results.

Open public tool

Overview

Category
SEO Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/localbusiness-schema-generator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/localbusiness-schema-generator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

business_name · string · required
Enter business name.
business_type · string · required
Enter business type. Accepted values: LocalBusiness, Restaurant, Store, ProfessionalService.
url · string · required
Enter website url.
phone · string · required
Enter phone.
street · string · required
Enter street.
city · string · required
Enter city.
region · string · required
Enter region.
postal_code · string · required
Enter postal code.
{
    "type": "object",
    "properties": {
        "business_name": {
            "type": "string",
            "description": "Enter business name."
        },
        "business_type": {
            "type": "string",
            "description": "Enter business type.",
            "enum": [
                "LocalBusiness",
                "Restaurant",
                "Store",
                "ProfessionalService"
            ]
        },
        "url": {
            "type": "string",
            "description": "Enter website url."
        },
        "phone": {
            "type": "string",
            "description": "Enter phone."
        },
        "street": {
            "type": "string",
            "description": "Enter street."
        },
        "city": {
            "type": "string",
            "description": "Enter city."
        },
        "region": {
            "type": "string",
            "description": "Enter region."
        },
        "postal_code": {
            "type": "string",
            "description": "Enter postal code."
        }
    },
    "required": [
        "business_name",
        "business_type",
        "url",
        "phone",
        "street",
        "city",
        "region",
        "postal_code"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

json_ld · string
JSON-LD produced by the tool.
properties · array
Schema properties produced by the tool.
validation_notes · array
Validation notes produced by the tool.
{
    "type": "object",
    "properties": {
        "json_ld": {
            "type": "string",
            "description": "JSON-LD produced by the tool."
        },
        "properties": {
            "type": "array",
            "description": "Schema properties produced by the tool."
        },
        "validation_notes": {
            "type": "array",
            "description": "Validation notes produced by the tool."
        }
    },
    "additionalProperties": false
}

LocalBusiness Schema Generator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/localbusiness-schema-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "business_name": "Example Workshop",
    "business_type": "LocalBusiness",
    "url": "https://example.com",
    "phone": "+1-312-555-0199",
    "street": "123 Example Ave",
    "city": "Chicago",
    "region": "IL",
    "postal_code": "60601"
}'
{
    "ok": true,
    "data": {
        "slug": "localbusiness-schema-generator",
        "result": {
            "values": {
                "json_ld": "{\n  \"@context\": \"https://schema.org\",\n  \"@type\": \"LocalBusiness\",\n  \"name\": \"Example Workshop\",\n  \"url\": \"https://example.com\",\n  \"telephone\": \"+1-312-555-0199\",\n  \"address\": {\n    \"@type\": \"PostalAddress\",\n    \"streetAddress\": \"123 Example Ave\",\n    \"addressLocality\": \"Chicago\",\n    \"addressRegion\": \"IL\",\n    \"postalCode\": \"60601\"\n  }\n}",
                "properties": [
                    {
                        "property": "@context",
                        "value": "https://schema.org"
                    },
                    {
                        "property": "@type",
                        "value": "LocalBusiness"
                    },
                    {
                        "property": "name",
                        "value": "Example Workshop"
                    },
                    {
                        "property": "url",
                        "value": "https://example.com"
                    },
                    {
                        "property": "telephone",
                        "value": "+1-312-555-0199"
                    },
                    {
                        "property": "address",
                        "value": "{\"@type\":\"PostalAddress\",\"streetAddress\":\"123 Example Ave\",\"addressLocality\":\"Chicago\",\"addressRegion\":\"IL\",\"postalCode\":\"60601\"}"
                    }
                ],
                "validation_notes": [
                    {
                        "level": "info",
                        "message": "Validate against current Schema.org and search platform requirements."
                    }
                ]
            },
            "display": {
                "display": "{\n  \"@context\": \"https://schema.org\",\n  \"@type\": \"LocalBusiness\",\n  \"name\": \"Example Workshop\",\n  \"url\": \"https://example.com\",\n  \"telephone\": \"+1-312-555-0199\",\n  \"address\": {\n    \"@type\": \"PostalAddress\",\n    \"streetAddress\": \"123 Example Ave\",\n    \"addressLocality\": \"Chicago\",\n    \"addressRegion\": \"IL\",\n    \"postalCode\": \"60601\"\n  }\n}"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.