---
canonical_url: "https://docs.composio.dev/toolkits/anyapi"
markdown_url: "https://docs.composio.dev/toolkits/anyapi.md"
product: "platform"
version: null
last_updated: null
---

# AnyAPI

AnyAPI provides a marketplace of utility APIs for validation, currency conversion, holidays, document generation, web data, and other common application workflows.

- **Category:** developer tools
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 21
- **Triggers:** 0
- **Slug:** `ANYAPI`
- **Version:** 00000000_00

## Tools

### Analyze Sentiment

**Slug:** `ANYAPI_ANALYZE_SENTIMENT`

Classify the sentiment of English, Spanish, or Portuguese text and return the provider's label, score, language, and tokens.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | Text whose sentiment should be analyzed. |
| `language` | string ("English" | "Spanish" | "Portuguese") | No | Language of the input text; use the full language name. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Calculate VAT

**Slug:** `ANYAPI_CALCULATE_VAT`

Calculate the tax-inclusive total and applicable VAT details for a pre-tax amount and country, optionally considering a VAT number and state code.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `amount` | number | Yes | Pre-tax amount for which to calculate VAT. |
| `state_code` | string | No | Postal or ZIP code used to refine tax calculations in regions with specific rates. |
| `vat_number` | string | No | Customer VAT number used to determine charge treatment, if available. |
| `country_code` | string | Yes | Two-letter country code used to determine the applicable tax. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Check Holiday

**Slug:** `ANYAPI_CHECK_HOLIDAY`

Return holidays AnyAPI reports for a calendar date and country; reported holiday dates can differ from the requested date.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `date` | string | Yes | Calendar date to check in YYYY-MM-DD format. |
| `country_code` | string | Yes | Two-letter country code whose holidays should be checked, such as US. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Convert Currency

**Slug:** `ANYAPI_CONVERT_CURRENCY`

Convert a monetary amount between two currency codes using the latest available exchange rate.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `amount` | number | Yes | Amount in the source currency to convert. |
| `base_currency` | string | Yes | Three-letter source currency code, such as USD. |
| `target_currency` | string | Yes | Three-letter destination currency code, such as EUR. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Google Sheet Row

**Slug:** `ANYAPI_CREATE_GOOGLE_SHEET_ROW`

Append a row to a Google Sheets tab. Before calling this action, link the Google account that can access the spreadsheet inside AnyAPI.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `row` | object | Yes | Row values keyed by the destination sheet's column headers. |
| `doc_id` | string | Yes | Google Sheets document ID from the spreadsheet URL. |
| `sheet_title` | string | Yes | Exact title of the sheet tab to append to. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Google Sheet Row

**Slug:** `ANYAPI_DELETE_GOOGLE_SHEET_ROW`

Permanently delete an existing row from a Google Sheet tab by its row ID. Before calling this action, link the Google account that can access the spreadsheet inside AnyAPI.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `doc_id` | string | Yes | Google Sheets document ID. |
| `row_id` | string | Yes | Provider-defined numeric ID of the row to delete. Real Google Sheet row IDs are normally integer-valued, but AnyAPI documents this field as Number. |
| `sheet_title` | string | Yes | Exact title of the sheet tab containing the row. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Find Phone Numbers

**Slug:** `ANYAPI_FIND_PHONE_NUMBERS`

Find phone numbers in text and return each number's parsed format, validity, type, and character offsets.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | Text to scan for phone numbers. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Blog OpenGraph Image

**Slug:** `ANYAPI_GENERATE_BLOG_OPENGRAPH_IMAGE`

Currently unavailable because AnyAPI's Chromium runtime is failing. Intended to generate a downloadable PNG OpenGraph image for a blog post from its title and author.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `title` | string | Yes | Blog-post title rendered into the OpenGraph image. |
| `author` | string | Yes | Blog-post author rendered into the OpenGraph image. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate PDF Invoice

**Slug:** `ANYAPI_GENERATE_PDF_INVOICE`

Generate and return a downloadable PDF invoice using seller, customer, tax, payment, locale, and up to one line item.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tax` | number | No | Tax value accepted by the provider for this invoice. |
| `items` | array | No | Optional invoice line item. AnyAPI accepts one item with a name, unit cost, quantity, and optional description. |
| `notes` | string | No | Optional notes displayed on the invoice. |
| `locale` | string | No | Locale used to format invoice text and values. |
| `currency` | string | No | Currency code or symbol displayed for monetary values. |
| `due_date` | string | No | Payment due date in YYYY-MM-DD format. |
| `logo_url` | string | No | Public image URL for the invoice logo. |
| `amount_paid` | number | No | Amount already paid to show on the invoice. |
| `seller_name` | string | No | Seller or sender name displayed on the invoice. |
| `invoice_date` | string | No | Invoice issue date in YYYY-MM-DD format. |
| `customer_name` | string | No | Customer or recipient name displayed on the invoice. |
| `invoice_number` | string | No | Identifier displayed on the invoice. |
| `seller_address` | string | No | Seller postal address displayed on the invoice. |
| `shipping_address` | string | No | Optional shipping address displayed on the invoice. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Google Sheet Document

**Slug:** `ANYAPI_GET_GOOGLE_SHEET_DOCUMENT`

Return a Google Sheets document's title, locale, and sheet-tab titles. Requires the AnyAPI account to have a Google account linked inside AnyAPI.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `doc_id` | string | Yes | Google Sheets document ID from the spreadsheet URL. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Google Sheet Rows

**Slug:** `ANYAPI_GET_GOOGLE_SHEET_ROWS`

Get the JSON payload for one Google Sheets tab as an object or array of row objects. AnyAPI's documentation conflicts: its example shows document metadata instead of rows, so callers must inspect the returned data shape. This requires a Google account to be linked separately inside AnyAPI in addition to the AnyAPI API key.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `doc_id` | string | Yes | Google Sheets document ID from the spreadsheet URL. |
| `sheet_title` | string | Yes | Exact title of the sheet tab to convert to JSON. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get VAT Rates

**Slug:** `ANYAPI_GET_VAT_RATES`

Return the latest applicable VAT rate and charge treatment for a country and optional VAT number.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `vat_number` | string | No | VAT number used to determine business charge treatment, if available. |
| `country_code` | string | Yes | Two-letter country code whose VAT rate should be returned. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Exchange Rates

**Slug:** `ANYAPI_LIST_EXCHANGE_RATES`

Return the latest available exchange rates for every supported currency relative to an optional base currency, or AnyAPI's default when omitted.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `base_currency` | string | No | Optional three-letter currency code to use as the rate base, such as USD. Omit it to use AnyAPI's default base currency. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Holidays

**Slug:** `ANYAPI_LIST_HOLIDAYS`

List holidays for a country, optionally narrowed by subdivision, language, and year.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `year` | integer | No | Optional four-digit calendar year; omit to use the provider default. |
| `state` | string | No | Optional state or first-level subdivision filter in the provider-supported spelling. |
| `region` | string | No | Optional regional subdivision filter in the provider-supported spelling. |
| `language` | string | No | Optional language or locale requested for holiday names. |
| `country_code` | string | Yes | Two-letter country code whose holidays should be returned, such as US. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Lookup IP

**Slug:** `ANYAPI_LOOKUP_IP`

Look up approximate location, timezone, daylight-saving, and country-flag details for an IPv4 or IPv6 address.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ip_address` | string | Yes | IPv4 or IPv6 address to look up. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Scrape Webpage

**Slug:** `ANYAPI_SCRAPE_WEBPAGE`

Currently unavailable because AnyAPI's Chromium runtime is failing. Intended to render and scrape a public HTTP or HTTPS webpage, optionally returning only content matching a CSS selector.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public HTTP or HTTPS webpage URL to render and scrape. |
| `selector` | string | No | Optional CSS selector used to return only matching content. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Take Website Screenshot

**Slug:** `ANYAPI_TAKE_WEBSITE_SCREENSHOT`

Currently unavailable because AnyAPI's Chromium runtime is failing. Intended to capture a public webpage as a downloadable PNG, JPEG, or PDF with optional viewport, quality, and full-page settings.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public HTTP or HTTPS webpage URL to capture. |
| `width` | integer | No | Optional viewport width in pixels. |
| `format` | string ("png" | "jpeg" | "pdf") | No | Output format. Omit it to use the provider's default format. |
| `height` | integer | No | Optional viewport height in pixels. |
| `quality` | integer | No | Optional provider-defined image quality. Not applicable to PNG. |
| `full_page` | boolean | No | Whether to capture the full scrollable page instead of the viewport. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Validate Email

**Slug:** `ANYAPI_VALIDATE_EMAIL`

Validate an email address and report syntax, typo, disposable-domain, and MX checks.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | Yes | Email address to parse and validate. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Validate IBAN

**Slug:** `ANYAPI_VALIDATE_IBAN`

Validate an IBAN and return its normalized formats plus bank and BIC details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `iban` | string | Yes | International Bank Account Number to validate, with or without spaces. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Validate Phone Number

**Slug:** `ANYAPI_VALIDATE_PHONE_NUMBER`

Validate and parse one phone number into country, type, international, national, and telephone-URI forms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `phone_number` | string | Yes | Phone number to validate, preferably in international form with a leading plus sign. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Validate VAT Number

**Slug:** `ANYAPI_VALIDATE_VAT_NUMBER`

Validate a VAT number and return its normalized identifier plus country and registered-company details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `vat_number` | string | Yes | VAT registration number to validate, including its country prefix when applicable. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
