# GeeksforGeeks Practice Problems API

> GeeksforGeeks practice problems by difficulty, company and topic, with accuracy and submissions

- Vendor: `geeksforgeekspracticeproblemsa` · version 1.0 · category Education · tags geeksforgeeks api, coding problems api, dsa problems api, interview questions api, gfg practice api, company coding questions api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/geeksforgeekspracticeproblemsa
- This document: https://apiclay.com/docs/geeksforgeekspracticeproblemsa.md
- OpenAPI 3.1: https://apiclay.com/api/geeksforgeekspracticeproblemsa/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `geeksforgeekspracticeproblemsa`
- Updated: 2026-11-18

## About

## GeeksforGeeks Practice Problems API

The problem list behind GeeksforGeeks Practice: data structures and algorithms problems with name, slug, difficulty, accuracy, submission count, topic tags and the companies that asked them, filterable by difficulty, company and topic and sortable by popularity, 30 per page.

Data comes from **geeksforgeeks.org** (https://www.geeksforgeeks.org). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/problems?page=1`, or filter with `difficulty[]=1&amp;company[]=Amazon` or `category[]=Arrays`.

### Routes

#### GET `/problems` - Problems
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| page | query | number | no | Page, from 1 (30 problems per page). |
| sortBy | query | string | no | `submissions` or `accuracy`. |
| difficulty[] | query | string | no | `-1` basic, `0` easy, `1` medium, `2` hard. |
| company[] | query | string | no | e.g. `Amazon`, `Microsoft`, `Google`. |
| category[] | query | string | no | Topic, e.g. `Arrays`, `Dynamic Programming`. |

Returns: `total`, `next`, `results[]` with `id`, `problem_name`, `slug`, `difficulty`, `accuracy`, `all_submissions`, `tags` (`company_tags`, `topic_tags`), `problem_url`.

### Caveats

- Problem statements and solutions stay on GeeksforGeeks; this route lists problems only.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by geeksforgeeks.org.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /problems — Problems
- Gateway: `GET https://api.apiclay.com/v1/api/geeksforgeekspracticeproblemsa/problems`
- Public query params: `page` (number), `sortBy` (string), `difficulty[]` (string), `company[]` (string), `category[]` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/geeksforgeekspracticeproblemsa/problems" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
