---
title: "Get resources that are related to a resource identified by IRI"
method: POST
path: "/metadata/relationships/{owner}/iri"
tags: ["catalog relationships"]
---

# Get resources that are related to a resource identified by IRI

`POST /metadata/relationships/{owner}/iri`

If a resource A is related to resource B and C, this endpoint will return B and C. See request body for further filtering options.

## Path parameters

- `owner` string, required

## Query parameters

- `iri` string, required
- `hydrations` boolean
- `limit` integer
- `next` string

## Request body

- RelationshipGetRequestByIri
  - `byRelationTypes` string[] — Filter by these relation types. Relation types are identified by their IRI.
  - `byResourceTypes` string[] — Filter by these resource types. Resource types are identified by their IRI.

## Response `200`

default response

- PaginatedGenericResultsMetadataResourceDtoV2
  - `consistent` boolean
  - `count` integer
  - `hydrations` PubSearchHydrations
    - `agents` object
    - `catalogConcepts` object
    - `collections` object
    - `properties` object
    - `relationships` object
    - `resourceHierarchy` object
  - `next` string
  - `records` MetadataResourceDtoV2[]
    - `category` string
    - `collections` string[]
    - `created` string, date-time, required
    - `id` string
    - `iri` string
    - `owner` string
    - `properties` object — All properties of the resource that are associated with a metadata presentation. Key is the IRI of the property. Value is the value of the property.
    - `relationshipTypes` string[]
    - `resourceDetails` ResourceDetails
      - `typeDetails` TypeDetails
        - `id` string
        - `label` string
        - `subtypeOf` string
    - `title` string
    - `updated` string, date-time, required
    - `url` string, uri

---

[API](https://skmtc.net/data/apis/data-world-public-api.md) · [All operations](https://skmtc.net/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/data/data-world-public-api/versions/0a0cb1f94dad/schema)
