Get Element

Get element with specified id.

Get Element

GET undefined/api/v2/elements/:element_id

Path Parameters

NameTypeDescription

element_id

string

Element ID.

Query Parameters

NameTypeDescription

include

string

Include additional relation to the response. For example, include=stats adds element stats to the response. Possible values: stats.

Headers

NameTypeDescription

Authorization

string

Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb

Content-Type

string

application/vnd.api+json

Check below examples of responses for different types of elements.

Example

The response depends on the type of element, see examples below.

curl --request GET \
  --url https://environment.lvis.io/api/v2/elements/2862e114-2fa9-47ae-8774-2ba0b27f1887 \
  --header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
  --header 'Content-Type: application/vnd.api+json'

Get data element

curl --request GET \

  --header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
  --header 'Content-Type: application/vnd.api+json'

Get prediction element with stats included

curl --request GET \

  --header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
  --header 'Content-Type: application/vnd.api+json'

Element attributes described in the Element Resource section.