A Python script providing access to FullContact's API. Requires Requests, and a FullContact API key. Run with `python -i` to make it a CLI. Or, check out `https://github.com/garbados/fullcontact.py` for a more robust interface.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
api_key = 'your_api_key' | |
url = "https://api.fullcontact.com/v2/person.json" | |
def whois(**kwargs): | |
if 'apiKey' not in kwargs: | |
kwargs['apiKey'] = api_key | |
r = requests.get(url, params=kwargs) | |
return json.loads(r.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not noted here, but this code assumes you're calling
whois
withemail
as akwarg
:You should be able to send any API argument as a kwarg.