How do I configure the git hub search api to search my profile

I recently started making my portfolio and would like to add something similar to looking for repositories that I have with the github API but I have no idea how to make it work.

I used this code based on the documentation:

import requests

headers = {
    'Authorization': 'Token <my-token>'
}

response = requests.get('https://api.github.com/users/<my-nickname>', headers=headers)

print(response.json())