{
    "openapi": "3.1.0",
    "info": {
        "title": "Stone Buy and Sell public sourcing API",
        "version": "1.0.0",
        "description": "Read-only search over natural stone suppliers, product listings and quarries on stonebuyandsell.com. No key needed. 60 requests per minute and 2,000 per day per client. Contact details are not returned; link the profile URLs so buyers can contact suppliers there. The same data is available as an MCP server at https://www.stonebuyandsell.com/api/mcp.",
        "termsOfService": "https://www.stonebuyandsell.com/terms",
        "contact": {
            "email": "account@stonebuyandsell.com",
            "url": "https://www.stonebuyandsell.com/ai-agents"
        }
    },
    "servers": [
        {
            "url": "https://www.stonebuyandsell.com/api/v1"
        }
    ],
    "paths": {
        "/suppliers": {
            "get": {
                "operationId": "searchSuppliers",
                "summary": "Search stone suppliers",
                "parameters": [
                    {
                        "name": "query",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Stone or product words, e.g. \"calacatta\" or \"black granite\""
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Supplier location, ISO country code, e.g. IT, TR, IN, BR, CN"
                    },
                    {
                        "name": "stone_origin",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Only suppliers with listings from this origin, ISO country code, e.g. IT, TR, IN, BR, CN"
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Category name from /reference/categories"
                    },
                    {
                        "name": "company_type",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "e.g. Factory, Exporter, Quarry Owner"
                    },
                    {
                        "name": "verified_only",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    }
                }
            }
        },
        "/suppliers/{slug}": {
            "get": {
                "operationId": "getSupplier",
                "summary": "Supplier profile with listings",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    },
                    "404": {
                        "description": "Not found or not publicly listed"
                    }
                }
            }
        },
        "/products": {
            "get": {
                "operationId": "searchProducts",
                "summary": "Search stone product listings",
                "parameters": [
                    {
                        "name": "query",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Stone or product words"
                    },
                    {
                        "name": "origin_country",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Stone origin, ISO country code, e.g. IT, TR, IN, BR, CN"
                    },
                    {
                        "name": "supplier_country",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Supplier location, ISO country code, e.g. IT, TR, IN, BR, CN"
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Category name"
                    },
                    {
                        "name": "color",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Color name"
                    },
                    {
                        "name": "finish",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Finish name, e.g. Polished"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    }
                }
            }
        },
        "/products/{id}": {
            "get": {
                "operationId": "getProduct",
                "summary": "One listing",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    },
                    "404": {
                        "description": "Not found or not publicly listed"
                    }
                }
            }
        },
        "/quarries": {
            "get": {
                "operationId": "searchQuarries",
                "summary": "Search quarries by stone and country",
                "parameters": [
                    {
                        "name": "stone",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Stone name or type, e.g. Carrara, granite"
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Quarry country, ISO country code, e.g. IT, TR, IN, BR, CN"
                    },
                    {
                        "name": "query",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Quarry name or region"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    }
                }
            }
        },
        "/quarries/{slug}": {
            "get": {
                "operationId": "getQuarry",
                "summary": "One quarry",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    },
                    "404": {
                        "description": "Not found or not publicly listed"
                    }
                }
            }
        },
        "/reference/{kind}": {
            "get": {
                "operationId": "listReferenceData",
                "summary": "Valid filter values",
                "parameters": [
                    {
                        "name": "kind",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "categories",
                                "stone_types",
                                "colors",
                                "finishes",
                                "company_types",
                                "supplier_countries"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    }
                }
            }
        },
        "/find-company": {
            "get": {
                "operationId": "findCompanyListing",
                "summary": "For a stone company: is it listed, is it claimed, how to manage it",
                "parameters": [
                    {
                        "name": "name",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Company name"
                    },
                    {
                        "name": "website",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Company website or email domain"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid filter value"
                    },
                    "429": {
                        "description": "Rate limit reached"
                    }
                }
            }
        }
    }
}