AgentAPIGate
Back to Catalog
GET /v1/medium/posts/searchPack: social·MCP Tool: medium_posts_search

Medium Articles Keyword Search

Search Medium articles by topic keyword with titles, subtitles, author handles, publication metadata, subscriber counts, and article URLs.

API Key Price:$0.0020 / call
x402 Base USDC:$0.0020 / call
Partner Credit:paid_usd / x402 only
1. Parameters & Controls
Topic or keyword to search on Medium (e.g. artificial intelligence, rust)
Max Medium articles returned (1-30)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/medium/posts/search" \
  --data-urlencode "query=artificial intelligence" \
  --data-urlencode "limit=15" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-84% tokens
# Medium Articles Keyword Search (`medium.posts.search`)
**query**: artificial intelligence · **count**: 10

## posts
- [1] id: d1273d03114b, title: Artificial Intelligence: The Promise, the Peril, and the Price We May Pay — Part Two, subtitle: The Human Cost: Who Will Bear the Burden?, url: https://medium.com/@leaveamarkpress/artificial-intelligence-the-promise-the-peril-and-the-price-we-may-pay-part-two-d1273d03114b, r
- [2] id: 17f043f64a14, title: The Greatest Danger of Artificial Intelligence Is Not Intelligence Itself. It Is Us., subtitle: #ArtificialIntelligence #EvolutionaryImperfection #ExistentialRisk #FutureOfHumanity, url: https://medium.com/@dsaklakov/the-greatest-danger-of-artificial-intelligence-is-not-inte
- [3] id: 29282c581b07, title: AI in FinOps: How Artificial Intelligence Is Transforming Cloud Cost Optimization, subtitle: Moving beyond traditional cloud cost monitoring towards intelligent, predictive, and automated financial operations., url: https://medium.com/cloud-devops-ai-in-simple-terms/ai-in-fi
- [4] id: 1fcef2ecb94a, title: From the Drawing Board to Artificial Intelligence, subtitle: How the profession I fell in love with in 1987 has changed in ways I never imagined., url: https://medium.com/@bionicman_78508/from-the-drawing-board-to-artificial-intelligence-1fcef2ecb94a, reading_time_min: 6
- [5] id: 0124670e73e2, title: A Study of the Role of Artificial Intelligence (AI) in Promoting Educational Equity and Access in…, subtitle: Abstract, url: https://medium.com/@frangwa826/a-study-of-the-role-of-artificial-intelligence-ai-in-promoting-educational-equity-and-access-in-0124670e73e2, reading_t
- [6] id: 488ea89c571d, title: Wrapping My 82 Year-Old Brain Around Artificial Intelligence, subtitle: Could a wall of Escher-style sketches and a pine-covered anthill help figure it out?, url: https://medium.com/the-challenged/wrapping-my-82-year-old-brain-around-artificial-intelligence-488ea89c571d, rea
- [7] id: 3619b1762352, title: Can Artificial Intelligence Predict the Date of Your Death?, subtitle: Imagine waking up one morning, opening an app, and seeing a prediction of how many years you have left to live. Would you want to know the…, url: https://medium.com/@Lunaa2/can-artificial-intelligence-pre
- [8] id: 60bba328c69e, title: Hostel Party, My Friend’s Mother, and Artificial Intelligence’s Sugar Treatment, subtitle: I learned that AI can anticipate sugar levels the same night we were all laughing while watching a movie., url: https://medium.com/the-pillionaire-diaries/hostel-party-my-friends-mothe
- [9] id: 514c069f5512, title: Artificial Intelligence, Presidential Stupidity*, subtitle: The Intersection of Treachery, Corporate Governance, National Security, and Presidential Hubris, url: https://richardvanwagoner.medium.com/artificial-intelligence-presidential-stupidity-514c069f5512, reading_time_mi
- [10] id: 74cb534b133b, title: Artificial Intelligence Explained: Types, Generations, AI vs Automation, Pros & Cons and Where It’s…, subtitle: Friend link :- Read full story for free!, url: https://medium.com/@hpultimatemedia/artificial-intelligence-explained-types-generations-ai-vs-automation-pros-cons-a

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: medium.posts.search · Method: GET
ParameterTypeReqSample / DefaultDescription
querystringrequiredartificial intelligenceTopic or keyword to search on Medium (e.g. artificial intelligence, rust)
limitnumberoptional15Max Medium articles returned (1-30)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0020 / call$0/mo · Balance never expires
Remote MCP Toolmedium_posts_searchOAuth 2.1 Hub & /mcp/social
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency1530 ms$0 billed on empty or 4xx/5xx
Token Economy5098t → 825t (-84%)Partner credit: paid_usd / x402

More Social & Video Real-Time APIs

Frequently Asked Questions

How do I call Medium Articles Keyword Search (medium.posts.search) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/medium/posts/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool medium_posts_search on https://mcp.agentapigate.ai/mcp.

What does medium.posts.search cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.002 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on medium.posts.search?

Passing ?format=md transforms the response into normalized Markdown (~825 tokens vs ~5098 raw tokens, saving 84% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only social endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["medium.posts.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.