VOOZH about

URL: https://apify.com/euphoric_melody/leetcode-graphql-apify-actor

⇱ Leetcode Graphql Apify Actor Β· Apify


Pricing

from $0.0005 / actor start

Go to Apify Store

Pricing

from $0.0005 / actor start

Rating

5.0

(1)

Developer

πŸ‘ Kapil

Kapil

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

2 months ago

Last modified

Share

LeetCode GraphQL Data Extractor (Apify Actor)

This Apify actor extracts data from LeetCode by running targeted GraphQL queries directly against the https://leetcode.com/graphql/ endpoint.

What it does

  • Includes a catalog of over 70+ LeetCode GraphQL operations (from user profiles to question details).
  • Allows you to select exactly which query you want to run from a dropdown.
  • Accepts specific input parameters (like username or titleSlug) to customize the query.
  • Extracts the exact data requested and saves the raw JSON payload to the Apify dataset.

How to use

  1. Select an Operation: Choose the query you want to execute (e.g., userPublicProfile, questionTitle, submissionList).
  2. Provide Variables: Provide the corresponding inputs for that query.
    • Example 1: If querying userPublicProfile, enter a valid LeetCode username.
    • Example 2: If querying questionTitle, enter the titleSlug (e.g., two-sum).
  3. Run the Actor: The actor will fetch the data and push it into the dataset.

Local Development

  1. Install dependencies:
    • npm install
  2. Configure your inputs in storage/key_value_stores/default/INPUT.json.
  3. Run the actor:
    • npm start

Example INPUT.json

To extract the profile of a specific user:

{
"operationName":"userPublicProfile",
"username":"kapil-2305"
}

To extract a question's details:

{
"operationName":"questionTitle",
"titleSlug":"two-sum"
}

Output

The result is pushed to the default dataset and includes:

  • The operationName and variables used.
  • The data property containing the raw JSON response from LeetCode.
  • Execution status and timings.

You might also like

LeetCode Scraper

crawlerbros/leetcode-scraper

Scrape LeetCode - browse all public coding problems with filters by difficulty, topic, and search. No login required.

GraphQL Extractor

jupri/graphql-extractor

πŸ’« Universal GraphQL Scraper

Leetcode API

taneja/leetcode-api-scraper

Scrape LeetCode user profiles, problems, contests, and discussions. Get user stats, solved problems, contest ratings, submission history, activity heatmaps, daily challenges, and more - all without authentication.

42

LeetCode Interview Questions Scraper

harvest/leetcode-interview-questions-scraper

Extract interview experiences and questions related to a specific company from LeetCode. This tool helps job seekers analyze common interview trends, question types, and candidate experiences.

87

Shopify Scraper (GraphQL)

runexes/actor-shopify-scraper

An Apify actor that crawls Shopify stores via `sitemap.xml` and fetches product data using the Storefront GraphQL API. Optimized for speed and cost with per-host batching, incremental processing, and buffered dataset writes.

Booking.com GraphQL Hotel Scraper

saadmohsin/booking-com-graphql

Use Booking.com’s private GraphQL FullSearch API to extract rich hotel data, prices, availability, images, facilities, geolocation, surroundings (POIs), review sub‑scores and moreβ€”in structured JSON or CSV.

29

5.0

Apify Developer Profile & Actor Deep Scraper

madeingermany/apify-profile-scraper

Scrape all public actors from Apify profiles, including details inside the actor.

πŸ‘ User avatar

Made In Germany

2

Apify Public Actor Scraper

zerobreak/apify-public-actor-scraper

Apify public actor scraper that pulls metadata from every public actor in the Apify marketplace including names, authors, run stats, and pricing, so SEO researchers and developers can map the ecosystem fast.

Related articles

Announcing Apify CLI v1
Read more