{
    "documentation_version": 1,
    "base_url": "https://c7dev.com",
    "instructions_url": "https://c7dev.com/api_instructions",
    "selection": {
        "method": "GET",
        "parameter": "api",
        "required": false,
        "description": "Omit api for the full suite, or use an endpoint name for its instructions only.",
        "example_url": "https://c7dev.com/api_instructions?api=media_api"
    },
    "instructions": [
        "Choose an endpoint by its description, then use its documented HTTP method and parameter location.",
        "URL-encode GET query values. Preserve identifiers such as VAT numbers and registration codes as strings.",
        "For JSON APIs, require HTTP success and result=true before using returned data. Read error_message on failure.",
        "Do not fabricate missing data or treat null as zero or false. Warnings may indicate incomplete or older data.",
        "Do not blindly retry invalid input or access errors. Temporary service failures may be retried with bounded backoff.",
        "Responses prohibit browser caching. Inspect cached, timestamps and X-API-Version when those fields are available."
    ],
    "authentication": {
        "documentation": "Public; no token is required to read these instructions.",
        "restricted_endpoints": "Supply credentials provided by the API operator when access control requires them.",
        "token_locations": [
            "Authorization: Bearer YOUR_ACCESS_TOKEN",
            "X-Access-Token: YOUR_ACCESS_TOKEN",
            "access_token query or form parameter"
        ],
        "domain": "Send domain as a query or form parameter when the client token is restricted to registered domains. Access may also be restricted by IP.",
        "ai_generate": "Requires both access_token and domain in the form body."
    },
    "json_response_envelope": {
        "result": "boolean; request succeeded",
        "error": "boolean; request failed",
        "error_message": "string; empty on success",
        "server_time": "integer; Unix timestamp in seconds"
    },
    "errors": {
        "400": "Missing or invalid input.",
        "403": "Access denied; check token, registered domain and IP permissions.",
        "404": "Unknown API selected for instructions.",
        "405": "Unsupported method for the instructions endpoint.",
        "500": "Processing failed.",
        "503": "Service temporarily unavailable."
    },
    "apis": [
        {
            "name": "geocoding_api",
            "method": "POST",
            "path": "/geocoding_api",
            "description": "Forward geocoding for addresses and reverse geocoding for latitude/longitude coordinates with normalized address fields.",
            "instructions_url": "https://c7dev.com/api_instructions?api=geocoding_api",
            "request": {
                "parameter_location": "form_body",
                "parameters": {
                    "geocoding_value": {
                        "type": "string",
                        "required": true,
                        "description": "Address text for forward lookup, or latitude,longitude for reverse lookup."
                    },
                    "geocoding_country": {
                        "type": "string",
                        "required": false,
                        "description": "Two-letter country code. Include for address searches to constrain results."
                    },
                    "geocoding_required_fields": {
                        "type": "array",
                        "required": false,
                        "description": "Required nonempty address fields; send as geocoding_required_fields[].",
                        "items": "string"
                    }
                },
                "content_types": [
                    "application/x-www-form-urlencoded"
                ]
            },
            "response": {
                "format": "application/json",
                "headers": {
                    "X-API-Version": "geocoding_api_v2"
                }
            },
            "details": {
                "Country parameter": "geocoding_country accepts a 2-letter country code; use it for address lookups to constrain the result",
                "Input formats": "Address text, or coordinates such as 54.6872,25.2797",
                "Optional fields filter": "geocoding_required_fields[] can require fields such as street, house, locality, city, administrative_division, state or postcode",
                "Returns": "formatted address, coordinates, country/country_code, street, house, locality, city, administrative_division, state and postcode"
            },
            "notes": [
                "Send form fields in a POST body, not a raw JSON body.",
                "Coordinates are latitude first, longitude second."
            ],
            "examples": [
                {
                    "method": "POST",
                    "url": "https://c7dev.com/geocoding_api",
                    "body": {
                        "geocoding_value": "Gedimino pr. 1, Vilnius",
                        "geocoding_country": "LT"
                    }
                },
                {
                    "method": "POST",
                    "url": "https://c7dev.com/geocoding_api",
                    "body": {
                        "geocoding_value": "54.6872,25.2797"
                    }
                }
            ]
        }
    ],
    "result": true,
    "error": false,
    "error_message": "",
    "server_time": 1791673004
}