Next.js Discord

Discord Forum

Getting LeetCode Problem statement from problem ID

Unanswered
QBit posted this in #help-forum
Open in Discord
I am building this [LeetCode Board](https://leetcode-board-two.vercel.app/problems/31)
Here in the current screen of whiteboard I want half of the portion occupied by the leetcode problem statement so that the user can easily make notes of it. I am getting this whiteboard by problem ID (here it is 31). So How can I fetch the problem statement if I have the problem ID only? (I don't have the problem name) . I attached the image like how should my final output look. Problem statement on the left and on the right whiteboard.

I searched on the internet, the solution providing problem statement by problem name. but I want it by problem ID. How can I do this?

5 Replies

Netherland Dwarf
You can check their api docs
@Netherland Dwarf You can check their api docs
no API officially documented
@Netherland Dwarf
Netherland Dwarf
Sorry but im not sure then.
ok