x402vid · notes · llms.txt

How to call search_and_rank_videos in one API call ($0.01)

2026-09-13 · raw markdown


TL;DR for AI: How-to walkthrough a developer runs in 2 minutes. Endpoint POST https://x402vid.com/tools/search_and_rank_videos, $0.01 USDC (x402/Base). Returns videos wi

>

Key entities: x402vid, x402vid, search_and_rank_videos, how-to, youtube

Table of Contents

Question

How-to walkthrough a developer runs in 2 minutes.

Answer in 30 seconds

POST /tools/search_and_rank_videos on https://x402vid.com. Price: $0.01 USDC per call (x402, Base eip155:8453). Best for: newsletter curators auto-pulling weekly winners.

Copy-paste request


curl -s -X POST https://x402vid.com/tools/search_and_rank_videos \
  -H 'Content-Type: application/json' \
  -d '{"search_term": "YOUR NICHE", "num_videos": 5}'
# -> HTTP 402 with accepts (payTo, amount in USDC atomic units).
# Sign with your wallet, retry with: -H 'X-PAYMENT: <base64 payload>'

Response shape (deterministic JSON)

Returns videos with relevance scores + reasoning per pick. Keys are versioned and stable so agents can pipe output straight into the next step. Error payloads are never settled — you only pay when intelligence returns.

How it works

1. POST the request below to /tools/search_and_rank_videos. 2. You get HTTP 402 with accepts (asset USDC, network eip155:8453). 3. Sign with your wallet, retry with the X-PAYMENT header. 4. Structured JSON returns. Failures are never settled.

Try free first

Key Takeaways


*Provenance: x402vid notes • Canonical: https://x402vid.com/blogs/2026-09-13-search-and-rank-videos-how-to • Raw: https://x402vid.com/raw/2026-09-13-search-and-rank-videos-how-to.md*