Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

How do I write a GET request for an API using Power BI and python?

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    How do I write a GET request for an API using Power BI and python?

  2. Assistant

    You can use the requests library to make HTTP GET requests from Python. It would look something like this: import requests

    response = requests.get('https://example.com/api/ endpoint')

    Then, in Power BI, you would:

    Install the Python visual Add a Python script visual to your report Paste in the code above (editing the URL as needed) Select the response variable to output from the visual

    This will make the GET request when the report is refreshed, and show you the response data in the visual. So the key steps are:

    Use requests to make the GET call in Python Output the response data from the Python script Display the data in the Python visual

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.