# OpenCart Greece public API

The website provides a public, read-only blog feed and a read-only MCP server. No authentication is required.

## Authentication

None. Send requests without an `Authorization` header, API key or cookie. There is no registration step;
see [auth.md](https://open-cart.gr/auth.md) for the full access rules.

## Blog feed

Send `GET https://open-cart.gr/api/v1/blog-feed.json` to read recent articles.
The optional `limit` query parameter defaults to 12 and is clamped to 1–20.
For example: `https://open-cart.gr/api/v1/blog-feed.json?limit=3`.
`https://open-cart.gr/api/blog-feed.json` is an alias of the v1 path for existing clients.

```sh
curl -s 'https://open-cart.gr/api/v1/blog-feed.json?limit=3'
```

```json
{
  "source": "https://www.opencartgreece.gr/feed/",
  "fetchedAt": "2026-11-23T20:09:53.105Z",
  "stale": false,
  "items": [
    {
      "id": "https://www.opencartgreece.gr/neo-eshop-opencart-greece/",
      "title": "Το νέο eshop της OpenCart Greece είναι live",
      "url": "https://www.opencartgreece.gr/neo-eshop-opencart-greece/",
      "publishedAt": "2026-05-26T17:27:30.000Z",
      "excerpt": "Το eShop της OpenCart Greece ανανεώθηκε με νέο σχεδιασμό…"
    }
  ]
}
```

The JSON response contains `source`, `fetchedAt`, `stale`, and `items`.
Each item contains `id`, `title`, `url`, `publishedAt`, and `excerpt`.
Timestamps use ISO 8601. Feed data is cached for about 1 hour.
When upstream retrieval fails, cached data may be returned with `stale: true`.
If no cached feed is available, the response has status 502 and `Content-Type: application/problem+json`,
with the problem details members described below plus `stale: true` and an empty `items` array.

## Errors

Errors use RFC 9457 problem details with `Content-Type: application/problem+json`:
`type`, `title`, `status` and `detail`, plus `error` (same value as `title`) for older clients.
Methods other than GET return 405 with `Allow: GET`. Unknown `/api/` paths return 404.

```sh
curl -s -X POST https://open-cart.gr/api/v1/blog-feed.json
# {"type":"about:blank","title":"Method Not Allowed","status":405,"detail":"Use GET to read the blog feed.","error":"Method Not Allowed"}
```

## Versioning

The major version is part of the path. Additive changes keep the same version.
A breaking change ships under a new path such as `/api/v2/`; the older version is then announced
with `Deprecation` and `Sunset` response headers before it is removed.

## MCP server

`https://open-cart.gr/mcp` is a stateless Streamable HTTP MCP server (protocol versions 2025-11-25, 2025-06-18 and 2025-03-26).
Its tools are `search_site_pages`, `read_site_page` and `list_recent_blog_posts`; its resources are the Markdown page summaries listed in `/llms.txt`.
All tools are read-only. The server card is at `/.well-known/mcp/server-card.json`.

```sh
curl -s https://open-cart.gr/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_site_pages","arguments":{"query":"support plans"}}}'
```

## Discovery

The machine-readable API description is at `/openapi.json`.
The RFC 9727 API catalog is at `/.well-known/api-catalog`.
The agentic resource catalog is at `/.well-known/ard.json`.
