# Kaggle dataset search API

Search Kaggle Dataset via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, page, q, and retrieve structured data including dataset owner/slug reference, dataset title, dataset license, dataset size in bytes, and reported usability score to find topic sources, and inspect selected files.

Documentation: https://openany.si/market/apis/kaggle/kaggle-dataset-search-api/?offering=b6e77113-85d7-47fb-a307-334298d51a4d
API ID: b6e77113-85d7-47fb-a307-334298d51a4d
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/kaggle/v1/datasets
Page update time: 2026-12-03T02:43:52.808Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:43:52.407Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Kaggle dataset search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Search words."
        },
        "sort": {
          "type": "string",
          "description": "Order (default hottest, or relevance with q).",
          "enum": [
            "hottest",
            "votes",
            "updated",
            "published",
            "downloads",
            "notebooks",
            "usability",
            "relevance",
            "active"
          ]
        },
        "size": {
          "type": "string",
          "description": "Dataset size group.",
          "enum": [
            "all",
            "small",
            "medium",
            "large"
          ]
        },
        "file_type": {
          "type": "string",
          "description": "File type.",
          "enum": [
            "all",
            "csv",
            "json",
            "sqlite",
            "parquet",
            "bigquery"
          ]
        },
        "license": {
          "type": "string",
          "description": "License group.",
          "enum": [
            "all",
            "cc",
            "gpl",
            "odb",
            "other"
          ]
        },
        "tag_ids": {
          "type": "string",
          "description": "Comma-separated tag ids (from /kaggle/v1/tags)."
        },
        "min_usability": {
          "type": "number",
          "description": "Minimum usability score, 0-10."
        },
        "user": {
          "type": "string",
          "description": "Only datasets of this Kaggle user or organization (username)."
        },
        "page": {
          "type": "integer",
          "description": "Page number."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "file_type": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "min_usability": {
          "type": "null"
        },
        "size": {
          "type": "string"
        },
        "sort": {
          "type": "string"
        },
        "tag_ids": {
          "type": "array",
          "items": {}
        },
        "user": {
          "type": "null"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "datasets": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "cover_image": {
                "type": "null"
              },
              "created_at": {
                "type": "string"
              },
              "creator": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "integer"
                  }
                }
              },
              "downloads": {
                "type": "integer"
              },
              "file_types": {
                "type": "null"
              },
              "id": {
                "type": "integer"
              },
              "license": {
                "type": "string"
              },
              "medal": {
                "type": "string"
              },
              "notebooks": {
                "type": "integer"
              },
              "owner": {
                "type": "object",
                "properties": {
                  "avatar": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "organization": {
                    "type": "null"
                  },
                  "tier": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "integer"
                  }
                }
              },
              "ref": {
                "type": "string"
              },
              "size_bytes": {
                "type": "integer"
              },
              "subtitle": {
                "type": "null"
              },
              "tags": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "full_path": {
                          "type": "string"
                        },
                        "id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "null"
                        },
                        "url": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "thumbnail": {
                "type": "null"
              },
              "title": {
                "type": "null"
              },
              "topics": {
                "type": "null"
              },
              "updated_at": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "usability": {
                "type": "integer"
              },
              "views": {
                "type": "integer"
              },
              "votes": {
                "type": "integer"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/kaggle/v1/datasets?output=json&page=1&q=covid' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "file_type": "all",
    "license": "all",
    "min_usability": null,
    "size": "all",
    "sort": "relevance",
    "tag_ids": [],
    "user": null
  },
  "cached": false,
  "count": 20,
  "credits_used": 1,
  "datasets": [
    {
      "cover_image": null,
      "created_at": "2020-01-30T14:46:58.440Z",
      "creator": {
        "name": "Devakumar K. P.",
        "url": "https://www.kaggle.com/imdevskp",
        "user_id": 1302389
      },
      "downloads": 438969,
      "file_types": null,
      "id": 494766,
      "license": "Other (specified in description)",
      "medal": "gold",
      "notebooks": 771,
      "owner": {
        "avatar": "https://storage.googleapis.com/kaggle-avatars/thumbnails/1302389-kg.jpg",
        "name": "Devakumar K. P.",
        "organization": null,
        "tier": "MASTER",
        "url": "https://www.kaggle.com/imdevskp",
        "user_id": 1302389
      },
      "ref": "imdevskp/corona-virus-report",
      "size_bytes": 19921674,
      "subtitle": null,
      "tags": [
        {
          "full_path": "subject > health and fitness > health > health conditions > diseases",
          "id": 4302,
          "name": "diseases",
          "slug": null,
          "url": "https://www.kaggle.com/tags/diseases"
        },
        {
          "full_path": "subject > health and fitness > health > public health",
          "id": 4309,
          "name": "public health",
          "slug": null,
          "url": "https://www.kaggle.com/tags/public-health"
        },
        "… 2 more"
      ],
      "thumbnail": null,
      "title": null,
      "topics": null,
      "updated_at": "2020-08-07T03:47:47.907Z",
      "url": "https://www.kaggle.com/datasets/imdevskp/corona-virus-report",
      "usability": 1,
      "views": 1604302,
      "votes": 2890
    },
    {
      "cover_image": null,
      "created_at": "2022-11-13T15:47:17.437Z",
      "creator": {
        "name": "Meir Nizri",
        "url": "https://www.kaggle.com/meirnizri",
        "user_id": 6637313
      },
      "downloads": 73574,
      "file_types": null,
      "id": 2633044,
      "license": "CC0: Public Domain",
      "medal": "silver",
      "notebooks": 127,
      "owner": {
        "avatar": "https://storage.googleapis.com/kaggle-avatars/thumbnails/6637313-kg.JPG",
        "name": "Meir Nizri",
        "organization": null,
        "tier": "CONTRIBUTOR",
        "url": "https://www.kaggle.com/meirnizri",
        "user_id": 6637313
      },
      "ref": "meirnizri/covid19-dataset",
      "size_bytes": 4890659,
      "subtitle": null,
      "tags": [
        {
          "full_path": "subject > health and fitness > health > health conditions > diseases",
          "id": 4302,
          "name": "diseases",
          "slug": null,
          "url": "https://www.kaggle.com/tags/diseases"
        },
        {
          "full_path": "subject > health and fitness > health",
          "id": 11111,
          "name": "health",
          "slug": null,
          "url": "https://www.kaggle.com/tags/health"
        },
        "… 2 more"
      ],
      "thumbnail": null,
      "title": null,
      "topics": null,
      "updated_at": "2022-11-13T15:47:17.437Z",
      "url": "https://www.kaggle.com/datasets/meirnizri/covid19-dataset",
      "usability": 1,
      "views": 380272,
      "votes": 901
    },
    "… 18 more"
  ],
  "next_page": 2,
  "page": 1,
  "query": "covid",
  "total": 7431
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/kaggle/kaggle-dataset-search-api/?offering=b6e77113-85d7-47fb-a307-334298d51a4d

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
