content_search_api

Module Group: Posts

The content_search_api provides full-text search capabilities for posts and comments with extensive filtering options.


Active Config

{
  "id": "content_search_api",
  "group_id": "posts",
  "parsing_order": 280,
  "required_modules": ["chain_api"],
  "referenced_modules": ["posts_api", "feeds_api"],
  "parse_reversible": true,
  "allow_vacuum": false,
  "event_handlers": ["chain_api.onRemovePost", "posts_api.onSyncPost"],
  "store_days": 0,
  "include_posts": true,
  "include_comments": true
}

Database Info

{
  "name": "content_search_api",
  "size": "135.115 GB",
  "page_size": "4096 Bytes",
  "type": "SQLITE",
  "journal_mode": "WAL",
  "busy_timeout": 10000,
  "log_level": "INFO"
}

Common Parameters

All search endpoints share these optional parameters:

Name Type Default Description
:searchIn csv title,body Where to search (title, body, tags)
:observer string - Account perspective for visibility
:bodyLength int 250 Length of body text to return
:orderBy string created Sort field
:orderDir string desc Sort direction (asc, desc)
:limit int 20 Maximum results to return
:offset int 0 Result offset for pagination

Endpoints

getConfig

Returns this module's active configuration.

Endpoint

/content_search_api/getConfig

Live Example Response

GET https://sds.steemworld.org/content_search_api/getConfig
{
  "code": 0,
  "result": {
    "id": "content_search_api",
    "group_id": "posts",
    "parsing_order": 280,
    "required_modules": ["chain_api"],
    "referenced_modules": ["posts_api", "feeds_api"],
    "parse_reversible": true,
    "allow_vacuum": false,
    "event_handlers": ["chain_api.onRemovePost", "posts_api.onSyncPost"],
    "store_days": 0,
    "include_posts": true,
    "include_comments": true
  }
}

All Posts Search

getPostsByText

Searches all posts by text content.

Endpoint

/content_search_api/getPostsByText/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Parameters

Name Type Optional Description
:searchText string No Text to search for

Live Example

GET https://sds.steemworld.org/content_search_api/getPostsByText/steemworld

Returns posts containing "steemworld" in title or body.


getPostsByTagsText

Searches posts by tags and text.

Endpoint

/content_search_api/getPostsByTagsText/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Parameters

Name Type Optional Description
:searchTags csv No Tags to filter by (comma-separated)
:searchText string No Text to search for

Live Example

GET https://sds.steemworld.org/content_search_api/getPostsByTagsText/steem,blockchain/tutorial

getPostsByTimeTagsText

Searches posts within a time range by tags and text.

Endpoint

/content_search_api/getPostsByTimeTagsText/:fromTime-:toTime/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Parameters

Name Type Optional Description
:fromTime timestamp No Start time (Unix timestamp)
:toTime timestamp No End time (Unix timestamp)
:searchTags csv No Tags to filter by
:searchText string No Text to search for

All Posts By Author

getPostsByAuthorText

Searches posts by a specific author.

Endpoint

/content_search_api/getPostsByAuthorText/:author/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Parameters

Name Type Optional Description
:author string No Author account name
:searchText string No Text to search for

Live Example

GET https://sds.steemworld.org/content_search_api/getPostsByAuthorText/steemchiller/steemworld

Returns posts by steemchiller containing "steemworld".


getPostsByAuthorTagsText

Searches posts by author, tags, and text.

Endpoint

/content_search_api/getPostsByAuthorTagsText/:author/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

getPostsByAuthorTimeTagsText

Searches posts by author, time range, tags, and text.

Endpoint

/content_search_api/getPostsByAuthorTimeTagsText/:author/:fromTime-:toTime/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Active Posts Search

These endpoints search only posts with pending payouts (within 7-day window).

getActivePostsByText

Searches active posts by text content.

Endpoint

/content_search_api/getActivePostsByText/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Live Example

GET https://sds.steemworld.org/content_search_api/getActivePostsByText/steem

Returns active posts containing "steem".


getActivePostsByTagsText

Searches active posts by tags and text.

Endpoint

/content_search_api/getActivePostsByTagsText/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Live Example

GET https://sds.steemworld.org/content_search_api/getActivePostsByTagsText/steem/blockchain

Returns active posts with tag "steem" containing "blockchain".


Active Posts By Author

getActivePostsByAuthorText

Searches active posts by a specific author.

Endpoint

/content_search_api/getActivePostsByAuthorText/:author/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

getActivePostsByAuthorTagsText

Searches active posts by author, tags, and text.

Endpoint

/content_search_api/getActivePostsByAuthorTagsText/:author/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

All Comments Search

getCommentsByText

Searches all comments by text content.

Endpoint

/content_search_api/getCommentsByText/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Live Example

GET https://sds.steemworld.org/content_search_api/getCommentsByText/steemworld

Returns comments containing "steemworld".


getCommentsByTagsText

Searches comments by tags and text.

Endpoint

/content_search_api/getCommentsByTagsText/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

getCommentsByTimeTagsText

Searches comments within a time range by tags and text.

Endpoint

/content_search_api/getCommentsByTimeTagsText/:fromTime-:toTime/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

All Comments By Author

getCommentsByAuthorText

Searches comments by a specific author.

Endpoint

/content_search_api/getCommentsByAuthorText/:author/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Live Example

GET https://sds.steemworld.org/content_search_api/getCommentsByAuthorText/steemchiller/steem

Returns comments by steemchiller containing "steem".


getCommentsByAuthorTagsText

Searches comments by author, tags, and text.

Endpoint

/content_search_api/getCommentsByAuthorTagsText/:author/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

getCommentsByAuthorTimeTagsText

Searches comments by author, time range, tags, and text.

Endpoint

/content_search_api/getCommentsByAuthorTimeTagsText/:author/:fromTime-:toTime/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Active Comments Search

These endpoints search only comments with pending payouts (within 7-day window).

getActiveCommentsByText

Searches active comments by text content.

Endpoint

/content_search_api/getActiveCommentsByText/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

getActiveCommentsByTagsText

Searches active comments by tags and text.

Endpoint

/content_search_api/getActiveCommentsByTagsText/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Active Comments By Author

getActiveCommentsByAuthorText

Searches active comments by a specific author.

Endpoint

/content_search_api/getActiveCommentsByAuthorText/:author/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

getActiveCommentsByAuthorTagsText

Searches active comments by author, tags, and text.

Endpoint

/content_search_api/getActiveCommentsByAuthorTagsText/:author/:searchTags/:searchText/:searchIn?/:observer?/:bodyLength?/:orderBy?/:orderDir?/:limit?/:offset?

Response Format

All endpoints return results with consistent column structure:

Column Index Description
link_id 0 Unique post/comment identifier
link_status 1 Status indicator
author_reputation 2 Author's reputation score
author_status 3 Author status
author_role 4 Role in community (e.g., "mod")
author_title 5 Author's title
author 6 Author username
permlink 7 Post/comment permlink
parent_author 8 Parent author (for comments)
parent_permlink 9 Parent permlink
root_author 10 Root post author
root_permlink 11 Root post permlink
root_title 12 Root post title
created 13 Creation timestamp
last_update 14 Last update timestamp
cashout_time 15 Cashout time
payout 16 Payout amount
net_rshares 17 Net rshares
max_accepted_payout 18 Max accepted payout
percent_steem_dollars 19 SBD percentage
children 20 Number of children
upvote_count 21 Number of upvotes
downvote_count 22 Number of downvotes
downvote_weight 23 Downvote weight
word_count 24 Word count
is_author_muted 25 Author muted flag
is_muted 26 Content muted flag
is_pinned 27 Pinned flag
category 28 Category
community 29 Community name
json_images 30 JSON array of images
json_metadata 31 Post metadata JSON
title 32 Post/comment title
body 33 Post/comment body (truncated)

Back to Main Index