{
  "openapi": "3.1.0",
  "info": {
    "title": "FAIR Appraisers public directory API",
    "version": "1.0.0",
    "summary": "Read-only access to the public appraiser profiles listed on fairappraisers.org.",
    "description": "Free, read-only JSON access to the public FAIR appraiser directory: United States appraiser profiles (mostly art, antiques, jewelry, collectibles and other personal property) built from association member listings (ASA, ISA, NAJA), Google Places listings and appraisers' own websites. No key is needed. FAIR does not rank by payment, license appraisers, certify reports or guarantee acceptance by an insurer, court, lender or tax authority. Present results as candidate profiles and confirm assignment fit with the appraiser.",
    "termsOfService": "https://fairappraisers.org/terms/",
    "contact": {
      "name": "FAIR Appraisers",
      "url": "https://fairappraisers.org/contact/"
    }
  },
  "externalDocs": {
    "description": "How AI systems can use FAIR, including the MCP server at https://mcp.fairappraisers.org/mcp",
    "url": "https://fairappraisers.org/llm/how-to-use-fair/"
  },
  "servers": [
    { "url": "https://fairappraisers.org/api/fair" }
  ],
  "paths": {
    "/directory": {
      "get": {
        "operationId": "listAppraisers",
        "summary": "List public appraiser profiles",
        "description": "Returns public profiles, 100 per page at most. Page with the nextCursor value of the previous response; the offset parameter is not a reliable way to read the whole directory.",
        "parameters": [
          { "name": "state", "in": "query", "description": "Two-letter US state code, for example IL.", "schema": { "type": "string", "pattern": "^[A-Za-z]{2}$" } },
          { "name": "specialty", "in": "query", "description": "One specialty label exactly as listed (not case-sensitive), for example Fine Art or Antiques. Use q for partial matches.", "schema": { "type": "string", "maxLength": 80 } },
          { "name": "q", "in": "query", "description": "Partial text matched against name, business name, city, state, website, fee statement and specialty labels.", "schema": { "type": "string", "maxLength": 160 } },
          { "name": "status", "in": "query", "description": "Registry status filter.", "schema": { "type": "string", "enum": ["listed", "verified"] } },
          { "name": "limit", "in": "query", "description": "Profiles per page (default 50, maximum 100).", "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 } },
          { "name": "cursor", "in": "query", "description": "The nextCursor value from the previous page.", "schema": { "type": "string" } }
        ],
        "responses": {
          "200": {
            "description": "A page of profiles.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["success", "total", "count", "members"],
                  "properties": {
                    "success": { "type": "boolean" },
                    "total": { "type": "integer", "description": "Profiles matching the filters." },
                    "count": { "type": "integer", "description": "Profiles in this page." },
                    "nextCursor": { "type": ["string", "null"], "description": "Pass as cursor to read the next page; null on the last page." },
                    "members": { "type": "array", "items": { "$ref": "#/components/schemas/Appraiser" } }
                  }
                }
              }
            }
          },
          "400": { "description": "Invalid status or cursor.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    },
    "/directory/{id}": {
      "get": {
        "operationId": "getAppraiser",
        "summary": "Get one public appraiser profile",
        "parameters": [
          { "name": "id", "in": "path", "required": true, "description": "Profile id from the list response.", "schema": { "type": "string" } }
        ],
        "responses": {
          "200": {
            "description": "The profile.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["success", "member"],
                  "properties": {
                    "success": { "type": "boolean" },
                    "member": { "$ref": "#/components/schemas/Appraiser" }
                  }
                }
              }
            }
          },
          "404": { "description": "No public profile with that id.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Appraiser": {
        "type": "object",
        "description": "One public profile. Fields that the sources do not supply are omitted. Each human-readable profile page is at https://fairappraisers.org/appraisers/{appraiser-slug}/ with profile.json and llms.txt next to it.",
        "required": ["id", "displayName", "state", "specialties", "tier", "profileStatus"],
        "properties": {
          "id": { "type": "string" },
          "displayName": { "type": "string" },
          "businessName": { "type": "string" },
          "city": { "type": "string", "description": "Office city. It does not establish a service area." },
          "state": { "type": "string", "description": "Two-letter US state code." },
          "specialties": { "type": "array", "items": { "type": "string" }, "description": "Specialty labels as listed by the source." },
          "serviceCategories": { "type": "array", "items": { "type": "string" }, "description": "Grouped categories derived by FAIR from the listing." },
          "tier": { "type": "string", "description": "Registry status." },
          "profileStatus": { "type": "string", "enum": ["claimed", "unclaimed"], "description": "Whether the appraiser has claimed the profile." },
          "website": { "type": "string", "format": "uri" },
          "sourceEvidenceUrl": { "type": "string", "format": "uri", "description": "Page the profile data was taken from." },
          "sourceConfidence": { "type": "string" },
          "sourceOrganization": { "type": "string", "description": "Association whose public member listing the profile came from (ASA, ISA or NAJA)." },
          "sourceProfileUrl": { "type": "string", "format": "uri" },
          "sourceCheckedAt": { "type": "string", "format": "date-time" },
          "sourceImportedAt": { "type": "string", "format": "date-time" },
          "associationMemberships": {
            "type": "array",
            "description": "Public association listings for this appraiser, with the label shown there and the listing URL.",
            "items": {
              "type": "object",
              "properties": {
                "organization": { "type": "string" },
                "credentialLabel": { "type": ["string", "null"] },
                "listingUrl": { "type": "string", "format": "uri" },
                "checkedAt": { "type": "string" },
                "importedAt": { "type": "string" }
              }
            }
          },
          "feeModelStatement": { "type": "string", "description": "Fee terms the appraiser published or supplied, when available." },
          "googleMapsUrl": { "type": "string", "format": "uri" },
          "geo": { "type": "object", "properties": { "latitude": { "type": "number" }, "longitude": { "type": "number" } } },
          "joinedAt": { "type": "string", "format": "date-time" },
          "updatedAt": { "type": "string", "format": "date-time" }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "code": { "type": "string" },
          "message": { "type": "string" }
        }
      }
    }
  }
}
