--- title: query_graph description: OpenBB SDK Function --- # query_graph Helper methods for querying graphql api. [Source: https://bitquery.io/] Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L159)] ```python openbb.crypto.onchain.query_graph(url: str, query: str) ``` --- ## Parameters | Name | Type | Description | Default | Optional | | ---- | ---- | ----------- | ------- | -------- | | url | str | Endpoint url | None | False | | query | str | Graphql query | None | False | --- ## Returns | Type | Description | | ---- | ----------- | | dict | Dictionary with response data | ---