Skip to content

Medium · User posts

Posts in an author's public feed. An empty feed costs 0 credits.

1 credit default · rule-based0 credits on error & cache
GET
/v1/medium/user/posts

Credit Cost & Caching

View credit packs ↗

Default: 1 credit when no rule matches.

  1. 0 credits when response field posts is empty or absent.

An empty result costs 0 credits.

How charges are determined

Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.

A call that fails costs 0 credits. A result served from cache costs 0 credits.

`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.

A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).

A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.

Cache control

Serve a cached response when it is newer than this. A cache hit costs 0 credits.

Pagination

Check cursor / page parameters and response fields below.

Authorizations · Headers

x-api-keystringheaderrequired

Your Fetchproof API key (starts with fp_live_). Create one at app.fetchproof.com.

Query Parameters

2 parameters
usernamestringqueryrequired

Medium username, without @.

Example:ev
cache_max_agestringqueryoptional

Serve a cached response when it is newer than this. A cache hit costs 0 credits.

Response Schemas

200Success. Envelope: success / credits_remaining / credits_charged. An empty page costs 0 credits.
Content-Typeapplication/json
object
successbooleanrequired
credits_remainingintegerrequired
credits_chargedintegerrequired
usernamestringrequired
postsobject[]required
Array itemsobject
idstringoptional
titlestringoptional
urlstringoptional
published_atstringoptional
401Invalid or missing x-api-key
402No credits remaining
404Resource not found. Costs 0 credits.
GET

/v1/medium/user/posts

Parameters

string query required

Medium username, without @.

string query

Serve a cached response when it is newer than this. A cache hit costs 0 credits.

Request URL

https://api.fetchproof.com/v1/medium/user/posts

Snippets use a $FETCHPROOF_API_KEY placeholder. To run a live call, use the dashboard Playground.

 
↑↓ navigate · ↵ open · esc close