Skip to content

Instantly share code, notes, and snippets.

@gergo-salyi
Last active June 12, 2023 13:34
Show Gist options
  • Save gergo-salyi/fb52f9c06ba1d598309189d00f778bb0 to your computer and use it in GitHub Desktop.
Save gergo-salyi/fb52f9c06ba1d598309189d00f778bb0 to your computer and use it in GitHub Desktop.
HTTP log of the official Reddit android client (2023 June) loading reddit posts after navigating to a subreddit (some sensitive info replaced, response truncated to 1 post form ca. 25)
POST / HTTP/1.1
X-Reddit-Retry: attempt=0, max=3, algo=full-jitter
x-reddit-compression: 1
X-Reddit-QoS: down-rate-mbps=9.999
X-Reddit-Media-Codecs: available-codecs=video/x-vnd.on2.vp9
Authorization: Bearer XXXredacted000
Client-Vendor-ID: ffffffff-ffff-ffff-ffff-ffffffffaaaa
x-reddit-device-id: ffffffff-ffff-ffff-ffff-ffffffffaaaa
User-Agent: Reddit/Version 2023.00.0/Build 999999/Android 12
X-Dev-Ad-Id: ffffffff-ffff-ffff-ffff-ffffffffbbbb
Device-Name: Android;Android Device
x-reddit-dpr: 1.250
x-reddit-width: 1080
x-reddit-loid: 000000000zzzzzzzzz.0.1686999999999.YYYredacted111
x-reddit-session: zzzzzzzzzzzzzzzzzz.0.1686999999999.ZZZredacted222
Accept-Language: en,en;q=0.9
Content-Type: application/json; charset=utf-8
Content-Length: 999
Host: gql.reddit.com
Connection: Keep-Alive
Accept-Encoding: gzip
{
"id": "3496a5858eb9",
"variables": {
"subredditName": "unixporn",
"sort": "HOT",
"adContext": {
"distance": null,
"layout": "CARD",
"deviceAdId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"clientSignalSessionData": {
"adsSeenCount": 9,
"totalPostsSeenCount": 99,
"sessionStartTime": "2023-00-00T00:00:00.000000+0000"
}
},
"forceAds": {},
"feedFilters": {},
"optedIn": true,
"includeSubredditInPosts": false,
"includeAwards": false,
"feedContext": {
"experimentOverrides": []
},
"includePostStats": true
}
}
{
"data": {
"postFeed": {
"__typename": "Subreddit",
"id": "t5_2sx2i",
"name": "unixporn",
"prefixedName": "r/unixporn",
"isQuarantined": false,
"title": "r/unixporn - the home for *NIX customization!",
"type": "PUBLIC",
"subscribersCount": 499999.0,
"isNsfw": false,
"isSubscribed": false,
"isThumbnailsEnabled": true,
"isFavorite": false,
"path": "/r/unixporn/",
"styles": {
"icon": "https://styles.redditmedia.com/t5_2sx2i/styles/communityIcon_7fixeonxbxd41.png?width=256&height=256&frame=1&auto=webp&crop=256:256,smart&v=enabled&s=518dff953b1cd31c16ca598043744c983a5672c4",
"legacyIcon": {
"__typename": "MediaSource",
"url": "https://b.thumbs.redditmedia.com/CnhYZZXOHEWelwuMAJW_iyPhBvVW5lYhQJHq_FLQ0Ao.png",
"dimensions": {
"width": 256,
"height": 256
}
},
"primaryColor": "#373C3F",
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_2sx2i/styles/bannerBackgroundImage_qhzusrmg7cl61.png?width=390&height=143&frame=1&auto=webp&crop=390:143,smart&v=enabled&s=e4630052f12da673e07415e980e3eea41fd12994",
"legacyBannerBackgroundImage": "",
"legacyPrimaryColor": "#545452"
},
"modPermissions": null,
"isTitleSafe": false,
"isUserBanned": false,
"isMediaInCommentsSettingShown": true,
"allowedMediaInComments": [
"GIPHY",
"STATIC",
"ANIMATED"
],
"isMuted": false,
"isChannelsEnabled": false,
"elements": {
"pageInfo": {
"__typename": "PageInfo",
"hasNextPage": true,
"endCursor": "base64base64ba=="
},
"dist": 6,
"edges": [
{
"node": {
"__typename": "SubredditPost",
"id": "t3_145jgoh",
"createdAt": "2023-06-09T22:53:27.765000+0000",
"editedAt": null,
"title": "[KDE] Windows XP Zune",
"url": "https://i.redd.it/ufc5d9qwn25b1.png",
"content": null,
"domain": "i.redd.it",
"isSpoiler": false,
"isNsfw": false,
"isLocked": false,
"isSaved": false,
"isReactAllowed": false,
"isHidden": false,
"isGildable": true,
"isCrosspostable": true,
"isScoreHidden": false,
"isArchived": false,
"isStickied": false,
"isPollIncluded": false,
"isFollowed": false,
"isContestMode": false,
"distinguishedAs": null,
"voteState": "NONE",
"score": 34.0,
"commentCount": 6.0,
"viewCount": null,
"authorFlair": {
"__typename": "AuthorFlair",
"text": ":Neon:",
"richtext": "[{\"a\":\":Neon:\",\"e\":\"emoji\",\"u\":\"https://emoji.redditmedia.com/mg0hq5vt9r711_t5_2sx2i/Neon\"}]",
"textColor": "DARK",
"template": {
"id": "c72b5340-6251-11e7-8a25-0e604843587e",
"backgroundColor": "#F7F7F7",
"isModOnly": false,
"isEditable": false
}
},
"flair": {
"__typename": "PostFlair",
"type": "richtext",
"text": "Screenshot",
"richtext": "[{\"e\":\"text\",\"t\":\"Screenshot\"}]",
"textColor": "DARK",
"template": {
"id": "30184610-016b-11e4-b64a-12313b0a9e38",
"isEditable": false,
"backgroundColor": "#F1C40F"
}
},
"authorInfo": {
"__typename": "Redditor",
"id": "t2_5td35xyq",
"name": "mezilga",
"isCakeDayNow": false,
"icon": {
"__typename": "MediaSource",
"url": "https://styles.redditmedia.com/t5_2gnzof/styles/profileIcon_snoo5b0e916a-468b-404a-b8cf-0f9c768b011c-headshot-f.png",
"dimensions": {
"width": 256,
"height": 256
}
},
"iconSmall": {
"__typename": "MediaSource",
"url": "https://styles.redditmedia.com/t5_2gnzof/styles/profileIcon_snoo5b0e916a-468b-404a-b8cf-0f9c768b011c-headshot-f.png?width=50&height=50&frame=1&auto=webp&crop=50:50,smart&v=enabled&s=d55a0d5a0e2710e8d35c6a3a5eb333342c983642",
"dimensions": {
"width": 50,
"height": 50
}
},
"snoovatarIcon": {
"__typename": "MediaSource",
"url": "https://i.redd.it/snoovatar/avatars/5b0e916a-468b-404a-b8cf-0f9c768b011c.png",
"dimensions": {
"width": 380,
"height": 600
}
},
"profile": {
"isNsfw": false
},
"accountType": null
},
"isThumbnailEnabled": true,
"thumbnail": {
"__typename": "MediaSource",
"url": "https://b.thumbs.redditmedia.com/jZ8ZfOQe6k8QgFtji21CXnjk8bkRmdR6yJNl4At38rU.jpg",
"dimensions": {
"width": 140,
"height": 78
}
},
"media": {
"__typename": "Media",
"previewMediaId": "CM8owbWbADDBPHWEqt_auSvP8pFwryu9eUDdgy4kPgg",
"still": {
"__typename": "StillMedia",
"source": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?auto=webp&v=enabled&s=b02e16339715b4e13651ddaa2d8ece939b54fa10",
"dimensions": {
"width": 1920,
"height": 1080
}
},
"small": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?width=108&crop=smart&auto=webp&v=enabled&s=1e1a61f77725be06377685518d906b8b75538fa0",
"dimensions": {
"width": 108,
"height": 60
}
},
"medium": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?width=216&crop=smart&auto=webp&v=enabled&s=cdc513708922ed32edd984772668ce86e604a0ca",
"dimensions": {
"width": 216,
"height": 121
}
},
"large": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?width=320&crop=smart&auto=webp&v=enabled&s=ca29009828cfc2a9e947cc806a8e2f8858b91584",
"dimensions": {
"width": 320,
"height": 180
}
},
"xlarge": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?width=640&crop=smart&auto=webp&v=enabled&s=91daae12ec0b314e7d66798ad2479f52bf678843",
"dimensions": {
"width": 640,
"height": 360
}
},
"xxlarge": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?width=960&crop=smart&auto=webp&v=enabled&s=82b6d6c99b06b446173d63da095ed0303a11c68e",
"dimensions": {
"width": 960,
"height": 540
}
},
"xxxlarge": {
"__typename": "MediaSource",
"url": "https://preview.redd.it/ufc5d9qwn25b1.png?width=1080&crop=smart&auto=webp&v=enabled&s=c23a6ecc837714571fb223eb1629d8f995e8f042",
"dimensions": {
"width": 1080,
"height": 607
}
}
},
"obfuscated_still": {
"__typename": "StillMedia",
"source": null,
"small": null,
"medium": null,
"large": null,
"xlarge": null,
"xxlarge": null,
"xxxlarge": null
},
"animated": null,
"streaming": null,
"video": null,
"packagedMedia": null,
"typeHint": "IMAGE",
"download": null
},
"moderationInfo": null,
"suggestedCommentSort": null,
"discussionType": "COMMENT",
"permalink": "/r/unixporn/comments/145jgoh/kde_windows_xp_zune/",
"isSelfPost": false,
"postHint": "IMAGE",
"postEventInfo": null,
"gallery": null,
"predictionTournament": null,
"audioRoom": null,
"talkRoom": null,
"poll": null,
"outboundLink": {
"url": "https://i.redd.it/ufc5d9qwn25b1.png",
"expiresAt": "2023-00-00T00:00:00.000000+0000"
},
"postStats": {
"shareAllTotal": 3
},
"upvoteRatio": 0.9047619047619048,
"reactedFrom": null,
"attributionInfo": null,
"crowdControlLevel": "OFF",
"isCrowdControlFilterEnabled": false,
"languageCode": "cs",
"isTranslatable": true,
"crosspostRoot": null
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment