Agentkit avatar

Agentkit

Pricing

from $15.00 / 1,000 results

Go to Apify Store
Agentkit

Agentkit

Unit conversion, time zone and date maths, cron schedules, pattern extraction from text, and format or JSON Schema validation.

Pricing

from $15.00 / 1,000 results

Rating

0.0

(0)

Developer

Jasper

Jasper

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 hours ago

Last modified

Categories

Share

Unit conversion, time zone and date maths, cron schedules, pattern extraction from text, and format or JSON Schema validation.

Each request you give the Actor is one call to the Agentkit service. Each call it answers is one result in the run's dataset.

Endpoints

  • POST /convert: Convert a value or a list of values between units JSON body fields: value (optional, number); values (optional, array); from (optional, string); to (optional, string); round (optional, integer).
  • POST /datetime: Time zones, date maths, date details and cron schedules JSON body fields: op (optional, string); ts (optional, string); ts2 (optional, string); tz (optional, string); to_tz (optional, string); amount (optional, number); unit (optional, string); cron (optional, string); count (optional, integer); after (optional, string).
  • POST /extract: Extract URLs, IDs, dates, phone numbers and other patterns from text JSON body fields: text (required, string); types (optional, array); unique (optional, boolean); max_hits (optional, integer).
  • POST /validate: Validate a value's format, or JSON data against a schema JSON body fields: op (optional, string); format (optional, string); value (optional); data (optional); schema (optional, object).

Input

  • Endpoint: which endpoint to call.
  • Requests: a list of up to 100 requests. For a GET endpoint each one is an object of its query parameters; for a POST endpoint, the JSON body to send.

Example input:

{
"endpoint": "/convert",
"requests": [
{
"value": 100,
"from": "km",
"to": "mi"
}
]
}

Output

One dataset item per request: request (its number in the input), endpoint, ok, status (the answer's status code), result (the answer: JSON or text, or for a file such as an image its contentType and base64 content) and error (why a request failed).

Pricing

You pay per result: once for each request the service answers successfully. Requests that fail, or cannot be sent, are free, and a run stops when its maximum cost is reached.