Libraries
Official libraries cover both networks with the same API key. They are thin clients: auth, retries, pagination and typed errors — raw JSON in, raw JSON out.
| Library | Platform | Install | Source |
|---|---|---|---|
getsocialapi | pip install git+https://github.com/GetSocialAPI/Instagram-Scraper-API.git | Instagram-Scraper-API | |
getsocialapi-facebook | pip install git+https://github.com/GetSocialAPI/Facebook-Scraper-API.git | Facebook-Scraper-API |
Both require Python 3.9+ and use requests.
Pick a network
Instagram — Python
Full coverage of the Instagram API — profiles, media, comments and likes, hashtags and search. Endpoints are documented in the Instagram API Reference.
Facebook — Python
Full coverage of the Facebook API — groups, members, profile About and connections. Endpoints are documented in the Facebook API Reference.
Environment variables
| Library | Variable |
|---|---|
getsocialapi | GETSOCIALAPI_API_KEY |
getsocialapi-facebook | GETSOCIALAPI_FB_API_KEY |
export GETSOCIALAPI_API_KEY="gsa_live_..."
Prefer plain HTTP? See the API Reference — the SDKs are a convenience layer over the same REST endpoints.