OneSimpleAPI
onesimpleapiOneSimpleAPI provides utility APIs for web content, images, PDFs, QR codes, URL management, validation, exchange rates, and file management.
Acciones disponibles (15)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Analyze ReadabilityONESIMPLEAPI_ANALYZE_READABILITYAcciónAnalyze text for readability, grade level, reading time, difficult-word counts, and sentiment.
ONESIMPLEAPI_ANALYZE_READABILITYAcciónAnalyze text for readability, grade level, reading time, difficult-word counts, and sentiment.
Parámetros de entrada
textstringObligatorioText to analyze for readability, reading time, and sentiment.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Calculate PPP DiscountONESIMPLEAPI_CALCULATE_PPP_DISCOUNTAcciónCalculate a purchasing-power-parity discount and localized price between an origin and a destination country.
ONESIMPLEAPI_CALCULATE_PPP_DISCOUNTAcciónCalculate a purchasing-power-parity discount and localized price between an origin and a destination country.
Parámetros de entrada
pricenumberObligatorioPositive base price to localize.
max_discountnumberMaximum discount percentage.
destination_user_ipstringDestination user's IPv4 or IPv6 address. Provide exactly one of this field or destination_country_code.
origin_country_codestringObligatorioTwo-letter ISO country code where the base price applies.
destination_country_codestringTwo-letter ISO destination country code. Provide exactly one of this field or destination_user_ip.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Capture ScreenshotONESIMPLEAPI_CAPTURE_SCREENSHOTAcciónCapture a webpage URL or raw HTML as a hosted screenshot and return its URL and rendering metadata.
ONESIMPLEAPI_CAPTURE_SCREENSHOTAcciónCapture a webpage URL or raw HTML as a hosted screenshot and return its URL and rendering metadata.
Parámetros de entrada
urlstringPublic webpage URL to capture; provide this or html.
htmlstringRaw HTML to capture; provide this or url.
forcebooleanForce a fresh capture rather than reuse a cached result.
screenanyViewport preset (retina, phone, phone-landscape, tablet, tablet-landscape, 4k, or 8k) or custom:WIDTHxHEIGHT in pixels.
full_pagebooleanCapture the full scrollable page rather than only the viewport.
backgroundbooleanInclude page background rendering.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Convert CurrencyONESIMPLEAPI_CONVERT_CURRENCYAcciónConvert an amount between supported currencies and return the converted value and exchange rate.
ONESIMPLEAPI_CONVERT_CURRENCYAcciónConvert an amount between supported currencies and return the converted value and exchange rate.
Parámetros de entrada
from_valuenumberAmount in the source currency to convert.
to_currencystringObligatorioThree-letter destination currency code, such as EUR.
from_currencystringThree-letter source currency code.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Short URLONESIMPLEAPI_CREATE_SHORT_URLAcciónCreate a OneSimpleAPI short URL with optional one-time-use, redirect, query-forwarding, and active-date controls.
ONESIMPLEAPI_CREATE_SHORT_URLAcciónCreate a OneSimpleAPI short URL with optional one-time-use, redirect, query-forwarding, and active-date controls.
Parámetros de entrada
urlstringObligatorioDestination HTTP or HTTPS URL.
end_datestringOptional ISO date when the short URL stops being active.
single_usebooleanWhether the short URL should work only once.
start_datestringOptional ISO date when the short URL becomes active.
forward_paramsbooleanWhether incoming query parameters should be forwarded to the destination.
temporary_redirectbooleanWhether redirects should be temporary rather than permanent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete FileONESIMPLEAPI_DELETE_FILEAcciónDelete a generated OneSimpleAPI file by its hosted URL and return the updated file record.
ONESIMPLEAPI_DELETE_FILEAcciónDelete a generated OneSimpleAPI file by its hosted URL and return the updated file record.
Parámetros de entrada
urlstringObligatorioGenerated file URL returned by a creation tool or List Files.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Expand Short URLONESIMPLEAPI_EXPAND_SHORT_URLAcciónResolve a shortened URL and return its final URL, redirect count, and redirect trace.
ONESIMPLEAPI_EXPAND_SHORT_URLAcciónResolve a shortened URL and return its final URL, redirect count, and redirect trace.
Parámetros de entrada
urlstringObligatorioShortened HTTP or HTTPS URL to resolve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate or Convert ColorONESIMPLEAPI_GENERATE_OR_CONVERT_COLORAcciónGenerate a deterministic color palette from text or convert a supplied color into HEX, RGB, HSL, and related palette values.
ONESIMPLEAPI_GENERATE_OR_CONVERT_COLORAcciónGenerate a deterministic color palette from text or convert a supplied color into HEX, RGB, HSL, and related palette values.
Parámetros de entrada
huenumberOptional palette hue adjustment from 0 through 360.
textstringText used to deterministically generate a color and palette; provide this or color.
colorstringHEX or rgb() color to convert; provide this or text.
lightnessnumberOptional palette lightness adjustment from 0 through 1.
saturationnumberOptional palette saturation adjustment from 0 through 1.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate PDFONESIMPLEAPI_GENERATE_PDFAcciónGenerate a PDF from either a webpage URL or raw HTML and return the hosted PDF URL and page metadata.
ONESIMPLEAPI_GENERATE_PDFAcciónGenerate a PDF from either a webpage URL or raw HTML and return the hosted PDF URL and page metadata.
Parámetros de entrada
urlstringPublic webpage URL to convert; provide this or html.
htmlstringRaw HTML to convert. Use this instead of url; do not provide both fields.
pagestringenumPDF page size.
LetterLegalTabloidLedgerA0A1A2A3A4A5A6forcebooleanForce regeneration rather than reuse a cached result.
backgroundbooleanInclude page backgrounds in the PDF; disabled by default.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate QR CodeONESIMPLEAPI_GENERATE_QR_CODEAcciónGenerate a hosted PNG or SVG QR code for a message and return its URL.
ONESIMPLEAPI_GENERATE_QR_CODEAcciónGenerate a hosted PNG or SVG QR code for a message and return its URL.
Parámetros de entrada
sizestringenumGenerated QR code size.
smallmediumlargecolorstringForeground color in hexadecimal, RGB, or RGBA notation.
formatstringenumGenerated image format.
pngsvgmessagestringObligatorioText, URL, phone number, or other message to encode in the QR code.
backgroundstringBackground color in hexadecimal, RGB, or RGBA notation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Image InformationONESIMPLEAPI_GET_IMAGE_INFORMATIONAcciónExtract dimensions, image metadata, EXIF camera fields, and available GPS details from an image URL. Returned fields vary with the metadata embedded in the image.
ONESIMPLEAPI_GET_IMAGE_INFORMATIONAcciónExtract dimensions, image metadata, EXIF camera fields, and available GPS details from an image URL. Returned fields vary with the metadata embedded in the image.
Parámetros de entrada
rawbooleanWhether to include raw metadata in addition to normalized fields.
urlstringObligatorioPublicly reachable image URL to inspect.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List FilesONESIMPLEAPI_LIST_FILESAcciónReturn one page of generated files owned by the connected account, optionally filtered by live or deleted status.
ONESIMPLEAPI_LIST_FILESAcciónReturn one page of generated files owned by the connected account, optionally filtered by live or deleted status.
Parámetros de entrada
statusstringenumOptional lifecycle status to filter files by.
livedeletednext_cursorstringCursor from a previous response; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Short URLsONESIMPLEAPI_LIST_SHORT_URLSAcciónReturn one page of OneSimpleAPI short URLs and their click statistics.
ONESIMPLEAPI_LIST_SHORT_URLSAcciónReturn one page of OneSimpleAPI short URLs and their click statistics.
Parámetros de entrada
next_cursorstringCursor from a previous response; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Transform ImageONESIMPLEAPI_TRANSFORM_IMAGEAcciónResize, crop, rotate, flip, filter, border, optimize, and host an image, returning the generated image URL and metadata.
ONESIMPLEAPI_TRANSFORM_IMAGEAcciónResize, crop, rotate, flip, filter, border, optimize, and host an image, returning the generated image URL and metadata.
Parámetros de entrada
cropstringCrop size, such as 200x150, or a supported social-media size.
flipstringenumFlip vertically, horizontally, or on both axes.
vhvhpageintegerOne-based page number to convert when the source is a multi-page PDF.
sizestringOutput size, such as 200x150, 200w, 150h, or a supported social-media size.
forcebooleanWhether to regenerate the image instead of reusing a cached transform.
imagestringObligatorioSource image URL or provider-supported base64 image value.
borderintegerBorder width in pixels.
crop_xnumberHorizontal crop coordinate used with offset or focal crop mode.
crop_ynumberVertical crop coordinate used with offset or focal crop mode.
formatstringenumGenerated image format.
webpjpgpngrotatestringenumRotation to apply to the generated image.
auto90180270filtersstringComma-separated filters: grayscale, sepia, or name:value using blur and sharpen from 0 to 100, brightness and contrast from -100 to 100, gamma from 0.01 to 9.99, or pixelate from 0 to 1000.
optimizebooleanWhether to optimize the generated image for size and performance.
crop_modestringenumCrop strategy, such as center, top-left, offset, or focal. Use offset or focal with crop_x and crop_y.
toptop-lefttop-rightcentercenter-leftcenter-rightbottombottom-leftbottom-rightoffsetfocalresize_modestringenumHow to fit the source into the requested size.
containsize-limitforcedborder_colorstringBorder color as an HTML color name or hexadecimal color.
border_methodstringenumHow the border affects the output image dimensions.
overlayexpandshrink
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Validate EmailONESIMPLEAPI_VALIDATE_EMAILAcciónValidate an email address and assess its domain, MX records, deliverability, disposability, role status, and registration safety.
ONESIMPLEAPI_VALIDATE_EMAILAcciónValidate an email address and assess its domain, MX records, deliverability, disposability, role status, and registration safety.
Parámetros de entrada
emailstringObligatorioEmail address to validate.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not