This page assumes you know how to use the Power Query editor and how to find the Cognite Data Fusion (CDF) API endpoint and request body you need. See the Cognite API introduction.
GetCDF
Use this function to fetch data from Cognite APIs using the HTTP GET method. The function auto-paginates CDF until the request cursor is exhausted. For optimal performance, see the Cognite API specifications for endpoints that support this HTTP method and the maximum supported page size for each endpoint.PostCDF
Use this function to fetch data from Cognite APIs using the HTTP POST method. The function auto-paginates CDF until the request cursor is exhausted. For optimal performance, see the Cognite API specifications for endpoints that support this HTTP method.The
PostCDF function offers auto-pagination for simple requests that expect a cursor field (string) at the top level of the request body. For more complex requests, write a custom pagination logic using the Power Query M language. See Power Query functions and example queries.GraphQL
Use this function to fetch data from a CDF data model using GraphQL.The GraphQL function offers auto-pagination for GraphQL queries that include only one query expression with one pagination target, identified by the
after: $cursor and pageInfo { hasNextPage endCursor } fields.For more complex queries, write a custom pagination logic using the Power Query M language. See Power Query functions and example queries. Always test the queries and variables in Power BI with CDF Query Explorer to ensure they’re correct.ODataCDF
Use this function to fetch data from the data modeling OData service by URL path. SetapiVersion to "20230821". If you omit it, the function uses "v1", the asset-centric OData service, which is deprecated. Move existing v1 queries to the data modeling OData service. To read a data model without building the path yourself, use ODataDataModel.