Retrieve a List of Instances with Their Field Values

Retrieve all instances of a concept with their field values through the Typed Read API.

1 min read

From example Create an Object.

Retrieve the list of all countries with their field values

Build the request

  • HTTP URL: https://<your-instance>.yooi.io/api/store/type/Country
  • HTTP method: GET

Retrieve all countries

curl -X 'GET' \
  'https://<your-instance>.yooi.io/api/store/type/Country' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer {integrationToken}'

Review the response

[
  {
    "id": "9d8126bb-4cde-4410-8eb3-77885aacc8f7",
    "href": "/api/store/type/Country/id/9d8126bb-4cde-4410-8eb3-77885aacc8f7",
    "created-at": 1652446363439,
    "functional-id": "1",
    "name": [
      {
        "type": "paragraph",
        "children": [
          {
            "text": "France"
          }
        ]
      }
    ],
    "population": 67340000,
    "updated-at": 1652449407750
  },
  {
    "id": "5a8e7bda-b33b-4ef2-8383-9e0de67f6ace",
    "href": "/api/store/type/Country/id/5a8e7bda-b33b-4ef2-8383-9e0de67f6ace",
    "created-at": 1652446387646,
    "functional-id": "2",
    "name": [
      {
        "type": "paragraph",
        "children": [
          {
            "text": "Spain"
          }
        ]
      }
    ],
    "population": 47350000,
    "updated-at": 1652449400733
  },
  {
    "id": "5f4bc9ec-adbc-4528-9b2f-0ce30f1cf140",
    "href": "/api/store/type/Country/id/5f4bc9ec-adbc-4528-9b2f-0ce30f1cf140",
    "created-at": 1652446417416,
    "functional-id": "3",
    "name": [
      {
        "type": "paragraph",
        "children": [
          {
            "text": "Germany"
          }
        ]
      }
    ],
    "population": 83240000,
    "updated-at": 1652449396319
  }
]

Read more

Related articles

Was this page helpful?