Ask in natural language

Route a natural-language social-data question to the right lookup when you do not yet know the typed tool — prefer typed tools once the operation is known.

POST/v1/ask
x-api-keystringheader

API key (`sfk_...`)

Request body

requiredapplication/json
Response fields
18

Endpoint-specific response payload.

dataquery
string

Echo of the submitted natural-language question.

Resolved public API operation for the natural-language request.

dataroutedOperationoperationId
string

Resolved public API operation id, e.g. youtube.channel.get.

dataroutedOperationmethod
string

HTTP method for the routed lookup.

dataroutedOperationpath
string

OpenAPI path template for the routed lookup.

dataroutedOperationparams
object

Path and query parameters for the routed lookup.

Nested lookup response from the routed public API operation.

datalookupdata
nullableoptional

Success payload from the routed lookup. Shape depends on the resolved operation.

datalookupmetarequestId
string

Request id for the nested lookup response.

datalookupmetacreditsCharged
number

Credits charged for the routed lookup.

datalookupmetaversion
string

one of: v1

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

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

Code example

curl "https://api.socialfetch.dev/v1/ask" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"How many TikTok followers does MrBeast have?"}' \
  -X POST

Responses

Routed lookup result with the underlying public API response nested in `data.lookup`.