├── .gitignore ├── README.md ├── feed ├── feed.graphql └── feed.postman_collection.json ├── problem_solve_page ├── problem_solve_page.graphql └── problem_solve_page.postman_collection.json ├── problemset_page ├── problemset_page.graphql └── problemset_page.postman_collection.json ├── profile_page ├── profile_page.graphql └── profile_page.postman_collection.json ├── rest_requests ├── rest_requests.postman_collection.json ├── run │ ├── get_run_status.http │ └── run_solution.http └── submit │ ├── submit.http │ └── submit_status.http └── screenshots └── postman_screenshot.png /.gitignore: -------------------------------------------------------------------------------- 1 | **.py 2 | poetry.lock 3 | pyproject.toml 4 | har/ 5 | **/__pycache__ 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Leetcode webpage GraphQL queries 2 | 3 | These leetcode GraphQL queries can help you get the various data from the leetcode's GraphQL endpoint. 4 | [https://leetcode.com/graphql](https://leetcode.com/graphql) 5 | ![Postman Leetcode Collection Screenshot](./screenshots/postman_screenshot.png) 6 | 7 | ### Quickstart: 8 | 9 | ``` 10 | curl --location 'https://leetcode.com/graphql/' \ 11 | --header 'Content-Type: application/json' \ 12 | --header 'Cookie: LEETCODE_SESSION=; csrftoken=' \ 13 | --data '{"query":"query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput) {\n problemsetQuestionList: questionList(\n categorySlug: $categorySlug\n limit: $limit\n skip: $skip\n filters: $filters\n ) {\n total: totalNum\n questions: data {\n acRate\n difficulty\n freqBar\n frontendQuestionId: questionFrontendId\n isFavor\n paidOnly: isPaidOnly\n status\n title\n titleSlug\n topicTags {\n name\n id\n slug\n }\n hasSolution\n hasVideoSolution\n }\n }\n}","variables":{"categorySlug":"","skip":0,"limit":50,"filters":{}}}' 14 | ``` 15 | 16 | > **Note:** For authenticated requests make sure you add `LEETCODE_SESSION` and `csrftoken` cookies with the request. 17 | 18 | ### Repo contains two types of files 19 | 20 | - `*.postman_collections.json`: Postman collection is directly importable in [Postman App](https://www.postman.com/downloads/). 21 | 22 | - `*.graphql`: GraphQL queries in plain text. Query is followed by `variables` wherever applicable. 23 | 24 | ```graphql 25 | query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput) { 26 | problemsetQuestionList: questionList( 27 | categorySlug: $categorySlug 28 | limit: $limit 29 | skip: $skip 30 | filters: $filters 31 | ) { 32 | total: totalNum 33 | questions: data { 34 | acRate 35 | difficulty 36 | freqBar 37 | frontendQuestionId: questionFrontendId 38 | isFavor 39 | paidOnly: isPaidOnly 40 | status 41 | title 42 | titleSlug 43 | topicTags { 44 | name 45 | id 46 | slug 47 | } 48 | hasSolution 49 | hasVideoSolution 50 | } 51 | } 52 | } 53 | {"categorySlug": "", "skip": 0, "limit": 50, "filters": {}} 54 | ``` 55 | 56 | -------------------------------------------------------------------------------- /feed/feed.graphql: -------------------------------------------------------------------------------- 1 | # logged in landing page : https://leetcode.com 2 | 3 | query globalData { 4 | feature { 5 | questionTranslation 6 | subscription 7 | signUp 8 | discuss 9 | mockInterview 10 | contest 11 | store 12 | chinaProblemDiscuss 13 | socialProviders 14 | studentFooter 15 | enableChannels 16 | dangerZone 17 | enableSharedWorker 18 | enableRecaptchaV3 19 | enableDebugger 20 | enableDebuggerPremium 21 | enableAutocomplete 22 | enableAutocompletePremium 23 | enableAllQuestionsRaw 24 | autocompleteLanguages 25 | enableIndiaPricing 26 | enableReferralDiscount 27 | maxTimeTravelTicketCount 28 | enableStoreShippingForm 29 | enableCodingChallengeV2 30 | __typename 31 | } 32 | streakCounter { 33 | streakCount 34 | daysSkipped 35 | currentDayCompleted 36 | __typename 37 | } 38 | currentTimestamp 39 | userStatus { 40 | isSignedIn 41 | isAdmin 42 | isStaff 43 | isSuperuser 44 | isMockUser 45 | isTranslator 46 | isPremium 47 | isVerified 48 | checkedInToday 49 | username 50 | realName 51 | avatar 52 | optedIn 53 | requestRegion 54 | region 55 | activeSessionId 56 | permissions 57 | notificationStatus { 58 | lastModified 59 | numUnread 60 | __typename 61 | } 62 | completedFeatureGuides 63 | __typename 64 | } 65 | siteRegion 66 | chinaHost 67 | websocketUrl 68 | recaptchaKey 69 | recaptchaKeyV2 70 | sitewideAnnouncement 71 | userCountryCode 72 | } 73 | ----------------------------------------------------------------------------------- 74 | 75 | mutation checkin { 76 | checkin { 77 | checkedIn 78 | ok 79 | error 80 | __typename 81 | } 82 | } 83 | ----------------------------------------------------------------------------------- 84 | 85 | query codingChallengeMedal($year: Int!, $month: Int!) { 86 | dailyChallengeMedal(year: $year, month: $month) { 87 | name 88 | config { 89 | icon 90 | __typename 91 | } 92 | __typename 93 | } 94 | activeDailyCodingChallengeQuestion { 95 | link 96 | __typename 97 | } 98 | } 99 | {"year": 2023, "month": 7} 100 | ----------------------------------------------------------------------------------- 101 | 102 | query trendingDiscuss($first: Int!) { 103 | cachedTrendingCategoryTopics(first: $first) { 104 | id 105 | title 106 | post { 107 | id 108 | creationDate 109 | contentPreview 110 | author { 111 | username 112 | isActive 113 | profile { 114 | userAvatar 115 | __typename 116 | } 117 | __typename 118 | } 119 | __typename 120 | } 121 | __typename 122 | } 123 | } 124 | {"first": 10} 125 | ----------------------------------------------------------------------------------- 126 | 127 | query getDidCompleteUpc { 128 | didCompleteUpc 129 | user { 130 | joinedTimestamp 131 | __typename 132 | } 133 | } 134 | ----------------------------------------------------------------------------------- 135 | 136 | query upcomingContests { 137 | upcomingContests { 138 | title 139 | titleSlug 140 | startTime 141 | duration 142 | __typename 143 | } 144 | } 145 | ----------------------------------------------------------------------------------- 146 | 147 | -------------------------------------------------------------------------------- /feed/feed.postman_collection.json: -------------------------------------------------------------------------------- 1 | {"info": {"_postman_id": "db4d61af-95e1-4f94-b37e-2b599bcf6eba", "name": "feed", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28418829"}, "item": [{"name": "globalData", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query globalData {\n feature {\n questionTranslation\n subscription\n signUp\n discuss\n mockInterview\n contest\n store\n chinaProblemDiscuss\n socialProviders\n studentFooter\n enableChannels\n dangerZone\n enableSharedWorker\n enableRecaptchaV3\n enableDebugger\n enableDebuggerPremium\n enableAutocomplete\n enableAutocompletePremium\n enableAllQuestionsRaw\n autocompleteLanguages\n enableIndiaPricing\n enableReferralDiscount\n maxTimeTravelTicketCount\n enableStoreShippingForm\n enableCodingChallengeV2\n __typename\n }\n streakCounter {\n streakCount\n daysSkipped\n currentDayCompleted\n __typename\n }\n currentTimestamp\n userStatus {\n isSignedIn\n isAdmin\n isStaff\n isSuperuser\n isMockUser\n isTranslator\n isPremium\n isVerified\n checkedInToday\n username\n realName\n avatar\n optedIn\n requestRegion\n region\n activeSessionId\n permissions\n notificationStatus {\n lastModified\n numUnread\n __typename\n }\n completedFeatureGuides\n __typename\n }\n siteRegion\n chinaHost\n websocketUrl\n recaptchaKey\n recaptchaKeyV2\n sitewideAnnouncement\n userCountryCode\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "checkin", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "mutation checkin {\n checkin {\n checkedIn\n ok\n error\n __typename\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "codingChallengeMedal", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query codingChallengeMedal($year: Int!, $month: Int!) {\n dailyChallengeMedal(year: $year, month: $month) {\n name\n config {\n icon\n __typename\n }\n __typename\n }\n activeDailyCodingChallengeQuestion {\n link\n __typename\n }\n}", "variables": "{\"year\": 2023, \"month\": 7}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "trendingDiscuss", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query trendingDiscuss($first: Int!) {\n cachedTrendingCategoryTopics(first: $first) {\n id\n title\n post {\n id\n creationDate\n contentPreview\n author {\n username\n isActive\n profile {\n userAvatar\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}", "variables": "{\"first\": 10}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "getDidCompleteUpc", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query getDidCompleteUpc {\n didCompleteUpc\n user {\n joinedTimestamp\n __typename\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "upcomingContests", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query upcomingContests {\n upcomingContests {\n title\n titleSlug\n startTime\n duration\n __typename\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}]} -------------------------------------------------------------------------------- /problem_solve_page/problem_solve_page.graphql: -------------------------------------------------------------------------------- 1 | # https://leetcode.com/problems/<-----{problem-slug}----->/ 2 | 3 | query globalData { 4 | userStatus { 5 | userId 6 | isSignedIn 7 | isMockUser 8 | isPremium 9 | isVerified 10 | username 11 | avatar 12 | isAdmin 13 | isSuperuser 14 | permissions 15 | isTranslator 16 | activeSessionId 17 | checkedInToday 18 | notificationStatus { 19 | lastModified 20 | numUnread 21 | } 22 | } 23 | } 24 | ----------------------------------------------------------------------------------- 25 | 26 | query studyPlanV2RecentCompletedProgress($planSlug: String!) { 27 | studyPlanV2RecentCompletedProgress(planSlug: $planSlug) { 28 | id 29 | status 30 | } 31 | } 32 | {"planSlug": ""} 33 | ----------------------------------------------------------------------------------- 34 | 35 | query tabsStatus($titleSlug: String!) { 36 | questionTopicsList(questionSlug: $titleSlug) { 37 | totalNum 38 | } 39 | questionDiscussionTopic(questionSlug: $titleSlug) { 40 | topLevelCommentCount 41 | } 42 | } 43 | {"titleSlug": "two-sum"} 44 | ----------------------------------------------------------------------------------- 45 | 46 | query questionTitle($titleSlug: String!) { 47 | question(titleSlug: $titleSlug) { 48 | questionId 49 | questionFrontendId 50 | title 51 | titleSlug 52 | isPaidOnly 53 | difficulty 54 | likes 55 | dislikes 56 | } 57 | } 58 | {"titleSlug": "two-sum"} 59 | ----------------------------------------------------------------------------------- 60 | 61 | query premiumQuestion($titleSlug: String!) { 62 | question(titleSlug: $titleSlug) { 63 | isPaidOnly 64 | } 65 | } 66 | {"titleSlug": "two-sum"} 67 | ----------------------------------------------------------------------------------- 68 | 69 | query SimilarQuestions($titleSlug: String!) { 70 | question(titleSlug: $titleSlug) { 71 | similarQuestionList { 72 | difficulty 73 | titleSlug 74 | title 75 | translatedTitle 76 | isPaidOnly 77 | } 78 | } 79 | } 80 | {"titleSlug": "two-sum"} 81 | ----------------------------------------------------------------------------------- 82 | 83 | query singleQuestionTopicTags($titleSlug: String!) { 84 | question(titleSlug: $titleSlug) { 85 | topicTags { 86 | name 87 | slug 88 | } 89 | } 90 | } 91 | {"titleSlug": "two-sum"} 92 | ----------------------------------------------------------------------------------- 93 | 94 | query userCanSeeQuestion($titleSlug: String!) { 95 | question(titleSlug: $titleSlug) { 96 | canSeeQuestion 97 | } 98 | } 99 | {"titleSlug": "two-sum"} 100 | ----------------------------------------------------------------------------------- 101 | 102 | query consolePanelConfig($titleSlug: String!) { 103 | question(titleSlug: $titleSlug) { 104 | questionId 105 | questionFrontendId 106 | questionTitle 107 | enableDebugger 108 | enableRunCode 109 | enableSubmit 110 | enableTestMode 111 | exampleTestcaseList 112 | metaData 113 | } 114 | } 115 | {"titleSlug": "two-sum"} 116 | ----------------------------------------------------------------------------------- 117 | 118 | query questionEditorData($titleSlug: String!) { 119 | question(titleSlug: $titleSlug) { 120 | questionId 121 | questionFrontendId 122 | codeSnippets { 123 | lang 124 | langSlug 125 | code 126 | } 127 | envInfo 128 | enableRunCode 129 | } 130 | } 131 | {"titleSlug": "two-sum"} 132 | ----------------------------------------------------------------------------------- 133 | 134 | query languageList { 135 | languageList { 136 | id 137 | name 138 | } 139 | } 140 | ----------------------------------------------------------------------------------- 141 | 142 | query SurveyV2($surveySlug: String!) { 143 | surveyV2(surveySlug: $surveySlug) { 144 | showSurvey 145 | surveyJson 146 | leetcoinAmount 147 | } 148 | } 149 | {"surveySlug": "javascript_problem_survey"} 150 | ----------------------------------------------------------------------------------- 151 | 152 | query qdFeatureGuide { 153 | userStatus { 154 | completedFeatureGuides 155 | isSignedIn 156 | } 157 | } 158 | ----------------------------------------------------------------------------------- 159 | 160 | query annualReport { 161 | userStatus { 162 | annualReport { 163 | showPopup 164 | content 165 | badge { 166 | displayName 167 | medal { 168 | slug 169 | config { 170 | iconGif 171 | } 172 | } 173 | } 174 | } 175 | } 176 | } 177 | ----------------------------------------------------------------------------------- 178 | 179 | query questionContent($titleSlug: String!) { 180 | question(titleSlug: $titleSlug) { 181 | content 182 | mysqlSchemas 183 | } 184 | } 185 | {"titleSlug": "two-sum"} 186 | ----------------------------------------------------------------------------------- 187 | 188 | query qdChallengeQuestion($titleSlug: String!) { 189 | question(titleSlug: $titleSlug) { 190 | challengeQuestion { 191 | id 192 | date 193 | incompleteChallengeCount 194 | streakCount 195 | type 196 | } 197 | } 198 | } 199 | {"titleSlug": "two-sum"} 200 | ----------------------------------------------------------------------------------- 201 | 202 | query learningContextName($currentQuestionSlug: String!, $envId: String, $envType: String) { 203 | learningContextV2( 204 | currentQuestionSlug: $currentQuestionSlug 205 | envId: $envId 206 | envType: $envType 207 | needQuestion: false 208 | ) { 209 | name 210 | } 211 | } 212 | {"currentQuestionSlug": "two-sum", "filters": {}, "envId": "", "envType": "problem-list"} 213 | {"envType": "", "envId": "", "currentQuestionSlug": "two-sum"} 214 | ----------------------------------------------------------------------------------- 215 | 216 | query getStreakCounter { 217 | streakCounter { 218 | streakCount 219 | daysSkipped 220 | currentDayCompleted 221 | } 222 | } 223 | ----------------------------------------------------------------------------------- 224 | 225 | query currentTimestamp { 226 | currentTimestamp 227 | } 228 | ----------------------------------------------------------------------------------- 229 | 230 | query questionOfToday { 231 | activeDailyCodingChallengeQuestion { 232 | date 233 | userStatus 234 | link 235 | question { 236 | acRate 237 | difficulty 238 | freqBar 239 | frontendQuestionId: questionFrontendId 240 | isFavor 241 | paidOnly: isPaidOnly 242 | status 243 | title 244 | titleSlug 245 | hasVideoSolution 246 | hasSolution 247 | topicTags { 248 | name 249 | id 250 | slug 251 | } 252 | } 253 | } 254 | } 255 | ----------------------------------------------------------------------------------- 256 | 257 | query questionHints($titleSlug: String!) { 258 | question(titleSlug: $titleSlug) { 259 | hints 260 | } 261 | } 262 | {"titleSlug": "two-sum"} 263 | ----------------------------------------------------------------------------------- 264 | 265 | query userQuestionStatus($titleSlug: String!) { 266 | question(titleSlug: $titleSlug) { 267 | status 268 | } 269 | } 270 | {"titleSlug": "two-sum"} 271 | ----------------------------------------------------------------------------------- 272 | 273 | query userQuestionLike($titleSlug: String!) { 274 | question(titleSlug: $titleSlug) { 275 | isLiked 276 | } 277 | } 278 | {"titleSlug": "two-sum"} 279 | ----------------------------------------------------------------------------------- 280 | 281 | query userFavorites { 282 | favoritesLists { 283 | allFavorites { 284 | idHash 285 | name 286 | isPublicFavorite 287 | questions { 288 | titleSlug 289 | } 290 | } 291 | } 292 | } 293 | ----------------------------------------------------------------------------------- 294 | 295 | query questionStats($titleSlug: String!) { 296 | question(titleSlug: $titleSlug) { 297 | stats 298 | } 299 | } 300 | {"titleSlug": "two-sum"} 301 | ----------------------------------------------------------------------------------- 302 | 303 | query userQuestionAdminUrls($titleSlug: String!) { 304 | question(titleSlug: $titleSlug) { 305 | libraryUrl 306 | adminUrl 307 | } 308 | } 309 | {"titleSlug": "two-sum"} 310 | ----------------------------------------------------------------------------------- 311 | 312 | query questionCompanyStats($titleSlug: String!) { 313 | question(titleSlug: $titleSlug) { 314 | companyTagStats 315 | } 316 | } 317 | {"titleSlug": "two-sum"} 318 | ----------------------------------------------------------------------------------- 319 | 320 | query discussionTopic($questionSlug: String!) { 321 | questionDiscussionTopic(questionSlug: $questionSlug) { 322 | id 323 | commentCount 324 | topLevelCommentCount 325 | } 326 | } 327 | {"questionSlug": "two-sum"} 328 | ----------------------------------------------------------------------------------- 329 | 330 | query syncedCode($questionId: Int!, $lang: Int!) { 331 | syncedCode(questionId: $questionId, lang: $lang) { 332 | timestamp 333 | code 334 | } 335 | } 336 | {"lang": 11, "questionId": 34} 337 | ----------------------------------------------------------------------------------- 338 | 339 | query enableAiHelper { 340 | feature { 341 | enableAiHelper 342 | } 343 | } 344 | ----------------------------------------------------------------------------------- 345 | 346 | query debuggerLanguageFeatures { 347 | debuggerLanguageFeatures { 348 | lang { 349 | name 350 | } 351 | supportsExpressions 352 | supportsDisablingBreakpoints 353 | supportsDebugging 354 | } 355 | } 356 | ----------------------------------------------------------------------------------- 357 | 358 | query editorialMeta($titleSlug: String!) { 359 | question(titleSlug: $titleSlug) { 360 | solution { 361 | paidOnly 362 | hasVideoSolution 363 | canSeeDetail 364 | } 365 | } 366 | } 367 | {"titleSlug": "two-sum"} 368 | ----------------------------------------------------------------------------------- 369 | 370 | query hasOfficialSolution($titleSlug: String!) { 371 | question(titleSlug: $titleSlug) { 372 | solution { 373 | id 374 | } 375 | } 376 | } 377 | {"titleSlug": "two-sum"} 378 | ----------------------------------------------------------------------------------- 379 | 380 | query codingChallengeMedal($year: Int!, $month: Int!) { 381 | dailyChallengeMedal(year: $year, month: $month) { 382 | name 383 | config { 384 | icon 385 | } 386 | } 387 | } 388 | {"year": 2023, "month": 7} 389 | ----------------------------------------------------------------------------------- 390 | 391 | query submissionList($offset: Int!, $limit: Int!, $lastKey: String, $questionSlug: String!, $lang: Int, $status: Int) { 392 | questionSubmissionList( 393 | offset: $offset 394 | limit: $limit 395 | lastKey: $lastKey 396 | questionSlug: $questionSlug 397 | lang: $lang 398 | status: $status 399 | ) { 400 | lastKey 401 | hasNext 402 | submissions { 403 | id 404 | title 405 | titleSlug 406 | status 407 | statusDisplay 408 | lang 409 | langName 410 | runtime 411 | timestamp 412 | url 413 | isPending 414 | memory 415 | hasNotes 416 | notes 417 | } 418 | } 419 | } 420 | {"questionSlug": "two-sum", "offset": 0, "limit": 20, "lastKey": null} 421 | ----------------------------------------------------------------------------------- 422 | 423 | query submissionFilterTypes { 424 | submittableLanguageList { 425 | id 426 | verboseName 427 | } 428 | statusList { 429 | id 430 | name 431 | } 432 | } 433 | ----------------------------------------------------------------------------------- 434 | 435 | query questionNote($titleSlug: String!) { 436 | question(titleSlug: $titleSlug) { 437 | questionId 438 | note 439 | } 440 | } 441 | {"titleSlug": "two-sum"} 442 | ----------------------------------------------------------------------------------- 443 | 444 | query solutionTags($questionSlug: String!) { 445 | solutionTopicTags(questionSlug: $questionSlug) { 446 | name 447 | slug 448 | count 449 | } 450 | solutionLanguageTags(questionSlug: $questionSlug) { 451 | name 452 | slug 453 | count 454 | } 455 | } 456 | {"questionSlug": "two-sum"} 457 | ----------------------------------------------------------------------------------- 458 | 459 | query communitySolutions($questionSlug: String!, $skip: Int!, $first: Int!, $query: String, $orderBy: TopicSortingOption, $languageTags: [String!], $topicTags: [String!]) { 460 | questionSolutions( 461 | filters: {questionSlug: $questionSlug, skip: $skip, first: $first, query: $query, orderBy: $orderBy, languageTags: $languageTags, topicTags: $topicTags} 462 | ) { 463 | hasDirectResults 464 | totalNum 465 | solutions { 466 | id 467 | title 468 | commentCount 469 | topLevelCommentCount 470 | viewCount 471 | pinned 472 | isFavorite 473 | solutionTags { 474 | name 475 | slug 476 | } 477 | post { 478 | id 479 | status 480 | voteCount 481 | creationDate 482 | isHidden 483 | author { 484 | username 485 | isActive 486 | nameColor 487 | activeBadge { 488 | displayName 489 | icon 490 | } 491 | profile { 492 | userAvatar 493 | reputation 494 | } 495 | } 496 | } 497 | searchMeta { 498 | content 499 | contentType 500 | commentAuthor { 501 | username 502 | } 503 | replyAuthor { 504 | username 505 | } 506 | highlights 507 | } 508 | } 509 | } 510 | } 511 | {"query": "", "languageTags": [], "topicTags": [], "questionSlug": "two-sum", "skip": 30, "first": 15, "orderBy": "hot"} 512 | {"query": "", "languageTags": ["python3"], "topicTags": ["binary-search"], "questionSlug": "two-sum", "skip": 15, "first": 15, "orderBy": "hot"} 513 | {"query": "", "languageTags": [], "topicTags": [], "questionSlug": "two-sum", "skip": 15, "first": 15, "orderBy": "hot"} 514 | {"query": "", "languageTags": [], "topicTags": ["binary-search"], "questionSlug": "two-sum", "skip": 0, "first": 15, "orderBy": "hot"} 515 | {"query": "", "languageTags": [], "topicTags": [], "questionSlug": "two-sum", "skip": 0, "first": 15, "orderBy": "hot"} 516 | {"query": "", "languageTags": ["python3"], "topicTags": ["binary-search"], "questionSlug": "two-sum", "skip": 0, "first": 15, "orderBy": "hot"} 517 | ----------------------------------------------------------------------------------- 518 | 519 | query officialSolution($titleSlug: String!) { 520 | question(titleSlug: $titleSlug) { 521 | solution { 522 | id 523 | title 524 | content 525 | contentTypeId 526 | paidOnly 527 | hasVideoSolution 528 | paidOnlyVideo 529 | canSeeDetail 530 | rating { 531 | count 532 | average 533 | userRating { 534 | score 535 | } 536 | } 537 | topic { 538 | id 539 | commentCount 540 | topLevelCommentCount 541 | viewCount 542 | subscribed 543 | solutionTags { 544 | name 545 | slug 546 | } 547 | post { 548 | id 549 | status 550 | creationDate 551 | author { 552 | username 553 | isActive 554 | profile { 555 | userAvatar 556 | reputation 557 | } 558 | } 559 | } 560 | } 561 | } 562 | } 563 | } 564 | {"titleSlug": "two-sum"} 565 | ----------------------------------------------------------------------------------- 566 | 567 | query learningContext($currentQuestionSlug: String!, $categorySlug: String, $envId: String, $envType: String, $filters: QuestionListFilterInput) { 568 | learningContextV2( 569 | currentQuestionSlug: $currentQuestionSlug 570 | categorySlug: $categorySlug 571 | envId: $envId 572 | envType: $envType 573 | filters: $filters 574 | ) { 575 | name 576 | backLink 577 | nextQuestion { 578 | difficulty 579 | title 580 | titleSlug 581 | questionFrontendId 582 | } 583 | previousQuestion { 584 | difficulty 585 | title 586 | titleSlug 587 | questionFrontendId 588 | } 589 | } 590 | } 591 | {"currentQuestionSlug": "two-sum", "filters": {}, "envId": "", "envType": "problem-list"} 592 | {"envType": "", "envId": "", "currentQuestionSlug": "two-sum"} 593 | ----------------------------------------------------------------------------------- 594 | 595 | query randomPanelQuestion($currentQuestionSlug: String!, $categorySlug: String, $envId: String, $envType: String, $filters: QuestionListFilterInput) { 596 | randomPanelQuestion( 597 | currentQuestionSlug: $currentQuestionSlug 598 | categorySlug: $categorySlug 599 | envId: $envId 600 | envType: $envType 601 | filters: $filters 602 | ) 603 | } 604 | {"currentQuestionSlug": "two-sum", "filters": {}, "envId": "", "envType": "problem-list"} 605 | {"envType": "", "envId": "", "currentQuestionSlug": "two-sum"} 606 | ----------------------------------------------------------------------------------- 607 | 608 | query panelQuestionList($currentQuestionSlug: String!, $categorySlug: String, $envId: String, $envType: String, $filters: QuestionListFilterInput) { 609 | panelQuestionList( 610 | currentQuestionSlug: $currentQuestionSlug 611 | categorySlug: $categorySlug 612 | envId: $envId 613 | envType: $envType 614 | filters: $filters 615 | ) { 616 | hasViewPermission 617 | panelName 618 | finishedLength 619 | totalLength 620 | questions { 621 | difficulty 622 | id 623 | paidOnly 624 | questionFrontendId 625 | status 626 | title 627 | titleSlug 628 | topicTags { 629 | name 630 | slug 631 | } 632 | } 633 | } 634 | } 635 | {"currentQuestionSlug": "two-sum", "filters": {}, "envId": "", "envType": "problem-list"} 636 | {"envType": "", "envId": "", "currentQuestionSlug": "two-sum"} 637 | ----------------------------------------------------------------------------------- 638 | 639 | mutation updateSyncedCode($code: String!, $lang: Int!, $questionId: Int!) { 640 | updateSyncedCode(code: $code, lang: $lang, questionId: $questionId) { 641 | ok 642 | } 643 | } 644 | {"code": "class Solution:\n def searchRange(self, nums: List[int], target: int) -> List[int]:\n return []", "lang": 11, "questionId": 34} 645 | {"code": "class Solution:\n def searchRange(self, nums: List[int], target: int) -> List[int]:\n return [1,2]", "lang": 11, "questionId": 34} 646 | ----------------------------------------------------------------------------------- 647 | 648 | query questionSubmissionList($questionSlug: String!, $lang: Int, $withNote: Boolean, $limit: Int, $offset: Int, $status: Int) { 649 | questionSubmissionList( 650 | questionSlug: $questionSlug 651 | offset: $offset 652 | limit: $limit 653 | lang: $lang 654 | withNotes: $withNote 655 | status: $status 656 | ) { 657 | lastKey 658 | hasNext 659 | submissions { 660 | runtime 661 | memory 662 | timestamp 663 | status 664 | statusDisplay 665 | lang 666 | langName 667 | timestamp 668 | notes 669 | id 670 | hasNotes 671 | topicTags { 672 | id 673 | name 674 | slug 675 | translatedName 676 | } 677 | } 678 | } 679 | } 680 | {"questionSlug": "two-sum", "limit": 10, "offset": 0, "lang": 11, "withNote": true, "status": 10} 681 | ----------------------------------------------------------------------------------- 682 | 683 | query submissionDetails($submissionId: Int!) { 684 | submissionDetails(submissionId: $submissionId) { 685 | runtime 686 | runtimeDisplay 687 | runtimePercentile 688 | runtimeDistribution 689 | memory 690 | memoryDisplay 691 | memoryPercentile 692 | memoryDistribution 693 | code 694 | timestamp 695 | statusCode 696 | user { 697 | username 698 | profile { 699 | realName 700 | userAvatar 701 | } 702 | } 703 | lang { 704 | name 705 | verboseName 706 | } 707 | question { 708 | questionId 709 | } 710 | notes 711 | topicTags { 712 | tagId 713 | slug 714 | name 715 | } 716 | runtimeError 717 | compileError 718 | lastTestcase 719 | } 720 | } 721 | {"submissionId": 989723806} 722 | ----------------------------------------------------------------------------------- 723 | 724 | query communitySolution($topicId: Int!) { 725 | topic(id: $topicId) { 726 | id 727 | viewCount 728 | topLevelCommentCount 729 | subscribed 730 | title 731 | pinned 732 | solutionTags { 733 | name 734 | slug 735 | } 736 | hideFromTrending 737 | commentCount 738 | isFavorite 739 | post { 740 | id 741 | voteCount 742 | voteStatus 743 | content 744 | updationDate 745 | creationDate 746 | status 747 | isHidden 748 | author { 749 | isDiscussAdmin 750 | isDiscussStaff 751 | username 752 | nameColor 753 | activeBadge { 754 | displayName 755 | icon 756 | } 757 | profile { 758 | userAvatar 759 | reputation 760 | } 761 | isActive 762 | } 763 | authorIsModerator 764 | isOwnPost 765 | } 766 | } 767 | } 768 | {"topicId": 3678229} 769 | ----------------------------------------------------------------------------------- 770 | 771 | query solutionArticleInformation($topicId: Int!) { 772 | topic(id: $topicId) { 773 | title 774 | post { 775 | author { 776 | username 777 | } 778 | } 779 | } 780 | } 781 | {"topicId": 3678229} 782 | ----------------------------------------------------------------------------------- 783 | 784 | query prevNextSolution($topicId: Int!, $questionSlug: String!, $skip: Int!, $first: Int!, $query: String, $orderBy: TopicSortingOption, $languageTags: [String!], $topicTags: [String!]) { 785 | prevSolution( 786 | topicId: $topicId 787 | filters: {questionSlug: $questionSlug, first: $first, skip: $skip, orderBy: $orderBy, query: $query, languageTags: $languageTags, topicTags: $topicTags} 788 | ) { 789 | id 790 | title 791 | } 792 | nextSolution( 793 | topicId: $topicId 794 | filters: {questionSlug: $questionSlug, first: $first, skip: $skip, orderBy: $orderBy, query: $query, languageTags: $languageTags, topicTags: $topicTags} 795 | ) { 796 | id 797 | title 798 | } 799 | } 800 | {"query": "", "languageTags": [], "topicTags": [], "topicId": 3678229, "topicSlug": "", "questionSlug": "two-sum", "skip": 0, "first": 15, "orderBy": "hot"} 801 | ----------------------------------------------------------------------------------- 802 | 803 | query intentionTags { 804 | intentionTags { 805 | name 806 | slug 807 | } 808 | } 809 | ----------------------------------------------------------------------------------- 810 | 811 | query questionDiscussComments($topicId: Int!, $orderBy: String = "newest_to_oldest", $pageNo: Int = 1, $numPerPage: Int = 10) { 812 | topicComments( 813 | topicId: $topicId 814 | orderBy: $orderBy 815 | pageNo: $pageNo 816 | numPerPage: $numPerPage 817 | ) { 818 | data { 819 | id 820 | pinned 821 | pinnedBy { 822 | username 823 | } 824 | post { 825 | ...DiscussPost 826 | } 827 | intentionTag { 828 | slug 829 | } 830 | numChildren 831 | } 832 | totalNum 833 | } 834 | } 835 | 836 | fragment DiscussPost on PostNode { 837 | id 838 | voteCount 839 | voteStatus 840 | content 841 | updationDate 842 | creationDate 843 | status 844 | isHidden 845 | coinRewards { 846 | id 847 | score 848 | description 849 | date 850 | } 851 | author { 852 | isDiscussAdmin 853 | isDiscussStaff 854 | username 855 | nameColor 856 | activeBadge { 857 | displayName 858 | icon 859 | } 860 | profile { 861 | userAvatar 862 | reputation 863 | } 864 | isActive 865 | } 866 | authorIsModerator 867 | isOwnPost 868 | } 869 | {"topicId": 3678229, "pageNo": 1, "numPerPage": 10, "orderBy": "best"} 870 | ----------------------------------------------------------------------------------- 871 | 872 | -------------------------------------------------------------------------------- /problem_solve_page/problem_solve_page.postman_collection.json: -------------------------------------------------------------------------------- 1 | {"info": {"_postman_id": "5e98c980-e113-4c7b-826e-a23bb2c7820e", "name": "problem_solve_page", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28418829"}, "item": [{"name": "globalData", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query globalData {\n userStatus {\n userId\n isSignedIn\n isMockUser\n isPremium\n isVerified\n username\n avatar\n isAdmin\n isSuperuser\n permissions\n isTranslator\n activeSessionId\n checkedInToday\n notificationStatus {\n lastModified\n numUnread\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "studyPlanV2RecentCompletedProgress", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query studyPlanV2RecentCompletedProgress($planSlug: String!) {\n studyPlanV2RecentCompletedProgress(planSlug: $planSlug) {\n id\n status\n }\n}", "variables": "{\"planSlug\": \"\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "tabsStatus", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query tabsStatus($titleSlug: String!) {\n questionTopicsList(questionSlug: $titleSlug) {\n totalNum\n }\n questionDiscussionTopic(questionSlug: $titleSlug) {\n topLevelCommentCount\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionTitle", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionTitle($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n questionId\n questionFrontendId\n title\n titleSlug\n isPaidOnly\n difficulty\n likes\n dislikes\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "premiumQuestion", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query premiumQuestion($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n isPaidOnly\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "SimilarQuestions", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query SimilarQuestions($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n similarQuestionList {\n difficulty\n titleSlug\n title\n translatedTitle\n isPaidOnly\n }\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "singleQuestionTopicTags", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query singleQuestionTopicTags($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n topicTags {\n name\n slug\n }\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userCanSeeQuestion", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userCanSeeQuestion($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n canSeeQuestion\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "consolePanelConfig", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query consolePanelConfig($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n questionId\n questionFrontendId\n questionTitle\n enableDebugger\n enableRunCode\n enableSubmit\n enableTestMode\n exampleTestcaseList\n metaData\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionEditorData", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionEditorData($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n questionId\n questionFrontendId\n codeSnippets {\n lang\n langSlug\n code\n }\n envInfo\n enableRunCode\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "languageList", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query languageList {\n languageList {\n id\n name\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "SurveyV2", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query SurveyV2($surveySlug: String!) {\n surveyV2(surveySlug: $surveySlug) {\n showSurvey\n surveyJson\n leetcoinAmount\n }\n}", "variables": "{\"surveySlug\": \"javascript_problem_survey\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "qdFeatureGuide", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query qdFeatureGuide {\n userStatus {\n completedFeatureGuides\n isSignedIn\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "annualReport", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query annualReport {\n userStatus {\n annualReport {\n showPopup\n content\n badge {\n displayName\n medal {\n slug\n config {\n iconGif\n }\n }\n }\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionContent", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionContent($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n content\n mysqlSchemas\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "qdChallengeQuestion", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query qdChallengeQuestion($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n challengeQuestion {\n id\n date\n incompleteChallengeCount\n streakCount\n type\n }\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "learningContextName", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query learningContextName($currentQuestionSlug: String!, $envId: String, $envType: String) {\n learningContextV2(\n currentQuestionSlug: $currentQuestionSlug\n envId: $envId\n envType: $envType\n needQuestion: false\n ) {\n name\n }\n}", "variables": "{\"envType\": \"\", \"envId\": \"\", \"currentQuestionSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "getStreakCounter", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query getStreakCounter {\n streakCounter {\n streakCount\n daysSkipped\n currentDayCompleted\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "currentTimestamp", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query currentTimestamp {\n currentTimestamp\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionOfToday", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionOfToday {\n activeDailyCodingChallengeQuestion {\n date\n userStatus\n link\n question {\n acRate\n difficulty\n freqBar\n frontendQuestionId: questionFrontendId\n isFavor\n paidOnly: isPaidOnly\n status\n title\n titleSlug\n hasVideoSolution\n hasSolution\n topicTags {\n name\n id\n slug\n }\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionHints", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionHints($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n hints\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userQuestionStatus", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userQuestionStatus($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n status\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userQuestionLike", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userQuestionLike($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n isLiked\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userFavorites", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userFavorites {\n favoritesLists {\n allFavorites {\n idHash\n name\n isPublicFavorite\n questions {\n titleSlug\n }\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionStats", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionStats($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n stats\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userQuestionAdminUrls", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userQuestionAdminUrls($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n libraryUrl\n adminUrl\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionCompanyStats", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionCompanyStats($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n companyTagStats\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "discussionTopic", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query discussionTopic($questionSlug: String!) {\n questionDiscussionTopic(questionSlug: $questionSlug) {\n id\n commentCount\n topLevelCommentCount\n }\n}", "variables": "{\"questionSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "syncedCode", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query syncedCode($questionId: Int!, $lang: Int!) {\n syncedCode(questionId: $questionId, lang: $lang) {\n timestamp\n code\n }\n}", "variables": "{\"lang\": 11, \"questionId\": 34}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "enableAiHelper", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query enableAiHelper {\n feature {\n enableAiHelper\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "debuggerLanguageFeatures", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query debuggerLanguageFeatures {\n debuggerLanguageFeatures {\n lang {\n name\n }\n supportsExpressions\n supportsDisablingBreakpoints\n supportsDebugging\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "editorialMeta", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query editorialMeta($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n solution {\n paidOnly\n hasVideoSolution\n canSeeDetail\n }\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "hasOfficialSolution", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query hasOfficialSolution($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n solution {\n id\n }\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "codingChallengeMedal", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query codingChallengeMedal($year: Int!, $month: Int!) {\n dailyChallengeMedal(year: $year, month: $month) {\n name\n config {\n icon\n }\n }\n}", "variables": "{\"year\": 2023, \"month\": 7}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "submissionList", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query submissionList($offset: Int!, $limit: Int!, $lastKey: String, $questionSlug: String!, $lang: Int, $status: Int) {\n questionSubmissionList(\n offset: $offset\n limit: $limit\n lastKey: $lastKey\n questionSlug: $questionSlug\n lang: $lang\n status: $status\n ) {\n lastKey\n hasNext\n submissions {\n id\n title\n titleSlug\n status\n statusDisplay\n lang\n langName\n runtime\n timestamp\n url\n isPending\n memory\n hasNotes\n notes\n }\n }\n}", "variables": "{\"questionSlug\": \"two-sum\", \"offset\": 0, \"limit\": 20, \"lastKey\": null}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "submissionFilterTypes", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query submissionFilterTypes {\n submittableLanguageList {\n id\n verboseName\n }\n statusList {\n id\n name\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionNote", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionNote($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n questionId\n note\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "solutionTags", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query solutionTags($questionSlug: String!) {\n solutionTopicTags(questionSlug: $questionSlug) {\n name\n slug\n count\n }\n solutionLanguageTags(questionSlug: $questionSlug) {\n name\n slug\n count\n }\n}", "variables": "{\"questionSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "communitySolutions", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query communitySolutions($questionSlug: String!, $skip: Int!, $first: Int!, $query: String, $orderBy: TopicSortingOption, $languageTags: [String!], $topicTags: [String!]) {\n questionSolutions(\n filters: {questionSlug: $questionSlug, skip: $skip, first: $first, query: $query, orderBy: $orderBy, languageTags: $languageTags, topicTags: $topicTags}\n ) {\n hasDirectResults\n totalNum\n solutions {\n id\n title\n commentCount\n topLevelCommentCount\n viewCount\n pinned\n isFavorite\n solutionTags {\n name\n slug\n }\n post {\n id\n status\n voteCount\n creationDate\n isHidden\n author {\n username\n isActive\n nameColor\n activeBadge {\n displayName\n icon\n }\n profile {\n userAvatar\n reputation\n }\n }\n }\n searchMeta {\n content\n contentType\n commentAuthor {\n username\n }\n replyAuthor {\n username\n }\n highlights\n }\n }\n }\n}", "variables": "{\"query\": \"\", \"languageTags\": [\"python3\"], \"topicTags\": [\"binary-search\"], \"questionSlug\": \"two-sum\", \"skip\": 0, \"first\": 15, \"orderBy\": \"hot\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "officialSolution", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query officialSolution($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n solution {\n id\n title\n content\n contentTypeId\n paidOnly\n hasVideoSolution\n paidOnlyVideo\n canSeeDetail\n rating {\n count\n average\n userRating {\n score\n }\n }\n topic {\n id\n commentCount\n topLevelCommentCount\n viewCount\n subscribed\n solutionTags {\n name\n slug\n }\n post {\n id\n status\n creationDate\n author {\n username\n isActive\n profile {\n userAvatar\n reputation\n }\n }\n }\n }\n }\n }\n}", "variables": "{\"titleSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "learningContext", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query learningContext($currentQuestionSlug: String!, $categorySlug: String, $envId: String, $envType: String, $filters: QuestionListFilterInput) {\n learningContextV2(\n currentQuestionSlug: $currentQuestionSlug\n categorySlug: $categorySlug\n envId: $envId\n envType: $envType\n filters: $filters\n ) {\n name\n backLink\n nextQuestion {\n difficulty\n title\n titleSlug\n questionFrontendId\n }\n previousQuestion {\n difficulty\n title\n titleSlug\n questionFrontendId\n }\n }\n}", "variables": "{\"envType\": \"\", \"envId\": \"\", \"currentQuestionSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "randomPanelQuestion", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query randomPanelQuestion($currentQuestionSlug: String!, $categorySlug: String, $envId: String, $envType: String, $filters: QuestionListFilterInput) {\n randomPanelQuestion(\n currentQuestionSlug: $currentQuestionSlug\n categorySlug: $categorySlug\n envId: $envId\n envType: $envType\n filters: $filters\n )\n}", "variables": "{\"envType\": \"\", \"envId\": \"\", \"currentQuestionSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "panelQuestionList", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query panelQuestionList($currentQuestionSlug: String!, $categorySlug: String, $envId: String, $envType: String, $filters: QuestionListFilterInput) {\n panelQuestionList(\n currentQuestionSlug: $currentQuestionSlug\n categorySlug: $categorySlug\n envId: $envId\n envType: $envType\n filters: $filters\n ) {\n hasViewPermission\n panelName\n finishedLength\n totalLength\n questions {\n difficulty\n id\n paidOnly\n questionFrontendId\n status\n title\n titleSlug\n topicTags {\n name\n slug\n }\n }\n }\n}", "variables": "{\"envType\": \"\", \"envId\": \"\", \"currentQuestionSlug\": \"two-sum\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "updateSyncedCode", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "mutation updateSyncedCode($code: String!, $lang: Int!, $questionId: Int!) {\n updateSyncedCode(code: $code, lang: $lang, questionId: $questionId) {\n ok\n }\n}", "variables": "{\"code\": \"class Solution:\\n def searchRange(self, nums: List[int], target: int) -> List[int]:\\n return [1,2]\", \"lang\": 11, \"questionId\": 34}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionSubmissionList", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionSubmissionList($questionSlug: String!, $lang: Int, $withNote: Boolean, $limit: Int, $offset: Int, $status: Int) {\n questionSubmissionList(\n questionSlug: $questionSlug\n offset: $offset\n limit: $limit\n lang: $lang\n withNotes: $withNote\n status: $status\n ) {\n lastKey\n hasNext\n submissions {\n runtime\n memory\n timestamp\n status\n statusDisplay\n lang\n langName\n timestamp\n notes\n id\n hasNotes\n topicTags {\n id\n name\n slug\n translatedName\n }\n }\n }\n}", "variables": "{\"questionSlug\": \"two-sum\", \"limit\": 10, \"offset\": 0, \"lang\": 11, \"withNote\": true, \"status\": 10}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "submissionDetails", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query submissionDetails($submissionId: Int!) {\n submissionDetails(submissionId: $submissionId) {\n runtime\n runtimeDisplay\n runtimePercentile\n runtimeDistribution\n memory\n memoryDisplay\n memoryPercentile\n memoryDistribution\n code\n timestamp\n statusCode\n user {\n username\n profile {\n realName\n userAvatar\n }\n }\n lang {\n name\n verboseName\n }\n question {\n questionId\n }\n notes\n topicTags {\n tagId\n slug\n name\n }\n runtimeError\n compileError\n lastTestcase\n }\n}", "variables": "{\"submissionId\": 989723806}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "communitySolution", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query communitySolution($topicId: Int!) {\n topic(id: $topicId) {\n id\n viewCount\n topLevelCommentCount\n subscribed\n title\n pinned\n solutionTags {\n name\n slug\n }\n hideFromTrending\n commentCount\n isFavorite\n post {\n id\n voteCount\n voteStatus\n content\n updationDate\n creationDate\n status\n isHidden\n author {\n isDiscussAdmin\n isDiscussStaff\n username\n nameColor\n activeBadge {\n displayName\n icon\n }\n profile {\n userAvatar\n reputation\n }\n isActive\n }\n authorIsModerator\n isOwnPost\n }\n }\n}", "variables": "{\"topicId\": 3678229}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "solutionArticleInformation", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query solutionArticleInformation($topicId: Int!) {\n topic(id: $topicId) {\n title\n post {\n author {\n username\n }\n }\n }\n}", "variables": "{\"topicId\": 3678229}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "prevNextSolution", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query prevNextSolution($topicId: Int!, $questionSlug: String!, $skip: Int!, $first: Int!, $query: String, $orderBy: TopicSortingOption, $languageTags: [String!], $topicTags: [String!]) {\n prevSolution(\n topicId: $topicId\n filters: {questionSlug: $questionSlug, first: $first, skip: $skip, orderBy: $orderBy, query: $query, languageTags: $languageTags, topicTags: $topicTags}\n ) {\n id\n title\n }\n nextSolution(\n topicId: $topicId\n filters: {questionSlug: $questionSlug, first: $first, skip: $skip, orderBy: $orderBy, query: $query, languageTags: $languageTags, topicTags: $topicTags}\n ) {\n id\n title\n }\n}", "variables": "{\"query\": \"\", \"languageTags\": [], \"topicTags\": [], \"topicId\": 3678229, \"topicSlug\": \"\", \"questionSlug\": \"two-sum\", \"skip\": 0, \"first\": 15, \"orderBy\": \"hot\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "intentionTags", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query intentionTags {\n intentionTags {\n name\n slug\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionDiscussComments", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionDiscussComments($topicId: Int!, $orderBy: String = \"newest_to_oldest\", $pageNo: Int = 1, $numPerPage: Int = 10) {\n topicComments(\n topicId: $topicId\n orderBy: $orderBy\n pageNo: $pageNo\n numPerPage: $numPerPage\n ) {\n data {\n id\n pinned\n pinnedBy {\n username\n }\n post {\n ...DiscussPost\n }\n intentionTag {\n slug\n }\n numChildren\n }\n totalNum\n }\n}\n \n fragment DiscussPost on PostNode {\n id\n voteCount\n voteStatus\n content\n updationDate\n creationDate\n status\n isHidden\n coinRewards {\n id\n score\n description\n date\n }\n author {\n isDiscussAdmin\n isDiscussStaff\n username\n nameColor\n activeBadge {\n displayName\n icon\n }\n profile {\n userAvatar\n reputation\n }\n isActive\n }\n authorIsModerator\n isOwnPost\n}", "variables": "{\"topicId\": 3678229, \"pageNo\": 1, \"numPerPage\": 10, \"orderBy\": \"best\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}]} -------------------------------------------------------------------------------- /problemset_page/problemset_page.graphql: -------------------------------------------------------------------------------- 1 | # https://leetcode.com/problemset/all/ 2 | 3 | query globalData { 4 | userStatus { 5 | userId 6 | isSignedIn 7 | isMockUser 8 | isPremium 9 | isVerified 10 | username 11 | avatar 12 | isAdmin 13 | isSuperuser 14 | permissions 15 | isTranslator 16 | activeSessionId 17 | checkedInToday 18 | notificationStatus { 19 | lastModified 20 | numUnread 21 | } 22 | } 23 | } 24 | ----------------------------------------------------------------------------------- 25 | 26 | query siteAnnouncements { 27 | siteAnnouncements { 28 | title 29 | content 30 | blacklistUrls 31 | whitelistUrls 32 | navbarItem 33 | } 34 | } 35 | ----------------------------------------------------------------------------------- 36 | 37 | query GetProblemSetStudyPlanAds { 38 | studyPlansV2AdQuestionPage { 39 | cover 40 | highlight 41 | name 42 | onGoing 43 | premiumOnly 44 | questionNum 45 | slug 46 | } 47 | } 48 | ----------------------------------------------------------------------------------- 49 | 50 | query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput) { 51 | problemsetQuestionList: questionList( 52 | categorySlug: $categorySlug 53 | limit: $limit 54 | skip: $skip 55 | filters: $filters 56 | ) { 57 | total: totalNum 58 | questions: data { 59 | acRate 60 | difficulty 61 | freqBar 62 | frontendQuestionId: questionFrontendId 63 | isFavor 64 | paidOnly: isPaidOnly 65 | status 66 | title 67 | titleSlug 68 | topicTags { 69 | name 70 | id 71 | slug 72 | } 73 | hasSolution 74 | hasVideoSolution 75 | } 76 | } 77 | } 78 | {"categorySlug": "", "skip": 0, "limit": 50, "filters": {}} 79 | ----------------------------------------------------------------------------------- 80 | 81 | query questionOfToday { 82 | activeDailyCodingChallengeQuestion { 83 | date 84 | userStatus 85 | link 86 | question { 87 | acRate 88 | difficulty 89 | freqBar 90 | frontendQuestionId: questionFrontendId 91 | isFavor 92 | paidOnly: isPaidOnly 93 | status 94 | title 95 | titleSlug 96 | hasVideoSolution 97 | hasSolution 98 | topicTags { 99 | name 100 | id 101 | slug 102 | } 103 | } 104 | } 105 | } 106 | ----------------------------------------------------------------------------------- 107 | 108 | query codingChallengeMedal($year: Int!, $month: Int!) { 109 | dailyChallengeMedal(year: $year, month: $month) { 110 | name 111 | config { 112 | icon 113 | } 114 | } 115 | } 116 | {"year": 2023, "month": 7} 117 | ----------------------------------------------------------------------------------- 118 | 119 | query currentTimestamp { 120 | currentTimestamp 121 | } 122 | ----------------------------------------------------------------------------------- 123 | 124 | query GetMyStudyPlan($progressType: PlanUserProgressTypeEnum!, $offset: Int!, $limit: Int!) { 125 | studyPlanV2UserProgresses( 126 | progressType: $progressType 127 | offset: $offset 128 | limit: $limit 129 | ) { 130 | hasMore 131 | total 132 | planUserProgresses { 133 | nextQuestionInfo { 134 | inPremiumSubgroup 135 | nextQuestion { 136 | id 137 | questionFrontendId 138 | title 139 | titleSlug 140 | translatedTitle 141 | } 142 | } 143 | quittedAt 144 | startedAt 145 | plan { 146 | questionNum 147 | slug 148 | premiumOnly 149 | name 150 | onGoing 151 | highlight 152 | cover 153 | } 154 | latestSubmissionAt 155 | id 156 | allCompletedAt 157 | finishedQuestionNum 158 | } 159 | } 160 | } 161 | {"offset": 0, "limit": 3, "progressType": "ON_GOING"} 162 | ----------------------------------------------------------------------------------- 163 | 164 | query dailyCodingQuestionRecords($year: Int!, $month: Int!) { 165 | dailyCodingChallengeV2(year: $year, month: $month) { 166 | challenges { 167 | date 168 | userStatus 169 | link 170 | question { 171 | questionFrontendId 172 | title 173 | titleSlug 174 | } 175 | } 176 | weeklyChallenges { 177 | date 178 | userStatus 179 | link 180 | question { 181 | questionFrontendId 182 | title 183 | titleSlug 184 | } 185 | } 186 | } 187 | } 188 | {"year": 2023, "month": 7} 189 | ----------------------------------------------------------------------------------- 190 | 191 | query upcOnboardingStatus { 192 | didCompleteUpc 193 | user { 194 | joinedTimestamp 195 | } 196 | } 197 | ----------------------------------------------------------------------------------- 198 | 199 | query getStreakCounter { 200 | streakCounter { 201 | streakCount 202 | daysSkipped 203 | currentDayCompleted 204 | } 205 | } 206 | ----------------------------------------------------------------------------------- 207 | 208 | query timeTravelTicketInfo { 209 | validTimeTravelTicketCount 210 | redeemedTimeTravelTicketCount 211 | } 212 | ----------------------------------------------------------------------------------- 213 | 214 | query userSessionProgress($username: String!) { 215 | allQuestionsCount { 216 | difficulty 217 | count 218 | } 219 | matchedUser(username: $username) { 220 | submitStats { 221 | acSubmissionNum { 222 | difficulty 223 | count 224 | submissions 225 | } 226 | totalSubmissionNum { 227 | difficulty 228 | count 229 | submissions 230 | } 231 | } 232 | } 233 | } 234 | {"username": "user8162l"} 235 | ----------------------------------------------------------------------------------- 236 | 237 | -------------------------------------------------------------------------------- /problemset_page/problemset_page.postman_collection.json: -------------------------------------------------------------------------------- 1 | {"info": {"_postman_id": "5c619988-5e97-41a3-8118-c4bd5c6dfdd6", "name": "problemset_page", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28418829"}, "item": [{"name": "globalData", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query globalData {\n userStatus {\n userId\n isSignedIn\n isMockUser\n isPremium\n isVerified\n username\n avatar\n isAdmin\n isSuperuser\n permissions\n isTranslator\n activeSessionId\n checkedInToday\n notificationStatus {\n lastModified\n numUnread\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "siteAnnouncements", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query siteAnnouncements {\n siteAnnouncements {\n title\n content\n blacklistUrls\n whitelistUrls\n navbarItem\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "GetProblemSetStudyPlanAds", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query GetProblemSetStudyPlanAds {\n studyPlansV2AdQuestionPage {\n cover\n highlight\n name\n onGoing\n premiumOnly\n questionNum\n slug\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "problemsetQuestionList", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput) {\n problemsetQuestionList: questionList(\n categorySlug: $categorySlug\n limit: $limit\n skip: $skip\n filters: $filters\n ) {\n total: totalNum\n questions: data {\n acRate\n difficulty\n freqBar\n frontendQuestionId: questionFrontendId\n isFavor\n paidOnly: isPaidOnly\n status\n title\n titleSlug\n topicTags {\n name\n id\n slug\n }\n hasSolution\n hasVideoSolution\n }\n }\n}", "variables": "{\"categorySlug\": \"\", \"skip\": 0, \"limit\": 50, \"filters\": {}}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionOfToday", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionOfToday {\n activeDailyCodingChallengeQuestion {\n date\n userStatus\n link\n question {\n acRate\n difficulty\n freqBar\n frontendQuestionId: questionFrontendId\n isFavor\n paidOnly: isPaidOnly\n status\n title\n titleSlug\n hasVideoSolution\n hasSolution\n topicTags {\n name\n id\n slug\n }\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "codingChallengeMedal", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query codingChallengeMedal($year: Int!, $month: Int!) {\n dailyChallengeMedal(year: $year, month: $month) {\n name\n config {\n icon\n }\n }\n}", "variables": "{\"year\": 2023, \"month\": 7}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "currentTimestamp", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query currentTimestamp {\n currentTimestamp\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "GetMyStudyPlan", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query GetMyStudyPlan($progressType: PlanUserProgressTypeEnum!, $offset: Int!, $limit: Int!) {\n studyPlanV2UserProgresses(\n progressType: $progressType\n offset: $offset\n limit: $limit\n ) {\n hasMore\n total\n planUserProgresses {\n nextQuestionInfo {\n inPremiumSubgroup\n nextQuestion {\n id\n questionFrontendId\n title\n titleSlug\n translatedTitle\n }\n }\n quittedAt\n startedAt\n plan {\n questionNum\n slug\n premiumOnly\n name\n onGoing\n highlight\n cover\n }\n latestSubmissionAt\n id\n allCompletedAt\n finishedQuestionNum\n }\n }\n}", "variables": "{\"offset\": 0, \"limit\": 3, \"progressType\": \"ON_GOING\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "dailyCodingQuestionRecords", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query dailyCodingQuestionRecords($year: Int!, $month: Int!) {\n dailyCodingChallengeV2(year: $year, month: $month) {\n challenges {\n date\n userStatus\n link\n question {\n questionFrontendId\n title\n titleSlug\n }\n }\n weeklyChallenges {\n date\n userStatus\n link\n question {\n questionFrontendId\n title\n titleSlug\n }\n }\n }\n}", "variables": "{\"year\": 2023, \"month\": 7}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "upcOnboardingStatus", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query upcOnboardingStatus {\n didCompleteUpc\n user {\n joinedTimestamp\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "getStreakCounter", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query getStreakCounter {\n streakCounter {\n streakCount\n daysSkipped\n currentDayCompleted\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "timeTravelTicketInfo", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query timeTravelTicketInfo {\n validTimeTravelTicketCount\n redeemedTimeTravelTicketCount\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userSessionProgress", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userSessionProgress($username: String!) {\n allQuestionsCount {\n difficulty\n count\n }\n matchedUser(username: $username) {\n submitStats {\n acSubmissionNum {\n difficulty\n count\n submissions\n }\n totalSubmissionNum {\n difficulty\n count\n submissions\n }\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}]} -------------------------------------------------------------------------------- /profile_page/profile_page.graphql: -------------------------------------------------------------------------------- 1 | query globalData { 2 | userStatus { 3 | userId 4 | isSignedIn 5 | isMockUser 6 | isPremium 7 | isVerified 8 | username 9 | avatar 10 | isAdmin 11 | isSuperuser 12 | permissions 13 | isTranslator 14 | activeSessionId 15 | checkedInToday 16 | notificationStatus { 17 | lastModified 18 | numUnread 19 | } 20 | } 21 | } 22 | ----------------------------------------------------------------------------------- 23 | 24 | query siteAnnouncements { 25 | siteAnnouncements { 26 | title 27 | content 28 | blacklistUrls 29 | whitelistUrls 30 | navbarItem 31 | } 32 | } 33 | ----------------------------------------------------------------------------------- 34 | 35 | query userPublicProfile($username: String!) { 36 | matchedUser(username: $username) { 37 | contestBadge { 38 | name 39 | expired 40 | hoverText 41 | icon 42 | } 43 | username 44 | githubUrl 45 | twitterUrl 46 | linkedinUrl 47 | profile { 48 | ranking 49 | userAvatar 50 | realName 51 | aboutMe 52 | school 53 | websites 54 | countryName 55 | company 56 | jobTitle 57 | skillTags 58 | postViewCount 59 | postViewCountDiff 60 | reputation 61 | reputationDiff 62 | solutionCount 63 | solutionCountDiff 64 | categoryDiscussCount 65 | categoryDiscussCountDiff 66 | } 67 | } 68 | } 69 | {"username": "user8162l"} 70 | ----------------------------------------------------------------------------------- 71 | 72 | query languageStats($username: String!) { 73 | matchedUser(username: $username) { 74 | languageProblemCount { 75 | languageName 76 | problemsSolved 77 | } 78 | } 79 | } 80 | {"username": "user8162l"} 81 | ----------------------------------------------------------------------------------- 82 | 83 | query skillStats($username: String!) { 84 | matchedUser(username: $username) { 85 | tagProblemCounts { 86 | advanced { 87 | tagName 88 | tagSlug 89 | problemsSolved 90 | } 91 | intermediate { 92 | tagName 93 | tagSlug 94 | problemsSolved 95 | } 96 | fundamental { 97 | tagName 98 | tagSlug 99 | problemsSolved 100 | } 101 | } 102 | } 103 | } 104 | {"username": "user8162l"} 105 | ----------------------------------------------------------------------------------- 106 | 107 | query userContestRankingInfo($username: String!) { 108 | userContestRanking(username: $username) { 109 | attendedContestsCount 110 | rating 111 | globalRanking 112 | totalParticipants 113 | topPercentage 114 | badge { 115 | name 116 | } 117 | } 118 | userContestRankingHistory(username: $username) { 119 | attended 120 | trendDirection 121 | problemsSolved 122 | totalProblems 123 | finishTimeInSeconds 124 | rating 125 | ranking 126 | contest { 127 | title 128 | startTime 129 | } 130 | } 131 | } 132 | {"username": "user8162l"} 133 | ----------------------------------------------------------------------------------- 134 | 135 | query userProblemsSolved($username: String!) { 136 | allQuestionsCount { 137 | difficulty 138 | count 139 | } 140 | matchedUser(username: $username) { 141 | problemsSolvedBeatsStats { 142 | difficulty 143 | percentage 144 | } 145 | submitStatsGlobal { 146 | acSubmissionNum { 147 | difficulty 148 | count 149 | } 150 | } 151 | } 152 | } 153 | {"username": "user8162l"} 154 | ----------------------------------------------------------------------------------- 155 | 156 | query userBadges($username: String!) { 157 | matchedUser(username: $username) { 158 | badges { 159 | id 160 | name 161 | shortName 162 | displayName 163 | icon 164 | hoverText 165 | medal { 166 | slug 167 | config { 168 | iconGif 169 | iconGifBackground 170 | } 171 | } 172 | creationDate 173 | category 174 | } 175 | upcomingBadges { 176 | name 177 | icon 178 | progress 179 | } 180 | } 181 | } 182 | {"username": "user8162l"} 183 | ----------------------------------------------------------------------------------- 184 | 185 | query userProfileCalendar($username: String!, $year: Int) { 186 | matchedUser(username: $username) { 187 | userCalendar(year: $year) { 188 | activeYears 189 | streak 190 | totalActiveDays 191 | dccBadges { 192 | timestamp 193 | badge { 194 | name 195 | icon 196 | } 197 | } 198 | submissionCalendar 199 | } 200 | } 201 | } 202 | {"username": "user8162l"} 203 | ----------------------------------------------------------------------------------- 204 | 205 | query recentAcSubmissions($username: String!, $limit: Int!) { 206 | recentAcSubmissionList(username: $username, limit: $limit) { 207 | id 208 | title 209 | titleSlug 210 | timestamp 211 | } 212 | } 213 | {"username": "user8162l", "limit": 15} 214 | ----------------------------------------------------------------------------------- 215 | 216 | query getStreakCounter { 217 | streakCounter { 218 | streakCount 219 | daysSkipped 220 | currentDayCompleted 221 | } 222 | } 223 | ----------------------------------------------------------------------------------- 224 | 225 | query currentTimestamp { 226 | currentTimestamp 227 | } 228 | ----------------------------------------------------------------------------------- 229 | 230 | query questionOfToday { 231 | activeDailyCodingChallengeQuestion { 232 | date 233 | userStatus 234 | link 235 | question { 236 | acRate 237 | difficulty 238 | freqBar 239 | frontendQuestionId: questionFrontendId 240 | isFavor 241 | paidOnly: isPaidOnly 242 | status 243 | title 244 | titleSlug 245 | hasVideoSolution 246 | hasSolution 247 | topicTags { 248 | name 249 | id 250 | slug 251 | } 252 | } 253 | } 254 | } 255 | ----------------------------------------------------------------------------------- 256 | 257 | query codingChallengeMedal($year: Int!, $month: Int!) { 258 | dailyChallengeMedal(year: $year, month: $month) { 259 | name 260 | config { 261 | icon 262 | } 263 | } 264 | } 265 | {"year": 2023, "month": 7} 266 | ----------------------------------------------------------------------------------- 267 | 268 | query getUserProfile($username: String!) { 269 | matchedUser(username: $username) { 270 | activeBadge { 271 | displayName 272 | icon 273 | } 274 | } 275 | } 276 | {"username": "user8162l"} 277 | ----------------------------------------------------------------------------------- 278 | 279 | -------------------------------------------------------------------------------- /profile_page/profile_page.postman_collection.json: -------------------------------------------------------------------------------- 1 | {"info": {"_postman_id": "58a58369-384c-41de-9b97-e7f9c5cf1ce1", "name": "profile_page", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28418829"}, "item": [{"name": "globalData", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query globalData {\n userStatus {\n userId\n isSignedIn\n isMockUser\n isPremium\n isVerified\n username\n avatar\n isAdmin\n isSuperuser\n permissions\n isTranslator\n activeSessionId\n checkedInToday\n notificationStatus {\n lastModified\n numUnread\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "siteAnnouncements", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query siteAnnouncements {\n siteAnnouncements {\n title\n content\n blacklistUrls\n whitelistUrls\n navbarItem\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userPublicProfile", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userPublicProfile($username: String!) {\n matchedUser(username: $username) {\n contestBadge {\n name\n expired\n hoverText\n icon\n }\n username\n githubUrl\n twitterUrl\n linkedinUrl\n profile {\n ranking\n userAvatar\n realName\n aboutMe\n school\n websites\n countryName\n company\n jobTitle\n skillTags\n postViewCount\n postViewCountDiff\n reputation\n reputationDiff\n solutionCount\n solutionCountDiff\n categoryDiscussCount\n categoryDiscussCountDiff\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "languageStats", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query languageStats($username: String!) {\n matchedUser(username: $username) {\n languageProblemCount {\n languageName\n problemsSolved\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "skillStats", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query skillStats($username: String!) {\n matchedUser(username: $username) {\n tagProblemCounts {\n advanced {\n tagName\n tagSlug\n problemsSolved\n }\n intermediate {\n tagName\n tagSlug\n problemsSolved\n }\n fundamental {\n tagName\n tagSlug\n problemsSolved\n }\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userContestRankingInfo", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userContestRankingInfo($username: String!) {\n userContestRanking(username: $username) {\n attendedContestsCount\n rating\n globalRanking\n totalParticipants\n topPercentage\n badge {\n name\n }\n }\n userContestRankingHistory(username: $username) {\n attended\n trendDirection\n problemsSolved\n totalProblems\n finishTimeInSeconds\n rating\n ranking\n contest {\n title\n startTime\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userProblemsSolved", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userProblemsSolved($username: String!) {\n allQuestionsCount {\n difficulty\n count\n }\n matchedUser(username: $username) {\n problemsSolvedBeatsStats {\n difficulty\n percentage\n }\n submitStatsGlobal {\n acSubmissionNum {\n difficulty\n count\n }\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userBadges", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userBadges($username: String!) {\n matchedUser(username: $username) {\n badges {\n id\n name\n shortName\n displayName\n icon\n hoverText\n medal {\n slug\n config {\n iconGif\n iconGifBackground\n }\n }\n creationDate\n category\n }\n upcomingBadges {\n name\n icon\n progress\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "userProfileCalendar", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query userProfileCalendar($username: String!, $year: Int) {\n matchedUser(username: $username) {\n userCalendar(year: $year) {\n activeYears\n streak\n totalActiveDays\n dccBadges {\n timestamp\n badge {\n name\n icon\n }\n }\n submissionCalendar\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "recentAcSubmissions", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query recentAcSubmissions($username: String!, $limit: Int!) {\n recentAcSubmissionList(username: $username, limit: $limit) {\n id\n title\n titleSlug\n timestamp\n }\n}", "variables": "{\"username\": \"user8162l\", \"limit\": 15}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "getStreakCounter", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query getStreakCounter {\n streakCounter {\n streakCount\n daysSkipped\n currentDayCompleted\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "currentTimestamp", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query currentTimestamp {\n currentTimestamp\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "questionOfToday", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query questionOfToday {\n activeDailyCodingChallengeQuestion {\n date\n userStatus\n link\n question {\n acRate\n difficulty\n freqBar\n frontendQuestionId: questionFrontendId\n isFavor\n paidOnly: isPaidOnly\n status\n title\n titleSlug\n hasVideoSolution\n hasSolution\n topicTags {\n name\n id\n slug\n }\n }\n }\n}", "variables": ""}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "codingChallengeMedal", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query codingChallengeMedal($year: Int!, $month: Int!) {\n dailyChallengeMedal(year: $year, month: $month) {\n name\n config {\n icon\n }\n }\n}", "variables": "{\"year\": 2023, \"month\": 7}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}, {"name": "getUserProfile", "request": {"method": "POST", "header": [{"key": "Cookie", "value": "", "disabled": true}, {"key": "x-csrftoken", "value": "", "disabled": true}], "body": {"mode": "graphql", "graphql": {"query": "query getUserProfile($username: String!) {\n matchedUser(username: $username) {\n activeBadge {\n displayName\n icon\n }\n }\n}", "variables": "{\"username\": \"user8162l\"}"}}, "url": {"raw": "https://leetcode.com/graphql/", "protocol": "https", "host": ["leetcode", "com"], "path": ["graphql", ""]}}}]} -------------------------------------------------------------------------------- /rest_requests/rest_requests.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "2185c377-6748-4961-afcb-41f632b8daca", 4 | "name": "REST requests", 5 | "description": "HAR To Postman Generated Collection", 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", 7 | "_exporter_id": "28418829" 8 | }, 9 | "item": [ 10 | { 11 | "name": "Interpret Solution", 12 | "item": [ 13 | { 14 | "name": "Run Problem", 15 | "request": { 16 | "method": "POST", 17 | "header": [ 18 | { 19 | "key": "content-type", 20 | "value": "application/json" 21 | }, 22 | { 23 | "key": "x-csrftoken", 24 | "value": "{{csrftoken}}" 25 | }, 26 | { 27 | "key": "Origin", 28 | "value": "https://leetcode.com" 29 | }, 30 | { 31 | "key": "Referer", 32 | "value": "https://leetcode.com/problems/{{problemSlug}}", 33 | "type": "text" 34 | } 35 | ], 36 | "body": { 37 | "mode": "raw", 38 | "raw": "{\n \"lang\": \"python3\",\n \"question_id\": \"1\",\n \"typed_code\": \"class Solution:\\n def twoSum(self, nums: List[int], target: int) -> List[int]: return [4]\",\n \"data_input\": \"[2,7,11,15]\\n9\\n[3,2,4]\\n6\\n[3,3]\\n6\"\n}", 39 | "options": { 40 | "raw": { 41 | "language": "json" 42 | } 43 | } 44 | }, 45 | "url": { 46 | "raw": "{{baseURL1}}/problems/{{problemSlug}}/interpret_solution/", 47 | "host": [ 48 | "{{baseURL1}}" 49 | ], 50 | "path": [ 51 | "problems", 52 | "{{problemSlug}}", 53 | "interpret_solution", 54 | "" 55 | ] 56 | } 57 | }, 58 | "response": [] 59 | }, 60 | { 61 | "name": "https://leetcode.com/submissions/detail/{{interpret_id}}/check/", 62 | "request": { 63 | "method": "GET", 64 | "header": [ 65 | { 66 | "key": "Referer", 67 | "value": "https://leetcode.com/problems/{{problemSlug}}/submissions" 68 | }, 69 | { 70 | "key": "content-type", 71 | "value": "application/json" 72 | }, 73 | { 74 | "key": "x-csrftoken", 75 | "value": "{{csrftoken}}" 76 | } 77 | ], 78 | "url": { 79 | "raw": "https://leetcode.com/submissions/detail/{{interpret_id}}/check/", 80 | "protocol": "https", 81 | "host": [ 82 | "leetcode", 83 | "com" 84 | ], 85 | "path": [ 86 | "submissions", 87 | "detail", 88 | "{{interpret_id}}", 89 | "check", 90 | "" 91 | ] 92 | } 93 | }, 94 | "response": [] 95 | } 96 | ] 97 | }, 98 | { 99 | "name": "Submit Solution", 100 | "item": [ 101 | { 102 | "name": "https://leetcode.com/submissions/detail/{{submissionId}}/check/", 103 | "request": { 104 | "method": "GET", 105 | "header": [ 106 | { 107 | "key": "Referer", 108 | "value": "https://leetcode.com/problems/{{problemSlug}}" 109 | }, 110 | { 111 | "key": "content-type", 112 | "value": "application/json" 113 | }, 114 | { 115 | "key": "x-csrftoken", 116 | "value": "{{csrftoken}}" 117 | } 118 | ], 119 | "url": { 120 | "raw": "https://leetcode.com/submissions/detail/{{submissionId}}/check/", 121 | "protocol": "https", 122 | "host": [ 123 | "leetcode", 124 | "com" 125 | ], 126 | "path": [ 127 | "submissions", 128 | "detail", 129 | "{{submissionId}}", 130 | "check", 131 | "" 132 | ] 133 | } 134 | }, 135 | "response": [] 136 | }, 137 | { 138 | "name": "Submit Solution", 139 | "request": { 140 | "method": "POST", 141 | "header": [ 142 | { 143 | "key": "Host", 144 | "value": "leetcode.com" 145 | }, 146 | { 147 | "key": "Referer", 148 | "value": "https://leetcode.com/problems/{{problemSlug}}/" 149 | }, 150 | { 151 | "key": "content-type", 152 | "value": "application/json" 153 | }, 154 | { 155 | "key": "x-csrftoken", 156 | "value": "{{csrftoken}}" 157 | }, 158 | { 159 | "key": "Origin", 160 | "value": "https://leetcode.com" 161 | } 162 | ], 163 | "body": { 164 | "mode": "raw", 165 | "raw": "{\n \"lang\": \"python3\",\n \"question_id\": \"1\",\n \"typed_code\": \"class Solution:\\n def twoSum(self, nums: List[int], target: int) -> List[int]: return [1]\"\n}", 166 | "options": { 167 | "raw": { 168 | "language": "json" 169 | } 170 | } 171 | }, 172 | "url": { 173 | "raw": "{{baseURL1}}/problems/{{problemSlug}}/submit/", 174 | "host": [ 175 | "{{baseURL1}}" 176 | ], 177 | "path": [ 178 | "problems", 179 | "{{problemSlug}}", 180 | "submit", 181 | "" 182 | ] 183 | } 184 | }, 185 | "response": [] 186 | } 187 | ] 188 | } 189 | ], 190 | "variable": [ 191 | { 192 | "key": "baseURL1", 193 | "value": "https://leetcode.com", 194 | "type": "any" 195 | } 196 | ] 197 | } 198 | -------------------------------------------------------------------------------- /rest_requests/run/get_run_status.http: -------------------------------------------------------------------------------- 1 | GET /submissions/detail/{<------interpret-id(received upon running the solution)------>}/check/ HTTP/1.1 2 | Host: leetcode.com 3 | Referer: https://leetcode.com/problems/{<------problem-slug------>}/submissions 4 | content-type: application/json 5 | x-csrftoken: {<------csrftoken------>} 6 | Cookie: LEETCODE_SESSION={<------LEETCODE_SESSION------>}; csrftoken={<------csrftoken------>} 7 | -------------------------------------------------------------------------------- /rest_requests/run/run_solution.http: -------------------------------------------------------------------------------- 1 | POST /problems/{<------problem-slug------>}/interpret_solution/ HTTP/1.1 2 | Host: leetcode.com 3 | User-Agent: curl/8.0.1 4 | Accept: */* 5 | content-type: application/json 6 | Origin: https://leetcode.com 7 | Referer: https://leetcode.com/problems/{<------problem-slug------>}/ 8 | x-csrftoken: {<------csrftoken------>} 9 | Cookie: LEETCODE_SESSION={<------LEETCODE_SESSION------>}; csrftoken={<------csrftoken------>} 10 | 11 | { 12 | "lang": "python3", 13 | "question_id": "1", 14 | "typed_code": "class Solution:\n def twoSum(self, nums: List[int], target: int) -> List[int]: return [4]", 15 | "data_input": "[2,7,11,15]\n9\n[3,2,4]\n6\n[3,3]\n6" 16 | } 17 | -------------------------------------------------------------------------------- /rest_requests/submit/submit.http: -------------------------------------------------------------------------------- 1 | POST /problems/{<------problem-slug------>}/submit/ HTTP/1.1 2 | Host: leetcode.com 3 | Referer: https://leetcode.com/problems/{<------problem-slug------>}/ 4 | content-type: application/json 5 | Origin: https://leetcode.com 6 | x-csrftoken: {<------csrftoken------>} 7 | Cookie: LEETCODE_SESSION={<------LEETCODE_SESSION------>}; csrftoken={<------csrftoken------>} 8 | 9 | { 10 | "lang": "python3", 11 | "question_id": "1", 12 | "typed_code": "class Solution:\n def twoSum(self, nums: List[int], target: int) -> List[int]: return [1]" 13 | } 14 | -------------------------------------------------------------------------------- /rest_requests/submit/submit_status.http: -------------------------------------------------------------------------------- 1 | GET /submissions/detail/{<------submissionId(allNumeric)------>}/check/ HTTP/1.1 2 | Host: leetcode.com 3 | Referer: https://leetcode.com/problems/{<------problem-slug------>} 4 | content-type: application/json 5 | x-csrftoken: {<------csrftoken------>} 6 | Cookie: LEETCODE_SESSION={<------LEETCODE_SESSION------>}; csrftoken={<------csrftoken------>} 7 | -------------------------------------------------------------------------------- /screenshots/postman_screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akarsh1995/leetcode-graphql-queries/a2f0a78fba66fd15031da70fea5ce92f7689e95a/screenshots/postman_screenshot.png --------------------------------------------------------------------------------