# Mail Spaces API

> Spaces from mail.ru with image url and title fields, plus filter inputs.

- Page: https://cleanedweb.com/catalog/mail-spaces-api/
- Contract (JSON): https://cleanedweb.com/catalog/mail-spaces-api/contract.json
- Source: otvet.mail.ru (https://otvet.mail.ru/)
- Category: Social & communities
- Updated: 2026-11-23

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `Молодёжь отказывается от негатива в соцсетях.` |
| `url` | string | `https://otvet.mail.ru/question/270787327` |
| `image_url` | string | `https://otvet.cdn-vk.net/api/pictures/images/1d6ca3442bfdcbaaa8f079b41e14e92e48fe6fdc402248c0f7dc4727e4627d18fa8cf448a1dc32e648712542a4b6fbb7_small.jpg` |
| `answer_preview` | string | `Они настраивают ленты так, чтобы им попадался только позитивный контент. Это яв…` |
| `count` | integer | `0` |
| `count_5` | integer | `0` |
| `posted_time` | string | `1ч` |
| `related_title` | string | `gym_master_99` |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/mail-spaces-api/contract.json

## Inputs

- `collection` (string): Optional. Chooses one of the site's collections. Leave it out for the default one. Options: О любви без купюр, Философский вопрос, Политические дебаты.
- `search` (string \| array of string): Optional. Text for the site's search box. Leave it out to read everything.
- `category` (string): Optional. Free text: any category the site serves, written with letters, digits, underscores and hyphens, up to 32 characters. A name the site does not serve is refused. Leave it out for the default listing. For example: popular (🔥 Популярное), debated (💬 Обсуждаемое). Pattern: `^[A-Za-z0-9][A-Za-z\-_0-9]{0,31}$`.

`enrich_records` is on by default and adds the fields that only appear on each record's detail page. Send `false` to read list fields only. See https://cleanedweb.com/docs/run-api/

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_231bf1ae51b44271ad5f514c/endpoints/generated_231bf1ae51b44271ad5f514c_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_231bf1ae51b44271ad5f514c/endpoints/generated_231bf1ae51b44271ad5f514c_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "collection": "О любви без купюр"
  },
  "version": 1,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_231bf1ae51b44271ad5f514c/endpoints/generated_231bf1ae51b44271ad5f514c_search/result`

## Versions

Current: `1.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v1: current, newest minor `1.0`

### Changelog

- `1.0` (major) 2026-11-20

The same changelog, as data, is in https://cleanedweb.com/catalog/mail-spaces-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_231bf1ae51b44271ad5f514c`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with otvet.mail.ru.
