Skip to main content

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.

LibraryPlatformInstallSource
getsocialapiInstagrampip install git+https://github.com/GetSocialAPI/Instagram-Scraper-API.gitInstagram-Scraper-API
getsocialapi-facebookFacebookpip install git+https://github.com/GetSocialAPI/Facebook-Scraper-API.gitFacebook-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​

LibraryVariable
getsocialapiGETSOCIALAPI_API_KEY
getsocialapi-facebookGETSOCIALAPI_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.