Last active
October 6, 2021 13:13
-
-
Save RizqiEka/a8e2c5f5aec94d9cf03f165ba9efe4f4 to your computer and use it in GitHub Desktop.
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
# Define URL | |
url = params['endpoint_base'] + params['instagram_account_id'] + '/media' | |
# Define Endpoint Parameters | |
endpointParams = dict() | |
endpointParams['fields'] = 'id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username,like_count,comments_count' | |
endpointParams['access_token'] = params['access_token'] | |
# Requests Data | |
data = requests.get(url, endpointParams ) | |
basic_insight = json.loads(data.content) | |
basic_insight |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment