Get Lineage
Retrieve the lineage graph for an entity by ID or fully qualified name
GET
GET /v1/lineage/{entityType}/{id}
Get Lineage
Retrieve the lineage graph for an entity, including upstream and downstream edges. You can query by entity ID or fully qualified name.The Python examples on this page use the original client (
metadata.ingestion.ometa.ometa_api.OpenMetadata) because SDK 2.0 (metadata.sdk) doesn’t include lineage operations. For more information, see Which Python SDK Should I Use?.Get by Entity Type and ID
Type of the entity. Options:
table, dashboard, pipeline, topic, mlmodel, container, searchIndex, storedProcedure, dashboardDataModel, apiEndpoint.Get by Entity Type and FQN
UseGET /v1/lineage/{entityType}/name/{fqn} to retrieve lineage by fully qualified name.
Type of the entity. Options:
table, dashboard, pipeline, topic, mlmodel, container, searchIndex, storedProcedure, dashboardDataModel, apiEndpoint.Fully qualified name of the entity (e.g.,
sample_data.ecommerce_db.shopify.dim_customer).GET /v1/lineage/{entityType}/{id}
Returns
Returns the lineage graph centered on the requested entity, including upstream and downstream edges up to the specified depth.Response
Edges pointing away from the center entity (data destinations). Same structure as
upstreamEdges.Permissions
Lineage results are filtered to the assets the caller can view. The caller needsViewBasic on the entity. Collate drops lineage neighbours the caller cannot view.