Skip to main content
Every endpoint returns JSON with a fixed shape. Each API’s shape is published as an OpenAPI 3.1 spec at https://clair.im/openapi/<api>.json, for example glassdoor.json. Generate your types from it, or validate against it.

Fields are always present

Every field in the schema is in every response. When the page does not show a value, the field is null. It is never left out. Each response is checked against its schema before it is sent. If a page changes and a value no longer fits its field, you get null in that field, never a value of the wrong type.

Changes we make without notice

These changes keep working code working. Write your client to tolerate them:
  • New fields. Ignore fields you do not know.
  • New values in a set. A field such as workplace_type lists the values it sends today. Handle an unknown value, for example by treating it like null.
  • Fields filled more often. A field that was often null may start carrying a value.

Changes we do not make to an endpoint

  • Removing or renaming a field.
  • Changing a field’s type, for example from a number to a string.
  • Making a field that is never null nullable.
  • Changing a fixed value, such as engine.