Skip to main content
Calls a KonbiniAPI endpoint by its ID. Handles path parameter substitution, query string building, and default values automatically. Costs 1 credit per call. Use search_endpoints to find the endpoint ID first.

Parameters

ParameterTypeRequiredDescription
endpoint_idstringYesThe endpoint ID to call (e.g. tiktokGetUser). Use search_endpoints to find it.
paramsobjectNoPath and query parameters as flat string key-value pairs.

Example

{
  "name": "call_endpoint",
  "arguments": {
    "endpoint_id": "tiktokGetUserVideos",
    "params": {
      "username": "khaby.lame",
      "count": "10"
    }
  }
}

Response

The response body is the KonbiniAPI REST response with a metadata object appended:
{
  "type": "OrderedCollectionPage",
  "totalItems": 1309,
  "nextCursor": "1772217402000",
  "itemCount": 10,
  "orderedItems": [...],
  "metadata": {
    "creditsUsed": "1",
    "creditsRemaining": "4999"
  }
}
See response format and pagination for details on the response shape.

Chaining requests with entityId

Items in list responses include an entityId field — use it as the parameter value when calling detail or sub-resource endpoints. For example, use a video’s entityId as the videoId when fetching its comments. See response format for details.