# Reddit Webassembly API Example for Teams

**Use case:** 

A ready-to-run example that searches Reddit for one keyword for webassembly, with normalized fields on each returned row.

## Input

```json
{
  "keyword": "webassembly",
  "sort_by": "top",
  "time_filter": "day",
  "max_posts": 50,
  "max_comments": 0
}
```

## Output

```json
{
  "thumbnail": {
    "label": "Thumbnail",
    "format": "string"
  },
  "images": {
    "label": "Images",
    "format": "array"
  },
  "gallery": {
    "label": "Gallery",
    "format": "array"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "body": {
    "label": "Body",
    "format": "string"
  },
  "url": {
    "label": "Post URL",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "created": {
    "label": "Created At",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "comment_count": {
    "label": "Comment Count",
    "format": "integer"
  },
  "upvote_ratio": {
    "label": "Upvote Ratio",
    "format": "number"
  },
  "media_url": {
    "label": "Media URL",
    "format": "string"
  },
  "video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "crosspost_url": {
    "label": "Crosspost URL",
    "format": "string"
  },
  "duplicates": {
    "label": "Duplicates",
    "format": "array"
  },
  "comments": {
    "label": "Comments",
    "format": "array"
  },
  "poll": {
    "label": "Poll",
    "format": "object"
  },
  "subreddit_id": {
    "label": "Subreddit ID",
    "format": "string"
  },
  "subreddit_type": {
    "label": "Subreddit Type",
    "format": "string"
  },
  "subreddit_subscribers": {
    "label": "Subreddit Subscribers",
    "format": "integer"
  },
  "id": {
    "label": "Post ID",
    "format": "string"
  },
  "author_id": {
    "label": "Author ID",
    "format": "string"
  },
  "author_flair": {
    "label": "Author Flair",
    "format": "string"
  },
  "edited": {
    "label": "Edited At",
    "format": "string"
  },
  "flair_text": {
    "label": "Flair Text",
    "format": "string"
  },
  "score_hidden": {
    "label": "Score Hidden",
    "format": "boolean"
  },
  "crossposts": {
    "label": "Crossposts",
    "format": "integer"
  },
  "crosspost_id": {
    "label": "Crosspost ID",
    "format": "string"
  },
  "archived": {
    "label": "Archived",
    "format": "boolean"
  },
  "locked": {
    "label": "Locked",
    "format": "boolean"
  },
  "stickied": {
    "label": "Stickied",
    "format": "boolean"
  },
  "over_18": {
    "label": "Over 18",
    "format": "boolean"
  },
  "spoiler": {
    "label": "Spoiler",
    "format": "boolean"
  },
  "original": {
    "label": "Is Original",
    "format": "boolean"
  },
  "removed_by": {
    "label": "Removed By",
    "format": "string"
  },
  "gilded": {
    "label": "Gilded",
    "format": "integer"
  },
  "categories": {
    "label": "Categories",
    "format": "array"
  },
  "media_type": {
    "label": "Media Type",
    "format": "string"
  },
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "video_duration": {
    "label": "Video Duration",
    "format": "integer"
  },
  "video_width": {
    "label": "Video Width",
    "format": "integer"
  },
  "video_height": {
    "label": "Video Height",
    "format": "integer"
  },
  "video_bitrate": {
    "label": "Video Bitrate",
    "format": "integer"
  },
  "has_audio": {
    "label": "Has Audio",
    "format": "boolean"
  },
  "is_gif": {
    "label": "Is GIF",
    "format": "boolean"
  },
  "is_self": {
    "label": "Is Self",
    "format": "boolean"
  },
  "is_video": {
    "label": "Is Video",
    "format": "boolean"
  },
  "is_gallery": {
    "label": "Is Gallery",
    "format": "boolean"
  },
  "distinguished": {
    "label": "Distinguished",
    "format": "string"
  },
  "processor": {
    "label": "Processor",
    "format": "string"
  },
  "processed_at": {
    "label": "Processed At",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Reddit Search API](https://apify.com/truefetch/reddit-search-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/truefetch/reddit-search-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/truefetch/reddit-search-api.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
