entities

Returns what a ref names, its parents and children (a model's make and model years, for example), counts, and links to related endpoints. An old alias returns the current ref. Costs 1 credit.

get/v2/entities/{ref}

Request

  • Base URL
    https://api.cardog.app
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

ref, string required

Any ref or alias, e.g. "gvwr:class-5". Either form returns the current ref. Encode any slash in the ref as %2F.

Response

The ref, its parents and children, and links

EntityDetail required
ref, string required

The ref, a permanent ID of the form {domain}:{key}, e.g. "make:tesla"

domain, string required

Entity domain, e.g. "make", "model", "model-year", "fuel-type"

name, string required

Name to show, e.g. "Tesla"

parentRef, string nullable

Ref of the parent, for kinds that nest (the parent of "model:honda/civic" is "make:honda"). Null at the top.

parents, object[]

Parents, nearest first: a model year lists its model, then its make

children, object[]

Direct children, up to a limit. childrenTruncated is true when the list was cut short.

childrenTruncated, boolean

True when children does not list every child; counts.children has the full number

counts, object

Counts of related records, e.g. {"children": 54, "listings": 49086}

links, object

Paths to related endpoints, ready to request, e.g. {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

Changes

    • info

      added the optional property requestId to the response with the status

    • info

      added the optional property requestId to the response with the status

    • info

      added the optional property requestId to the response with the status

    2 more changes in this revision