Everything you need to integrate the RichAPI API into your product.
Normalize a messy URL or domain string to a clean root domain.
/api/v1/clean_domainParameters
| Field | Type | Required | Description |
|---|---|---|---|
messy_url | string | Yes | URL or domain to normalize (e.g. https://www.Example.COM/page?q=1) |
Example response
{
"clean_domain": "acme.com",
"clean_url": "https://www.acme.com",
"validated_domain": true
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/clean_domain \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messy_url": "https://www.acme.com/about?ref=google"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryCount how many times a substring appears in a string, with optional case-insensitive matching.
/api/v1/count_occurrencesParameters
| Field | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Input string to search within |
separator | string | Yes | Substring to split and count by |
case_insensitive | bool | No | Case-insensitive matching (default false) |
limit | int | No | Max results to return (0 for all, max 1000) |
Example response
{
"results": [
{
"count": 2,
"item": "foo"
},
{
"count": 1,
"item": "bar"
},
{
"count": 1,
"item": "baz"
}
],
"total_items": 4,
"unique_items": 3
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/count_occurrences \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "foo,bar,foo,baz",
"separator": ",",
"case_insensitive": true,
"limit": 10
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryRound-robin distribute leads across a set of assignment labels (e.g. sales reps).
/api/v1/distribute_leadsParameters
| Field | Type | Required | Description |
|---|---|---|---|
assignment_labels | string | No | Comma-separated assignment labels (e.g. Team A,Team B,Team C) |
values_associated_with_labels | string | Yes | Comma-separated values to distribute (e.g. alice@co.com,bob@co.com) |
current_index | int | No | Starting index for round-robin (default 0) |
Example response
{
"assignments": [],
"next_index": 1
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/distribute_leads \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assignment_labels": "Team A,Team B,Team C",
"values_associated_with_labels": "alice@co.com,bob@co.com,carol@co.com",
"current_index": 0
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryURL-encode a string for safe use in query parameters or path segments.
/api/v1/encode_uriParameters
| Field | Type | Required | Description |
|---|---|---|---|
value | string | Yes | String to URL-encode (RFC 3986) |
Example response
{
"encoded": "example"
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/encode_uri \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"value": "hello world & foo=bar"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryExtract all URLs and email addresses from a block of text.
/api/v1/extract_urls_emailsParameters
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text block to extract URLs and emails from |
Example response
{
"emails": [],
"urls": []
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/extract_urls_emails \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Contact us at hello@acme.com or visit https://acme.com"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryFollow a URL through all redirects and return the final destination URL.
/api/v1/find_redirectParameters
| Field | Type | Required | Description |
|---|---|---|---|
link | string | Yes | URL to follow through all redirects to the final destination |
Example response
{
"final_url": "example",
"redirect_chain": [],
"status_code": 1
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/find_redirect \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"link": "https://bit.ly/example"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryDiscover and filter URLs from a domain's sitemap by keyword.
/api/v1/find_sitemap_urlsParameters
| Field | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Domain to discover sitemap URLs from (e.g. stripe.com) |
keywords | string | No | Comma-separated keywords to filter URLs |
exact_match | bool | No | Match keywords exactly (default false) |
Example response
{
"total": 1,
"urls": []
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/find_sitemap_urls \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "stripe.com",
"keywords": "pricing",
"exact_match": true
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryParse and reformat a date/time string with optional timezone conversion and locale.
/api/v1/format_datetimeParameters
| Field | Type | Required | Description |
|---|---|---|---|
date | string | Yes | Date/time string to parse (ISO 8601 or common formats) |
format | string | No | strftime format string for output (e.g. %B %d, %Y) |
original_timezone | string | No | Timezone of the input date (e.g. UTC) |
new_timezone | string | No | Target timezone for output (e.g. America/New_York) |
locale | string | No | Locale for month/day names (e.g. en, fr) |
Example response
{
"formatted": "example",
"iso": "example",
"timezone": "example"
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/format_datetime \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-04-11T14:30:00Z",
"format": "%B %d, %Y",
"original_timezone": "example",
"new_timezone": "America/New_York",
"locale": "example"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryClassify an email address as personal, business, role-based, or disposable.
/api/v1/identify_email_typeParameters
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Email address to classify |
Example response
{
"domain": "example",
"type": "example"
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/identify_email_type \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "john.doe@gmail.com"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryClean and normalize a company name by removing legal suffixes, extra whitespace, and punctuation.
/api/v1/normalize_companyParameters
| Field | Type | Required | Description |
|---|---|---|---|
company_name | string | Yes | Company name to normalize (e.g. ACME TECHNOLOGIES, INC.) |
normalize_case | bool | No | Convert to title case (default true) |
Example response
{
"normalized": "example"
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/normalize_company \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"company_name": "ACME TECHNOLOGIES, INC.",
"normalize_case": true
}'Try it
Sign in to test this endpoint with your API key.
Sign in to trySplit a delimited string into a clean list, optionally removing empty values.
/api/v1/normalize_listParameters
| Field | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Delimited string to split and deduplicate |
remove_empty_values | bool | No | Remove empty items after splitting (default false) |
Example response
{
"list": []
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/normalize_list \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "apple, Banana, apple, , cherry",
"remove_empty_values": true
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryParse and normalize a phone number to E.164 format with optional country code hint.
/api/v1/normalize_phoneParameters
| Field | Type | Required | Description |
|---|---|---|---|
phone_number | string | Yes | Phone number to normalize (any format) |
country_code | string | No | ISO country code hint (e.g. US) |
Example response
{
"country": "example",
"e164": "example",
"national": "example",
"valid": true
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/normalize_phone \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "(415) 555-1234",
"country_code": "US"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryPredict the gender of a person from their first name.
/api/v1/predict_genderParameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | First name to predict gender for |
Example response
{
"confidence": 1,
"gender": "example"
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/predict_gender \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Jordan"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to tryStrip and collapse extra whitespace from a string.
/api/v1/remove_whitespaceParameters
| Field | Type | Required | Description |
|---|---|---|---|
input_text | string | Yes | String to strip and collapse whitespace from |
Example response
{
"output": "example"
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/remove_whitespace \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input_text": " hello world "
}'Try it
Sign in to test this endpoint with your API key.
Sign in to try