Usage Guide
This section provides detailed descriptions of all the ways aiograpi can be used. If you are new to aiograpi, the
Getting Started page provides a gradual introduction of the basic functionality with examples.
Public vs Private Requests
- Many
_gqlmethods use public web GraphQL, whileuser_medias*_gql()first uses the private app timeline and falls back to public GraphQL onClientError. Legacy?__a=1helpers were removed because that public web response is no longer reliable. Private(authorized request via mobile api) methods have_v1suffix
With private authorization or a saved session, media_info() and user_info() try the private mobile API first and fall back to public web lookup. Without it, they try public web lookup first, then the private API if that lookup fails. Cached results can avoid a new request.
Detailed Sections
- Index
- Getting Started
- Interactions
Media- Publication (also called post): Photo, Video, Album, IGTV and ReelsResource- Part of Media (for albums)MediaOembed- Short version of MediaAccount- Full private info for your account (e.g. email, phone_number)User- Full public user dataUserShort- Short public user data (used in Usertag, Comment, Media, Direct Message)Usertag- Tag user in Media (coordinates + UserShort)Location- GEO location (GEO coordinates, name, address)Hashtag- Hashtag object (id, name, picture)Collection- Collection of medias (name, picture and list of medias)Comment- Comments to MediaHighlight- HighlightsStory- StoryStoryLink- Link (Swipe up)StoryLocation- Tag Location in Story (as sticker)StoryMention- Mention users in Story (user, coordinates and dimensions)StoryHashtag- Hashtag for story (as sticker)StorySticker- Tag sticker to story (for example from giphy)StoryBuild- StoryBuilder return path to photo/video and mention co-ordinatesDirectThread- Thread (topic) with messages in Direct MessageDirectMessage- Message in Direct MessageInsight- Insights for a postTrack- Music track (for Reels/Clips)- Best Practices
- Development Guide
- Handle Exceptions
- Exceptions