GettiyHikerAPI Working with Osintgram in Termux
Getting HikerAPI Working with Osintgram in Termux I've been experimenting with running Osintgram from Termux on Android and connecting it to HikerAPI. The setup had a few confusing parts because Osintgram contains different API-related components. At first, I was checking the "hikerapi" Python package and its "Client" class, but the main Osintgram code also uses "instagram_private_api". After…
Osintgram has been tested on Termux Android to run HikerAPI. The integration proved to be complex due to the various API components within Osintgram. Initially, the focus was on the HikerAPI Python package and its Client class, but the main code also utilized instagram_private_api. The HikerAPI integration resides in the src/hikercli.py file, where the client is set up with an access token.
The initial issue encountered was an unauthorized-request message, which was traced back to the HikerAPI token. Once the token was configured correctly, the response indicated that the account needed to be topped up, suggesting that the API authentication was working correctly, and the remaining issue was account credit rather than a Python installation problem. The basic API request format is as follows:
import requests
headers = { 'x-access-key': 'YOUR_KEY' }
r = requests.get( 'https://api.hikerapi.com/v2/user/by/username?username=natgeo', headers=headers )
print(r.json())
Identifying the exact API client used by Osintgram was challenging, as it seemed unclear from just reviewing the installed Python packages. Despite the difficulties, the setup process was enlightening and provided insight into how various components interact within this specific configuration.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.