Opinly Content API
The Content API from Opinly — 8 operation(s) for content.
The Content API from Opinly — 8 operation(s) for content.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/opinly-ai:opinly-ai-content-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Opinly SDK Content API
version: 1.0.0
description: Headless content API for the Opinly SDK.
tags:
- name: Content
paths:
/v1/content/posts:
get:
tags:
- Content
summary: List published posts (cursor-paginated, filterable)
security:
- BearerAuth: []
parameters:
- schema:
type: integer
minimum: 1
maximum: 100
default: 12
example: 12
description: Page size (1–100).
required: false
description: Page size (1–100).
name: limit
in: query
- schema:
type: string
description: Opaque cursor from a previous response's next_cursor.
required: false
description: Opaque cursor from a previous response's next_cursor.
name: cursor
in: query
- schema:
type: string
description: Filter by category slug.
example: nutrition
required: false
description: Filter by category slug.
name: category
in: query
- schema:
type: string
description: Filter by author slug.
example: jane-doe
required: false
description: Filter by author slug.
name: author
in: query
- schema:
type: string
description: Filter by tag slug.
example: link-building
required: false
description: Filter by tag slug.
name: tag
in: query
- schema:
type: string
enum:
- newest
- oldest
default: newest
description: Sort by first-published date.
required: false
description: Sort by first-published date.
name: sort
in: query
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: A cursor-paginated page of published posts
content:
application/json:
schema:
$ref: '#/components/schemas/PostList'
'400':
description: Invalid query parameters (e.g. bad limit, sort, or cursor)
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentPosts
x-operation-id-source: derived
/v1/content/routes:
get:
tags:
- Content
summary: All addressable content routes (sitemap + static generation)
security:
- BearerAuth: []
parameters:
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: Typed routes (home, posts, categories, authors) with bare slugs + lastModified
content:
application/json:
schema:
$ref: '#/components/schemas/ContentRoutes'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentRoutes
x-operation-id-source: derived
/v1/content/categories:
get:
tags:
- Content
summary: Categories with sample posts
security:
- BearerAuth: []
parameters:
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: Categories, each with up to 5 latest posts
content:
application/json:
schema:
$ref: '#/components/schemas/Categories'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentCategories
x-operation-id-source: derived
/v1/content/tags:
get:
tags:
- Content
summary: Tags with published-post counts
security:
- BearerAuth: []
parameters:
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: Topic tags, each with a count of its published posts
content:
application/json:
schema:
$ref: '#/components/schemas/Tags'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentTags
x-operation-id-source: derived
/v1/content/authors:
get:
tags:
- Content
summary: All authors with sample posts
security:
- BearerAuth: []
parameters:
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: All authors
content:
application/json:
schema:
$ref: '#/components/schemas/Authors'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentAuthors
x-operation-id-source: derived
/v1/content/authors/{slug}:
get:
tags:
- Content
summary: A single author page
security:
- BearerAuth: []
parameters:
- schema:
type: string
required: true
name: slug
in: path
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: Author page, or not-found
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorPage'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentAuthorsBySlug
x-operation-id-source: derived
/v1/content/post:
get:
tags:
- Content
summary: A single post by slug
security:
- BearerAuth: []
parameters:
- schema:
type: string
description: The post's company-unique slug (flat, no category path).
example: my-post
required: true
description: The post's company-unique slug (flat, no category path).
name: slug
in: query
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: The post
content:
application/json:
schema:
$ref: '#/components/schemas/FullPost'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: No post found at that slug
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentPost
x-operation-id-source: derived
/v1/content/rss:
get:
tags:
- Content
summary: RSS feed items
security:
- BearerAuth: []
parameters:
- schema:
type: integer
minimum: 1
maximum: 100
default: 20
example: 20
required: false
name: limit
in: query
- schema:
type: string
enum:
- 'true'
- 'false'
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
example: 'true'
required: false
description: Serve each post's unpublished working copy, and include posts that have never been published. For previews; leave off on a live site.
name: showDraft
in: query
responses:
'200':
description: RSS feed items
content:
application/json:
schema:
$ref: '#/components/schemas/Rss'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
operationId: getV1ContentRss
x-operation-id-source: derived
components:
schemas:
Categories:
type: array
items:
$ref: '#/components/schemas/CategorySummary'
ContentNode:
type: object
properties:
type:
type: string
attrs:
type: object
additionalProperties:
nullable: true
marks:
type: array
items:
$ref: '#/components/schemas/ContentMark'
text:
type: string
content:
type: array
items:
$ref: '#/components/schemas/ContentNode'
Image:
type: object
nullable: true
properties:
fileKey:
type: string
nullable: true
alt:
type: string
nullable: true
title:
type: string
nullable: true
caption:
type: string
nullable: true
required:
- fileKey
- alt
- title
- caption
PostTag:
type: object
properties:
slug:
type: string
name:
type: string
required:
- slug
- name
ContentMark:
type: object
properties:
type:
type: string
attrs:
type: object
additionalProperties:
nullable: true
required:
- type
FullPost:
type: object
properties:
content:
$ref: '#/components/schemas/ContentNode'
title:
type: string
slug:
type: string
description:
type: string
metaDescription:
type: string
nullable: true
metaTitle:
type: string
nullable: true
titleFile:
type: object
nullable: true
properties:
fileKey:
type: string
nullable: true
altText:
type: string
nullable: true
title:
type: string
nullable: true
caption:
type: string
nullable: true
required:
- fileKey
- altText
- title
- caption
firstPublishedAt:
type: string
modifiedAt:
type: string
images:
type: array
items:
type: object
properties:
fileKey:
type: string
nullable: true
altText:
type: string
nullable: true
title:
type: string
nullable: true
caption:
type: string
nullable: true
required:
- fileKey
- altText
- title
- caption
author:
type: object
nullable: true
properties:
name:
type: string
fileKey:
type: string
nullable: true
bio:
type: string
nullable: true
slug:
type: string
required:
- name
- fileKey
- bio
- slug
faqs:
type: array
nullable: true
items:
type: object
properties:
question:
type: string
answer:
type: string
required:
- question
- answer
category:
$ref: '#/components/schemas/PostCategory'
tags:
type: array
items:
$ref: '#/components/schemas/PostTag'
required:
- content
- title
- slug
- description
- metaDescription
- metaTitle
- titleFile
- firstPublishedAt
- modifiedAt
- images
- author
- faqs
- category
- tags
Post:
type: object
properties:
slug:
type: string
title:
type: string
description:
type: string
firstPublishedAt:
type: string
example: '2026-01-01T00:00:00.000Z'
lastPublishedAt:
type: string
example: '2026-01-01T00:00:00.000Z'
image:
$ref: '#/components/schemas/Image'
category:
$ref: '#/components/schemas/PostCategory'
author:
$ref: '#/components/schemas/PostAuthor'
tags:
type: array
items:
$ref: '#/components/schemas/PostTag'
required:
- slug
- title
- description
- firstPublishedAt
- lastPublishedAt
- image
- category
- author
- tags
Rss:
type: array
items:
type: object
properties:
slug:
type: string
title:
type: string
description:
type: string
date:
type: string
categories:
type: array
items:
type: string
required:
- slug
- title
- date
PostCategory:
type: object
nullable: true
properties:
slug:
type: string
name:
type: string
description:
type: string
required:
- slug
- name
- description
TagSummary:
type: object
properties:
slug:
type: string
name:
type: string
description:
type: string
nullable: true
postCount:
type: number
required:
- slug
- name
- description
- postCount
AuthorPage:
oneOf:
- type: object
properties:
type:
type: string
enum:
- not-found
data:
nullable: true
required:
- type
- data
- type: object
properties:
type:
type: string
enum:
- author
data:
type: object
properties:
name:
type: string
slug:
type: string
image:
$ref: '#/components/schemas/Image'
bio:
type: string
nullable: true
posts:
type: array
items:
$ref: '#/components/schemas/Post'
required:
- name
- slug
- image
- bio
- posts
required:
- type
- data
ContentRoutes:
type: array
items:
type: object
properties:
type:
type: string
enum:
- home
- post
- category
- author
- tag
example: post
slug:
type: string
description: Bare slug — no taxonomy prefix, no nesting. Empty for `home`.
example: my-post
lastModified:
type: string
example: '2026-01-01T00:00:00.000Z'
required:
- type
- slug
- lastModified
Problem:
type: object
properties:
type:
type: string
example: https://opinly.ai/docs/reference/errors/not-found
title:
type: string
example: Not found
status:
type: number
example: 404
detail:
type: string
instance:
type: string
code:
type: string
example: NOT_FOUND
request_id:
type: string
required:
- type
- title
- status
- code
CategorySummary:
type: object
properties:
slug:
type: string
title:
type: string
description:
type: string
nullable: true
imageUrl:
type: string
nullable: true
posts:
type: array
items:
$ref: '#/components/schemas/Post'
required:
- slug
- title
- description
- imageUrl
- posts
Tags:
type: array
items:
$ref: '#/components/schemas/TagSummary'
PostList:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Post'
has_more:
type: boolean
example: true
next_cursor:
type: string
nullable: true
description: Opaque cursor; pass as ?cursor= for the next page. null when no more.
example: MTcwMDAwMDAwMDAwMDoxMjM
required:
- data
- has_more
- next_cursor
PostAuthor:
type: object
nullable: true
properties:
name:
type: string
slug:
type: string
fileKey:
type: string
nullable: true
bio:
type: string
nullable: true
required:
- name
- slug
- fileKey
- bio
Authors:
type: object
properties:
type:
type: string
enum:
- authors
data:
type: array
items:
type: object
properties:
name:
type: string
image:
$ref: '#/components/schemas/Image'
bio:
type: string
nullable: true
slug:
type: string
posts:
type: array
items:
$ref: '#/components/schemas/Post'
required:
- name
- image
- bio
- slug
- posts
required:
- type
- data
securitySchemes:
BearerAuth:
type: http
scheme: bearer