项目
在 GitHub 查看
akarsh1995/leetcode-graphql-queries
关于
Create leetcode plugins for your code editor, extensions for web browser, etc. from the graphql queries of various leetcode web pages.
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Leetcode webpage GraphQL queries
These leetcode GraphQL queries can help you get the various data from the leetcode's GraphQL endpoint.
https://leetcode.com/graphql

Quickstart:
curl --location 'https://leetcode.com/graphql/' \
--header 'Content-Type: application/json' \
--header 'Cookie: LEETCODE_SESSION=<LEETCODE_SESSION>; csrftoken=<csrftoken>' \
--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":{}}}'
Note: For authenticated requests make sure you add
LEETCODE_SESSIONandcsrftokencookies with the request.
Repo contains two types of files
*.postman_collections.json: Postman collection is directly importable in Postman App.*.graphql: GraphQL queries in plain text. Query is followed byvariableswherever applicable.
query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput) {
problemsetQuestionList: questionList(
categorySlug: $categorySlug
limit: $limit
skip: $skip
filters: $filters
) {
total: totalNum
questions: data {
acRate
difficulty
freqBar
frontendQuestionId: questionFrontendId
isFavor
paidOnly: isPaidOnly
status
title
titleSlug
topicTags {
name
id
slug
}
hasSolution
hasVideoSolution
}
}
}
{"categorySlug": "", "skip": 0, "limit": 50, "filters": {}}
探索相关项目
加载中…