# 24K Labs Social Post Validator

> 24K Labs Social Post Validator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Validates a social media post against platform-specific limits for X/Twitter, LinkedIn, Instagram, or Bluesky, returning weighted character count, hashtag/mention/link caps, over-limit flag, and a truncation preview.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/social-post-validate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-social-post-validator-9098ce87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kDz9OAOFElpMZFglqvhHZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-social-post-validator-9098ce87 -d '<json body>'
```

Example prompt: Before I post this to Twitter, check if it fits within the character limit — here's the text: 'Just launched our new product! Check it out at https://example.com #startup #launch @techcrunch — really excited for everyone to see what we've been building for the past year.' Give me the weighted character count, whether any caps are hit, and a truncation preview if it's over.

## When to prefer this

Use this endpoint when you need to programmatically verify that a social post conforms to a specific platform's rules before scheduling or publishing — especially when the post contains URLs (which are weighted differently on Twitter), hashtags, mentions, or emoji that affect character counting in non-obvious ways. Prefer this over manual counting or generic string-length checks when platform-specific weighted counting and cap enforcement matter.

## Known failure modes

- Unsupported platform name returns a validation error
- Empty or missing post text returns a 400 bad request
- Extremely long posts may still return a truncation preview but processing is slightly slower
- Network timeout on the x402 payment layer may prevent the call from completing
- Ambiguous Unicode characters may cause slight discrepancies in weighted character counts

## How this service works

Check a post against X/Twitter, LinkedIn, Instagram or Bluesky limits: weighted character count, hashtag/mention/link caps, over-limit flag and a truncation preview.

## Output

Returns a structured response with the weighted character count for the chosen platform, whether individual caps (hashtags, mentions, links) have been exceeded, a boolean over-limit flag, and a truncation preview string showing how the post would appear if cut to the platform's maximum length.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "platform": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "platform": "twitter",
  "within_limit": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-social-post-validator-9098ce87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
