SocialListeningAPI Discourse API
Discourse API endpoints.
Discourse API endpoints.
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/sociallisteningapi:sociallisteningapi-discourse-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: SocialListening Discourse API
version: 1.0.0
description: Search and retrieve public social data through one normalized API.
x-updated-at: '2026-09-23T00:00:00.000Z'
servers:
- url: https://api.sociallisteningapi.com
description: Production
security:
- ApiKeyAuth: []
tags:
- name: discourse
description: Discourse API endpoints.
x-display-name: Discourse
x-logo: /discourse.svg
paths:
/api/v1/discourse/search:
get:
operationId: searchDiscourse
tags:
- discourse
summary: Search a Discourse forum
description: Search posts in one public Discourse forum by URL and keyword, newest first, and return normalized post and source data.
x-credit-cost: 1
responses:
'200':
description: Request completed successfully.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/DiscourseSearchResponse'
example:
success: true
platform: discourse
endpoint: /api/v1/discourse/search
data:
items:
- id: discourse.32bit.cafe:8057
platform: discourse
url: https://discourse.32bit.cafe/t/32-bit-cafe-joins-the-fediverse/1173/1
content:
title: 32-Bit Cafe Joins the Fediverse!
text: The 32-Bit Cafe is joining the fediverse with its own Pixelfed instance.
media_urls: []
thumbnail_url: null
author:
id: xandra
username: xandra
display_name: xandra
avatar_url: https://discourse.32bit.cafe/user_avatar/discourse.32bit.cafe/xandra/96/5075_2.png
verified: null
engagement:
views: null
likes: 17
comments: null
shares: null
saves: null
published_at: '2024-08-06T20:20:28.409Z'
ext:
forum_url: https://discourse.32bit.cafe
author_url: https://discourse.32bit.cafe/u/xandra
topic_id: 1173
topic_slug: 32-bit-cafe-joins-the-fediverse
post_number: 1
category_id: 5
category_name: null
category_slug: null
topic_posts_count: 28
topic_reply_count: 16
tags: []
pagination:
next_cursor: '2'
has_more: true
page_size: 1
raw:
posts:
- id: 8057
username: xandra
avatar_template: /user_avatar/discourse.32bit.cafe/xandra/{size}/5075_2.png
created_at: '2024-08-06T20:20:28.409Z'
like_count: 17
blurb: The 32-Bit Cafe is joining the fediverse with its own Pixelfed instance.
post_number: 1
topic_id: 1173
topics:
- id: 1173
title: 32-Bit Cafe Joins the Fediverse!
slug: 32-bit-cafe-joins-the-fediverse
posts_count: 28
reply_count: 16
category_id: 5
tags: []
categories: []
grouped_search_result:
more_full_page_results: true
request_id: req_example123
credits_used: 1
credits_remaining: 99
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/InvalidApiKey'
'402':
$ref: '#/components/responses/InsufficientCredits'
'403':
$ref: '#/components/responses/WorkspaceNotActivated'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'502':
$ref: '#/components/responses/UpstreamProviderError'
parameters:
- name: url
in: query
required: true
description: The full URL of the Discourse forum to search.
schema:
type: string
minLength: 1
format: uri
example: https://discourse.32bit.cafe
- name: query
in: query
required: true
description: The keyword or phrase to search for.
schema:
type: string
minLength: 1
example: social listening
- name: exact
in: query
required: false
description: Search for the exact phrase by wrapping the query in double quotes. Defaults to true. Set to false to send the query unchanged.
schema:
type: boolean
default: true
example: true
- name: cursor
in: query
required: false
description: The cursor returned by the previous response.
schema:
type: string
minLength: 1
pattern: ^[1-9][0-9]*$
example: '2'
- name: raw
in: query
required: false
description: Include the unchanged provider response in the raw field. Defaults to false.
schema:
type: boolean
default: false
example: true
post:
operationId: searchDiscourseWithPost
tags:
- discourse
summary: Search a Discourse forum
description: Search posts in one public Discourse forum by URL and keyword, newest first, and return normalized post and source data.
x-credit-cost: 1
responses:
'200':
description: Request completed successfully.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/DiscourseSearchResponse'
example:
success: true
platform: discourse
endpoint: /api/v1/discourse/search
data:
items:
- id: discourse.32bit.cafe:8057
platform: discourse
url: https://discourse.32bit.cafe/t/32-bit-cafe-joins-the-fediverse/1173/1
content:
title: 32-Bit Cafe Joins the Fediverse!
text: The 32-Bit Cafe is joining the fediverse with its own Pixelfed instance.
media_urls: []
thumbnail_url: null
author:
id: xandra
username: xandra
display_name: xandra
avatar_url: https://discourse.32bit.cafe/user_avatar/discourse.32bit.cafe/xandra/96/5075_2.png
verified: null
engagement:
views: null
likes: 17
comments: null
shares: null
saves: null
published_at: '2024-08-06T20:20:28.409Z'
ext:
forum_url: https://discourse.32bit.cafe
author_url: https://discourse.32bit.cafe/u/xandra
topic_id: 1173
topic_slug: 32-bit-cafe-joins-the-fediverse
post_number: 1
category_id: 5
category_name: null
category_slug: null
topic_posts_count: 28
topic_reply_count: 16
tags: []
pagination:
next_cursor: '2'
has_more: true
page_size: 1
raw:
posts:
- id: 8057
username: xandra
avatar_template: /user_avatar/discourse.32bit.cafe/xandra/{size}/5075_2.png
created_at: '2024-08-06T20:20:28.409Z'
like_count: 17
blurb: The 32-Bit Cafe is joining the fediverse with its own Pixelfed instance.
post_number: 1
topic_id: 1173
topics:
- id: 1173
title: 32-Bit Cafe Joins the Fediverse!
slug: 32-bit-cafe-joins-the-fediverse
posts_count: 28
reply_count: 16
category_id: 5
tags: []
categories: []
grouped_search_result:
more_full_page_results: true
request_id: req_example123
credits_used: 1
credits_remaining: 99
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/InvalidApiKey'
'402':
$ref: '#/components/responses/InsufficientCredits'
'403':
$ref: '#/components/responses/WorkspaceNotActivated'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'502':
$ref: '#/components/responses/UpstreamProviderError'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
- query
properties:
url:
type: string
minLength: 1
format: uri
description: The full URL of the Discourse forum to search.
query:
type: string
minLength: 1
description: The keyword or phrase to search for.
exact:
type: boolean
default: true
description: Search for the exact phrase by wrapping the query in double quotes. Defaults to true. Set to false to send the query unchanged.
cursor:
type: string
minLength: 1
pattern: ^[1-9][0-9]*$
description: The cursor returned by the previous response.
raw:
type: boolean
default: false
description: Include the unchanged provider response in the raw field. Defaults to false.
additionalProperties: false
example:
url: https://discourse.32bit.cafe
query: social listening
exact: true
cursor: '2'
raw: true
components:
headers:
RateLimitReset:
description: The Unix timestamp when the current rate-limit window resets.
schema:
type: integer
RequestId:
description: The unique ID assigned to the request.
schema:
type: string
RateLimitLimit:
description: The maximum requests allowed in the current minute.
schema:
type: integer
RateLimitRemaining:
description: The requests remaining in the current minute.
schema:
type: integer
RetryAfter:
description: The seconds until another request can be attempted.
schema:
type: integer
schemas:
Pagination:
type: object
required:
- next_cursor
- has_more
- page_size
properties:
next_cursor:
type:
- string
- 'null'
description: A provider cursor for a future paginated request, when available.
has_more:
type: boolean
page_size:
type: integer
minimum: 0
additionalProperties: false
Content:
type: object
required:
- title
- text
- media_urls
- thumbnail_url
properties:
title:
type:
- string
- 'null'
text:
type:
- string
- 'null'
media_urls:
type: array
items:
type: string
format: uri
thumbnail_url:
type:
- string
- 'null'
format: uri
additionalProperties: false
ErrorResponse:
type: object
required:
- success
- error
- request_id
- credits_used
- credits_remaining
properties:
success:
type: boolean
const: false
error:
$ref: '#/components/schemas/Error'
request_id:
type: string
credits_used:
type: integer
const: 0
credits_remaining:
type:
- integer
- 'null'
minimum: 0
additionalProperties: false
example:
success: false
error:
type: INVALID_REQUEST
message: A required request parameter is missing or invalid
status: 400
request_id: req_example123
credits_used: 0
credits_remaining: 100
DiscourseSearchResponse:
type: object
required:
- success
- platform
- endpoint
- data
- pagination
- request_id
- credits_used
- credits_remaining
properties:
success:
type: boolean
const: true
platform:
type: string
const: discourse
endpoint:
type: string
data:
$ref: '#/components/schemas/SocialSearchData'
pagination:
$ref: '#/components/schemas/Pagination'
raw:
$ref: '#/components/schemas/RawResponse'
request_id:
type: string
example: req_4QfL8rGv2NwK7zXp
credits_used:
type: integer
minimum: 0
credits_remaining:
type:
- integer
- 'null'
minimum: 0
additionalProperties: false
SocialPost:
type: object
required:
- id
- platform
- url
- content
- author
- engagement
- published_at
- ext
properties:
id:
type: string
platform:
type: string
enum:
- linkedin
- x
- reddit
- facebook
- hackernews
- tiktok
- youtube
- pinterest
- discourse
url:
type:
- string
- 'null'
format: uri
content:
$ref: '#/components/schemas/Content'
author:
$ref: '#/components/schemas/Author'
engagement:
$ref: '#/components/schemas/Engagement'
published_at:
type:
- string
- 'null'
format: date-time
ext:
type: object
description: Platform-specific normalized fields.
additionalProperties: true
additionalProperties: false
Author:
type: object
required:
- id
- username
- display_name
- avatar_url
- verified
properties:
id:
type:
- string
- 'null'
username:
type:
- string
- 'null'
display_name:
type:
- string
- 'null'
avatar_url:
type:
- string
- 'null'
format: uri
verified:
type:
- boolean
- 'null'
additionalProperties: false
SocialSearchData:
type: object
required:
- items
properties:
items:
type: array
items:
$ref: '#/components/schemas/SocialPost'
additionalProperties: false
Engagement:
type: object
required:
- views
- likes
- comments
- shares
- saves
properties:
views:
type:
- integer
- 'null'
likes:
type:
- integer
- 'null'
comments:
type:
- integer
- 'null'
shares:
type:
- integer
- 'null'
saves:
type:
- integer
- 'null'
additionalProperties: false
RawResponse:
description: The unchanged upstream provider response. Returned only when the request sets raw to true.
Error:
type: object
required:
- type
- message
- status
properties:
type:
type: string
example: INVALID_REQUEST
message:
type: string
example: A required request parameter is missing or invalid
status:
type: integer
minimum: 400
maximum: 599
additionalProperties: false
responses:
RateLimited:
description: The API key exceeded the rate limit.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: RATE_LIMITED
message: The API key has reached 120 requests per minute
status: 429
request_id: req_example123
credits_used: 0
credits_remaining: 100
InvalidApiKey:
description: The API key is missing or invalid.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: INVALID_API_KEY
message: The API key is invalid
status: 401
request_id: req_example123
credits_used: 0
credits_remaining: 100
WorkspaceNotActivated:
description: The workspace is not activated.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: WORKSPACE_NOT_ACTIVATED
message: The workspace email must be activated
status: 403
request_id: req_example123
credits_used: 0
credits_remaining: 100
InternalError:
description: The request could not be completed because of an internal error.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: INTERNAL_ERROR
message: Internal server error
status: 500
request_id: req_example123
credits_used: 0
credits_remaining: 100
UpstreamProviderError:
description: The upstream provider request failed or returned an invalid response.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: UPSTREAM_PROVIDER_ERROR
message: The upstream provider request failed
status: 502
request_id: req_example123
credits_used: 0
credits_remaining: 100
InsufficientCredits:
description: The workspace does not have enough credits.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: INSUFFICIENT_CREDITS
message: The workspace does not have enough API credits
status: 402
request_id: req_example123
credits_used: 0
credits_remaining: 100
InvalidRequest:
description: A required request parameter is missing or invalid.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
success: false
error:
type: INVALID_REQUEST
message: A required request parameter is missing or invalid
status: 400
request_id: req_example123
credits_used: 0
credits_remaining: 100
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: Your SocialListeningAPI key.
externalDocs:
description: SocialListeningAPI documentation
url: https://sociallisteningapi.com/docs/introduction
x-provenance:
method: harvested
publisher: SocialListeningAPI
source: https://api.sociallisteningapi.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)