Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Leetcode api is not fetching contest list properly #46

Closed
mukund0909 opened this issue Jan 25, 2022 · 5 comments
Closed

Leetcode api is not fetching contest list properly #46

mukund0909 opened this issue Jan 25, 2022 · 5 comments

Comments

@mukund0909
Copy link

Leetcode api is not fetching contest list properly

@nisarg0
Copy link

nisarg0 commented Jan 27, 2022

Yep, @AliOsm can please look into it!

@AliOsm
Copy link
Owner

AliOsm commented Jan 27, 2022

Checking...
I'm getting better, responding after 2 days only 😎✌🏻

@AliOsm
Copy link
Owner

AliOsm commented Jan 27, 2022

LeetCode changed their old API https://leetcode.com/contest/api/list to a GraphQL API https://leetcode.com/graphql?query=.

To get all contests list, a query like this should be used:

{
  brightTitle
  currentTimestamp
  allContests {
    containsPremium
    title
    cardImg
    titleSlug
    description
    startTime
    duration
    originStartTime
    isVirtual
    company {
      watermark
      __typename
    }
    __typename
  }
}

I need some time to do this change, I will keep this issue updated.

@AliOsm
Copy link
Owner

AliOsm commented Jan 27, 2022

You can use this link to access all contests list.

@AliOsm
Copy link
Owner

AliOsm commented Jan 27, 2022

Fixed in this commit.

@AliOsm AliOsm closed this as completed Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants