Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Mencoro Captures API
description: 'Public API for Mencoro customers. Authenticate with an API key: `Authorization: Bearer mencoro_sk_...`.'
termsOfService: https://mencoro.com/legal/
contact:
name: Mencoro Support
url: https://mencoro.com/contact/
email: support@mencoro.com
license:
name: Proprietary
url: https://mencoro.com/legal/
version: 1.0.0
servers:
- url: https://api.mencoro.com
description: Production
security:
- ApiKey: []
tags:
- name: Captures
description: Captures
paths:
/api/v1/organizations/{organizationId}/projects/{projectId}/ai-responses:
get:
tags:
- Captures
summary: List captured AI answers
description: 'Minimum role: viewer. Every AI answer captured for a project, newest first, one page at a time. This is the evidence under the analytics operations: the full answer text and the sources the engine cited, exactly as captured. Read `unresolved` on a citation before attributing its domain — a true value means the URL is still a redirector and the domain belongs to that redirector, not to the publisher; count the citation, do not credit the site. `passIndex` and `passCount` describe multi-pass sampling: rows sharing a `trackedQueryId` and `capturedAt` are passes of one run, not duplicates, so aggregating across them without dividing by `passCount` double-counts that run. `responseText` is the whole answer, so a page of 100 is a large response — lower `limit` rather than paging blind. Captures are kept for 16 months and purged after that; a `dateFrom` before the window is rejected rather than answered with an empty page. `total` counts every capture the filter matches, not the size of this page.'
operationId: listAiResponses
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
- name: dateFrom
in: query
description: Inclusive lower bound, widened to 00:00:00 UTC of the named day. Must be inside the retention window.
schema:
type: string
format: date
- name: dateTo
in: query
description: Inclusive upper bound, widened to 23:59:59 UTC of the named day.
schema:
type: string
format: date
- name: trackedQueryId
in: query
description: Only captures of this tracked query. Must belong to the project in the path.
schema:
type: string
format: uuid
- name: engines
in: query
description: Only captures from these AI engines. Repeat the parameter or pass a comma-separated list. An empty filter means every engine.
schema:
type: array
items:
type: string
enum:
- chatgpt
- claude
- perplexity
- google_ai_overview
- google_ai_mode
- name: limit
in: query
description: Page size. A larger value is rejected, never silently reduced.
schema:
type: integer
default: 20
maximum: 100
minimum: 1
- name: offset
in: query
description: Number of captures to skip before the page starts.
schema:
type: integer
default: 0
minimum: 0
- name: sortOrder
in: query
description: Direction of the capture-time ordering. An unknown value is rejected, not replaced by the default.
schema:
type: string
default: desc
enum:
- asc
- desc
responses:
'200':
description: A page of captured AI answers and the total the filter matches
content:
application/json:
schema:
properties:
items:
type: array
items:
$ref: '#/components/schemas/AiResponseResource'
total:
description: Captures matching the filter, not the size of this page
type: integer
type: object
'400':
description: A filter, pagination or ordering parameter was rejected; the details name the field
'401':
description: Missing or invalid API key
'403':
description: The key lacks the read capability
'404':
description: No organization or project the caller can access under these ids
/api/v1/organizations/{organizationId}/projects/{projectId}/search-snapshots:
get:
tags:
- Captures
summary: List captured search-results pages
description: 'Minimum role: viewer. Every organic search page captured for a project, newest first, one page at a time. This is what the rank figures in the analytics operations were computed from: the ranked results as they stood at `capturedAt`, not as they stand now. Read `unresolved` on a result before attributing its domain — a true value means the URL is still a redirector and the domain belongs to that redirector; count the result, do not credit the site. `rating` and `ratingVotes` come from a rich-result star rating when Google showed one and are absent far more often than present; their absence says nothing about the page. There is no `engines` filter because every capture here comes from Google SERP. Captures are kept for 16 months and purged after that; a `dateFrom` before the window is rejected rather than answered with an empty page. `total` counts every capture the filter matches, not the size of this page.'
operationId: listSearchSnapshots
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
- name: dateFrom
in: query
description: Inclusive lower bound, widened to 00:00:00 UTC of the named day. Must be inside the retention window.
schema:
type: string
format: date
- name: dateTo
in: query
description: Inclusive upper bound, widened to 23:59:59 UTC of the named day.
schema:
type: string
format: date
- name: trackedQueryId
in: query
description: Only captures of this tracked query. Must belong to the project in the path.
schema:
type: string
format: uuid
- name: limit
in: query
description: Page size. A larger value is rejected, never silently reduced.
schema:
type: integer
default: 20
maximum: 100
minimum: 1
- name: offset
in: query
description: Number of captures to skip before the page starts.
schema:
type: integer
default: 0
minimum: 0
- name: sortOrder
in: query
description: Direction of the capture-time ordering. An unknown value is rejected, not replaced by the default.
schema:
type: string
default: desc
enum:
- asc
- desc
responses:
'200':
description: A page of captured search-results pages and the total the filter matches
content:
application/json:
schema:
properties:
items:
type: array
items:
$ref: '#/components/schemas/SearchSnapshotResource'
total:
description: Captures matching the filter, not the size of this page
type: integer
type: object
'400':
description: A filter, pagination or ordering parameter was rejected; the details name the field
'401':
description: Missing or invalid API key
'403':
description: The key lacks the read capability
'404':
description: No organization or project the caller can access under these ids
/api/v1/organizations/{organizationId}/projects/{projectId}/shopping-snapshots:
get:
tags:
- Captures
summary: List captured shopping-results pages
description: 'Minimum role: viewer. Every shopping page captured for a project, newest first, one page at a time: the ranked offers as they stood at `capturedAt`. `price` and `currency` are what the seller showed at that moment — no tax normalisation, no shipping, no conversion — and two offers in one snapshot may carry different currencies, so convert before comparing. `productId` is the marketplace''s own identifier for the listing, stable enough to follow one offer across snapshots, and it is not a Mencoro id. Offers turn over far faster than organic results, so two snapshots days apart routinely share none; that is the marketplace behaving normally, not a gap in the capture. Unlike organic results, a shopping offer carries no `unresolved` flag: the capture pipeline does not record one for this surface. Shopping captures are trimmed by the same raw-data purge as AI answers and search pages, so the same retention floor applies: a `dateFrom` before it is refused rather than answered with an empty page. `total` counts every capture the filter matches, not the size of this page.'
operationId: listShoppingSnapshots
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
- name: dateFrom
in: query
description: 'Inclusive lower bound, widened to 00:00:00 UTC of the named day. A date before the retention floor is refused rather than answered with an empty page: shopping captures are aged out by the raw-data purge like every other capture.'
schema:
type: string
format: date
- name: dateTo
in: query
description: Inclusive upper bound, widened to 23:59:59 UTC of the named day.
schema:
type: string
format: date
- name: trackedQueryId
in: query
description: Only captures of this tracked query. Must belong to the project in the path.
schema:
type: string
format: uuid
- name: limit
in: query
description: Page size. A larger value is rejected, never silently reduced.
schema:
type: integer
default: 20
maximum: 100
minimum: 1
- name: offset
in: query
description: Number of captures to skip before the page starts.
schema:
type: integer
default: 0
minimum: 0
- name: sortOrder
in: query
description: Direction of the capture-time ordering. An unknown value is rejected, not replaced by the default.
schema:
type: string
default: desc
enum:
- asc
- desc
responses:
'200':
description: A page of captured shopping-results pages and the total the filter matches
content:
application/json:
schema:
properties:
items:
type: array
items:
$ref: '#/components/schemas/ShoppingSnapshotResource'
total:
description: Captures matching the filter, not the size of this page
type: integer
type: object
'400':
description: A filter, pagination or ordering parameter was rejected; the details name the field
'401':
description: Missing or invalid API key
'403':
description: The key lacks the read capability
'404':
description: No organization or project the caller can access under these ids
components:
schemas:
SearchResultResource:
description: One organic result of a captured search page
required:
- position
- url
- unresolved
properties:
position:
description: Rank on the captured page, starting at 1
type: integer
minimum: 1
url:
description: The result URL as captured, redirector included when unresolved is true
type: string
title:
description: Result title, when the page showed one
type:
- string
- 'null'
snippet:
description: Result snippet, when the page showed one
type:
- string
- 'null'
domain:
description: Host of url. Belongs to the redirector, not the publisher, when unresolved is true
type:
- string
- 'null'
rating:
description: Star rating shown in the rich result, when there was one
type:
- number
- 'null'
format: float
ratingVotes:
description: Number of votes behind rating, when the rich result reported one
type:
- integer
- 'null'
unresolved:
description: 'True when url still points at a redirector: count the result, do not attribute the domain'
type: boolean
type: object
AiResponseResource:
description: One captured AI answer with its citations
required:
- id
- projectId
- trackedQueryId
- engine
- responseText
- citations
- capturedAt
- passIndex
- passCount
properties:
id:
type: string
format: uuid
projectId:
description: The project this capture belongs to
type: string
format: uuid
trackedQueryId:
description: The tracked query that was asked
type: string
format: uuid
engine:
description: The AI engine that answered
type: string
responseText:
description: The full answer text as the engine produced it
type: string
citations:
description: Sources the engine cited, in the order it cited them
type: array
items:
$ref: '#/components/schemas/CitationResource'
capturedAt:
description: When the answer was captured, UTC
type: string
format: date-time
modelName:
description: Engine-reported model, when it reported one. Absent on captures taken before engines exposed it
type:
- string
- 'null'
passIndex:
description: Which sampling pass of the run this answer is, starting at 0
type: integer
minimum: 0
passCount:
description: How many passes that run took. Rows of one run share trackedQueryId and capturedAt
type: integer
minimum: 1
type: object
CitationResource:
description: A source cited inside one AI answer
required:
- url
- position
- unresolved
properties:
url:
description: The URL exactly as the engine cited it, redirector included when unresolved is true
type: string
position:
description: Place within this answer, starting at 1
type: integer
minimum: 1
anchorText:
description: The visible link text, when the engine provided one
type:
- string
- 'null'
title:
description: Title of the cited page, when the engine provided one
type:
- string
- 'null'
snippet:
description: Excerpt the engine showed for this source, when it provided one
type:
- string
- 'null'
publicationDate:
description: Publication date the engine reported, when it provided one
type:
- string
- 'null'
thumbnailUrl:
description: Preview image the engine showed for this source, when it provided one
type:
- string
- 'null'
domain:
description: Host of url. Belongs to the redirector, not the publisher, when unresolved is true
type:
- string
- 'null'
sourceName:
description: Publisher name the engine reported, when it provided one
type:
- string
- 'null'
unresolved:
description: 'True when url still points at a redirector: count the citation, do not attribute the domain'
type: boolean
type: object
SearchSnapshotResource:
description: One captured search-results page
required:
- id
- projectId
- trackedQueryId
- engine
- results
- capturedAt
properties:
id:
type: string
format: uuid
projectId:
description: The project this capture belongs to
type: string
format: uuid
trackedQueryId:
description: The tracked query that was searched
type: string
format: uuid
engine:
description: The search engine that was captured
type: string
results:
description: Organic results in rank order
type: array
items:
$ref: '#/components/schemas/SearchResultResource'
capturedAt:
description: When the page was captured, UTC
type: string
format: date-time
type: object
ShoppingSnapshotResource:
description: One captured shopping-results page
required:
- id
- projectId
- trackedQueryId
- engine
- offers
- capturedAt
properties:
id:
type: string
format: uuid
projectId:
description: The project this capture belongs to
type: string
format: uuid
trackedQueryId:
description: The tracked query that was searched
type: string
format: uuid
engine:
description: The shopping surface that was captured
type: string
offers:
description: Offers in rank order
type: array
items:
$ref: '#/components/schemas/ShoppingOfferResource'
capturedAt:
description: When the page was captured, UTC
type: string
format: date-time
type: object
ShoppingOfferResource:
description: One offer of a captured shopping page
required:
- rank
- title
- productUrl
- sellerName
- productId
- price
- currency
properties:
rank:
description: Rank on the captured page, starting at 1
type: integer
minimum: 1
title:
description: Product title as the marketplace showed it
type: string
productUrl:
description: Link to the offer
type: string
sellerName:
description: Seller name as the marketplace showed it
type: string
sellerDomain:
description: Seller host, when the marketplace reported one
type:
- string
- 'null'
productId:
description: The marketplace's own identifier for this listing, not a Mencoro id
type: string
thumbnailUrl:
description: Product image the marketplace showed, when it showed one
type:
- string
- 'null'
price:
description: 'Price as shown at capture time: no tax normalisation, no shipping, no conversion'
type: number
format: float
currency:
description: ISO-4217 currency of price. May differ between offers in one snapshot
type: string
rating:
description: Star rating shown for the offer, when there was one
type:
- number
- 'null'
format: float
ratingVotes:
description: Number of votes behind rating, when the marketplace reported one
type:
- integer
- 'null'
type: object
securitySchemes:
ApiKey:
type: http
description: 'A Mencoro API key, created from the app under API keys in the user menu. The plaintext key is shown once, at creation, and never again. A key only ever RESTRICTS: it never grants more than its owner''s live membership and role already allow, and every request re-checks those.'
scheme: bearer