Help with API requests
I'm trying to query the Wigle API from a jupyter notebook with the code below, but keep receiving the following error: HTTPError: 401 Client Error: Unauthorized for url: https://api.wigle.net/api/v2/network/se ... e=Marriott
I suspect it has something to do with authentication, but in the documentation page on Wigle, I don't see/understand where I would include my api key. Any help would be greatly appreciated.
Code: Select all
import requests
import json
Code: Select all
ssidlike = "Marriott"
url = f"https://api.wigle.net/api/v2/network/search?onlymine=false&freenet=false&paynet=false&ssidlike={ssidlike}"
Code: Select all
response = requests.get(url)
response.raise_for_status()
if response.status_code != 204:
return response.json()
check your https://wigle.net/account page for keys and details.
Who is online
Users browsing this forum: No registered users and 11 guests