Saved queries

List a saved query's runs

List a saved query's latest runs, newest first.

GET/v1/saved-queries/{id}/runs
0credits
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
idstringrequiredpath

The saved query's id.

min 1 chars

Response fields
31

Endpoint-specific response payload.

The saved query's latest runs, newest first.

dataruns[]id
string
dataruns[]versionId
string
dataruns[]trigger
string

one of: schedule, manual

dataruns[]status
string

`succeeded`: every platform searched as far as the plan went; `partial`: some stopped short (time, credits, a failure), and what finished was kept; `failed`: nothing could be searched.

one of: running, succeeded, partial, failed

dataruns[]startedAt
string
dataruns[]finishedAt
stringnullable
dataruns[]creditsCharged
integer
dataruns[]matchesFound
integer
dataruns[]matchesNew
integer

How far the run's search got on each platform.

dataruns[]platforms[]platform
string

A platform a search runs on: `twitter` (X), `reddit`, `youtube`, `tiktok`, `linkedin`, `instagram` (searched by hashtag, so only posts that use the hashtag are found), `threads` (searched by plain words, one short page a search, so it can miss posts) or `hackernews` (stories and comments). More platforms follow.

one of: twitter, reddit, youtube, tiktok, linkedin, instagram, threads, hackernews

dataruns[]platforms[]status
string

How far it got: `exhausted`, every search ran to its last page; `capped`, the platform's own limit on pages stopped it; `budget`, `maxCredits` did; `deadline`, the search ran out of time (what finished is returned); `unsearchable`, nothing in the query can be searched there; `failed`, every call failed.

one of: exhausted, capped, budget, deadline, unsearchable, failed

dataruns[]platforms[]coverage
string

`full`: every part of the query was searched; `partial`: some can't be (see notes); `none`: nothing could.

one of: full, partial, none

What wasn't covered, and why.

dataruns[]platforms[]notes[]
stringoptional

What was searched, in the platform's own syntax.

dataruns[]platforms[]searchTerms[]
stringoptional
dataruns[]platforms[]fetched
integer

Posts read.

≥ 0

dataruns[]platforms[]matched
integer

Posts the query matched, not counting those `filtered` left out.

≥ 0

dataruns[]platforms[]filtered
integer

Posts the query matched that the request's `noise` presets left out.

≥ 0

dataruns[]platforms[]creditsCharged
integer

≥ 0

dataruns[]platforms[]errors
object

Error codes of calls that failed, with how many.

Fields the query uses that this platform doesn't return.

dataruns[]platforms[]unevaluableFields[]
stringoptional
dataruns[]error
stringnullable

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/saved-queries/abc123/runs" \
  -H "x-api-key: YOUR_API_KEY"

Responses

The saved query's latest runs, newest first.