Medium Publications Search
Search Medium publications by topic or name, returning publication slugs, custom domains, descriptions, and direct feed URLs.
curl -sG "https://api.agentapigate.ai/v1/medium/publications/search" \ --data-urlencode "query=data science" \ --data-urlencode "limit=15" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Medium Publications Search (`medium.publications.search`) **query**: data science · **count**: 10 ## publications - [1] id: cf522ff06849, name: The Quantastic Journal, slug: the-quantastic-journal, domain: thequantasticjournal.com, description: Follow the Quantastic Journal, where science, technology… - [2] id: 6aa870473745, name: Deep Data Science, slug: deep-data-science, description: Diving deep into the world of artificial intelligence…, url: https://medium.com/deep-data-science - [3] id: 469db201381d, name: The Academic, slug: the-academic, description: The Academic is a top tier, peer-reviewed publication on…, url: https://medium.com/the-academic - [4] id: 3fe99b2acc4, name: AI Advances, slug: ai-advances, domain: aiadvances.org, description: Ideas in depth. - [5] id: 1c754ba7b924, name: Artefact Engineering and Data Science, slug: artefact-engineering-and-data-science, description: Artefact is a tech company dedicated to solving data…, url: https://medium.com/artefact-engineering-and-data-science - [6] id: b442586358cb, name: Data Science Rabbit Hole, slug: data-science-rabbit-hole, description: Let’s dive deep into data science to grok the fundamentals!, url: https://medium.com/data-science-rabbit-hole - [7] id: 8993e01dcfd3, name: Data Science Collective, slug: data-science-collective, description: Advice, insights, and ideas from the Medium data science…, url: https://medium.com/data-science-collective - [8] id: 1a1f399d885c, name: Quince Engineering, slug: quince-tech, domain: tech.quince.com, description: Delivering high quality products through a world-class… - [9] id: a6e43238cdaf, name: Data Science + AI at Microsoft, slug: data-science-at-microsoft, description: Lessons learned in the practice of data science and AI at…, url: https://medium.com/data-science-at-microsoft - [10] id: f2ba5b8f6eb3, name: Data Engineer Things, slug: data-engineer-things, domain: blog.dataengineerthings.org, description: Things learned in our data engineering journey and ideas on…
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:medium.publications.search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | data science | Publication topic or name (e.g. data science, cybersecurity) |
| limit | number | optional | 15 | Max publications returned (1-30) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0020 / call | $0/mo · Balance never expires |
| Remote MCP Tool | medium_publications_search | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 1618 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1352t → 531t (-61%) | Partner credit: paid_usd / x402 |
More Social & Video Real-Time APIs
Fetch TikTok account profile bio, verification badge, follower count, heart count, and video count.
List recent short videos posted by a TikTok creator with view, like, comment, and share counts.
Fetch full metadata, audio track, author details, and engagement metrics for a TikTok video URL or ID.
Fetch top comments on a TikTok video URL or ID with author handles and like counts.
Search TikTok short videos by keyword with view, like, and creator statistics.
Fetch currently trending viral TikTok videos in a target country code.
Frequently Asked Questions
How do I call Medium Publications Search (medium.publications.search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/medium/publications/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool medium_publications_search on https://mcp.agentapigate.ai/mcp.
What does medium.publications.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.publications.search?
Passing ?format=md transforms the response into normalized Markdown (~531 tokens vs ~1352 raw tokens, saving 61% 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.publications.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.