Skip to main content

Quickstart

Make your first request in under a minute. One API key works for both networks.

1. Get an API key​

Sign up — the free trial includes 100 API calls, no credit card required. Your key is available in the dashboard.

2. Instagram​

Base URL: https://api.getsocialapi.com/v1

curl https://api.getsocialapi.com/v1/ig/user/username_info/durov \
-H "X-API-Key: gsa_live_..."

Response:

{
"user": {
"pk": "504383257",
"username": "durov",
"full_name": "Du Rove",
"follower_count": 1781163,
"is_verified": true
}
}

Python SDK — pip install git+https://github.com/GetSocialAPI/Instagram-Scraper-API.git — full SDK reference:

from getsocialapi import Client

client = Client(api_key="gsa_live_...")

# No cookies. No accounts.
client.instagram.user_by_username("durov")

3. Facebook​

Base URL: https://api.getsocialapi.com/fb

curl -G "https://api.getsocialapi.com/fb/resolve" \
--data-urlencode "url=https://www.facebook.com/groups/freegarden/" \
-H "X-API-Key: gsa_live_..."
# {"url": "...", "group_id": "800246542990860"}
# A 404 means the object does not exist or is not accessible.

# Profile links work the same way:
curl -G "https://api.getsocialapi.com/fb/resolve/profile" \
--data-urlencode "url=https://www.facebook.com/nasa" \
-H "X-API-Key: gsa_live_..."

Python SDK — pip install git+https://github.com/GetSocialAPI/Facebook-Scraper-API.git — full SDK reference:

from getsocialapi_facebook import Client

client = Client(api_key="gsa_live_...")

group = client.fb.resolve("https://www.facebook.com/groups/freegarden/")
page = client.fb.members(group["group_id"]) # одна страница из 15 участников;
# обходите дальше сами: page["data"]["group"]["group_member_profiles"]
# → page_info.end_cursor передавайте как after, пока has_next_page истинно