RentCast · API Governance Rules

RentCast API Rules

Spectral linting rules defining API design standards and conventions for RentCast.

7 Rules error 2 warn 3
View Rules File View on GitHub

Rule Categories

rentcast

Rules

error
rentcast-api-key-auth
RentCast API uses X-Api-Key header authentication
$.components.securitySchemes
warn
rentcast-get-only-operations
RentCast API operations are read-only (GET)
$.paths[*]
hint
rentcast-address-or-coordinates
Property lookup endpoints accept address or lat/lon
$.paths[*].get.parameters[*].name
warn
rentcast-pagination-params
List endpoints should support pagination
$.paths['/properties'].get.parameters[*].name
hint
rentcast-property-type-enum
propertyType parameter should use standard enum values
$.paths[*].get.parameters[?(@.name == 'propertyType')].schema.enum[*]
error
rentcast-response-200-defined
All operations must define a 200 response
$.paths[*][get,post,put,patch,delete].responses
warn
rentcast-summaries-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary

Spectral Ruleset

Raw ↑
extends: spectral:oas

rules:

  rentcast-api-key-auth:
    description: RentCast API uses X-Api-Key header authentication
    message: "API must declare X-Api-Key security scheme"
    severity: error
    given: "$.components.securitySchemes"
    then:
      function: truthy
      field: ApiKeyAuth

  rentcast-get-only-operations:
    description: RentCast API operations are read-only (GET)
    message: "RentCast endpoints should be GET requests only"
    severity: warn
    given: "$.paths[*]"
    then:
      function: schema
      functionOptions:
        schema:
          additionalProperties: false
          properties:
            get: {}
            parameters: {}

  rentcast-address-or-coordinates:
    description: Property lookup endpoints accept address or lat/lon
    message: "Property endpoints should support address or latitude/longitude parameters"
    severity: hint
    given: "$.paths[*].get.parameters[*].name"
    then:
      function: enumeration
      functionOptions:
        values:
          - address
          - latitude
          - longitude
          - city
          - state
          - zipCode
          - radius
          - id

  rentcast-pagination-params:
    description: List endpoints should support pagination
    message: "List operations should include limit and offset parameters"
    severity: warn
    given: "$.paths['/properties'].get.parameters[*].name"
    then:
      function: enumeration
      functionOptions:
        values:
          - limit
          - offset
          - includeTotalCount

  rentcast-property-type-enum:
    description: propertyType parameter should use standard enum values
    message: "propertyType should be one of the standard property type values"
    severity: hint
    given: "$.paths[*].get.parameters[?(@.name == 'propertyType')].schema.enum[*]"
    then:
      function: enumeration
      functionOptions:
        values:
          - Single Family
          - Condo
          - Townhouse
          - Manufactured
          - Multi-Family
          - Apartment
          - Land

  rentcast-response-200-defined:
    description: All operations must define a 200 response
    message: "Operation must define a 200 response"
    severity: error
    given: "$.paths[*][get,post,put,patch,delete].responses"
    then:
      function: truthy
      field: "200"

  rentcast-summaries-title-case:
    description: Operation summaries must use Title Case
    message: "Summary '{{value}}' should use Title Case"
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 &()/-]*$"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/rentcast-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.