Help with API requests

Talk about whatever

2 posts • Page 1 of 1

Postby Js910 » Thu Nov 17, 2022 7:32 pm

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

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()
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.

Postby arkasha » Fri Nov 18, 2022 5:14 pm

check your https://wigle.net/account page for keys and details.

2 posts • Page 1 of 1

Return to “General Grabbag”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 8 guests