Skip to content
ProspectAPIs

API reference / People reads

Read a post's resharers (live)

Written and maintained by The ProspectAPIs team

GET/v1/posts/resharers

GET /v1/posts/resharers is the ProspectAPIs operation getPostResharers, in the People reads group of the REST API. Read who reshared a public post, each resharer enriched. Fetched fresh at request time, not from a stored cache. $0.012 per live read. Each result carries reshare_type (repost for a plain reshare or repost_with_thoughts for a quote) and, for a with-thoughts reshare, the added commentary text. Give one of post_id, share_id or post_url. Billed per call once the reads are live; while they are not yet on sale the call is free (GET /pricing reports people_reads.available). Cost: Not available yet. Send your API key as a Bearer token in the Authorization header.

The quickstart shows this call in context, next to the first requests most integrations make.

Parameters

Parameters of GET /v1/posts/resharers
NameInTypeDescription
post_idquerystringThe post: the post reference the posts read returns (id), its numeric activity id, or its activity, share or ugcPost URN as the post's address shows it.
share_idquerystringThe post's content id: the share_id the posts read returns, a numeric id, or its share or ugcPost URN as the post's address shows it.
post_urlquerystringThe public post URL.
startqueryintegerZero-based offset.
countqueryintegerResults per page, 1 to 50.

An unknown query parameter is refused with a 400 rather than ignored, so a typo never widens a search you pay for.

Responses

Response codes of GET /v1/posts/resharers
StatusMeaning
200The post's resharers and a page cursor, read fresh. Each item names the reshare_type and the commentary of a with-thoughts reshare.
400The request was invalid (e.g. a bad filter or input); nothing was charged.
401The API key is missing or invalid.
402Out of credits. The body carries top_up_url; nothing was charged.
429Too many requests; retry after the window.
503This read is temporarily unavailable. Nothing was charged.

Every error answers with the same JSON body, an error string and sometimes a code; the errors page lists each status and when it happens. A per-key 429 carries Retry-After; see rate limits.

200 response fields

The post's resharers and a page cursor, read fresh. Each item names the reshare_type and the commentary of a with-thoughts reshare. The body is a PeopleReadResult.

Fields of the 200 response
FieldTypeDescription
data requiredobjectThe read result. For search, posts, engagers and followers this is { items, page }; for a profile it is the profile object.
coverage requiredobjectHow complete the source was.
coverage.filledinteger
coverage.ofinteger
Response headers
HeaderMeaning
RateLimit-LimitRequests this API key may make per minute.
RateLimit-RemainingRequests left in the current one-minute window.
RateLimit-ResetSeconds until the current window resets.

Code samples

Each sample sends the same request. Set PROSPECTAPIS_KEY in your environment first. Values come from the spec's examples; replace them with your own.

curl
curl https://api.prospectapis.com/v1/posts/resharers \
  -H "Authorization: Bearer $PROSPECTAPIS_KEY"
JavaScript (fetch)
const res = await fetch("https://api.prospectapis.com/v1/posts/resharers", {
  headers: { Authorization: `Bearer ${process.env.PROSPECTAPIS_KEY}` },
});
if (!res.ok) throw new Error(`${res.status}: ${(await res.json().catch(() => ({}))).error ?? res.statusText}`);
const data = await res.json();
console.log(data);
Python (requests)
import os, requests

res = requests.get(
    "https://api.prospectapis.com/v1/posts/resharers",
    headers={"Authorization": f"Bearer {os.environ['PROSPECTAPIS_KEY']}"},
    timeout=30,
)
res.raise_for_status()
data = res.json()
print(data)

Billing

Billing reserves before it serves: the call holds what it may cost, serves at most what that hold covers, and refunds the rest when the response closes. Any non-2xx answer refunds the whole hold, so a failed call costs nothing. The response reports your balance in X-Credits-Remaining.

Previous operation: Read a post's engagers (live). Next operation: Read a page's followers (live). Every operation, grouped by area, is on the API reference index.

Create a free account to get a key, then run the samples above with your own values.

Was this page helpful?