Organisation search not working with search api #128138
-
Select Topic AreaQuestion BodyHi Team, Below is my code for code search but no result is coming for my organization. import requests url = "https://api.github.com/search/code?q=org:myorgname+iics&type=code response = requests.request("GET", url,headers=headers) Thanks in Advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi Neha, you have an error in your authorization header. Try it like this: headers = {
"Authorization": "token <YOUR_TOKEN>"
} Also make sure, that your token has the appropriate OAuth scopes / permissions. |
Beta Was this translation helpful? Give feedback.
Hi Neha,
you have an error in your authorization header. Try it like this:
Also make sure, that your token has the appropriate OAuth scopes / permissions.