JSON Extractor
Extract structured JSON data from unstructured text based on a schema.
/api/v1/ai/json-extractor
Data extraction APIs converting raw emails, documents, and search inputs into validated JSON schemas.
{
"text": "Invoice INV-2041 from Acme Supplies, dated 3 Oct 2026, total due 1,240.50 USD by 2 Nov 2026.",
"schema": {
"invoice_number": "string",
"vendor": "string",
"total": "number",
"currency": "string",
"due_date": "date"
}
}
{
"data": {
"result": {
"extracted_data": {
"invoice_number": "INV-2041",
"vendor": "Acme Supplies",
"total": 1240.5,
"currency": "USD",
"due_date": "2026-11-02"
},
"schema_conforms": true
}
}
}
2 to 3 credits per call. Each one has its own page with parameters, code and examples.
Extract structured JSON data from unstructured text based on a schema.
/api/v1/ai/json-extractor
Understand, normalize, and extract filters, exclusions, and sorting parameters from user natural-language searches.
/api/v1/ai/search-query-parse
RSFlowHub Data Extraction & Parsing APIs transform messy, unstructured text (invoices, receipts, emails, free-form queries) into strict, type-safe JSON contracts. Responses are validated against the expected schema before they are returned, replacing brittle regex logic with reliable downstream ingestion.
X-API-Key headerA real request to POST /api/v1/ai/json-extractor. Every API in this category works the same way.
curl -X POST "https://rsflowhub.com/api/v1/ai/json-extractor" \
-H "X-API-Key: rfh_your_api_key" \
-H "Content-Type: application/json" \
-d '{"text":"Invoice INV-2041 from Acme Supplies, dated 3 Oct 2026, total due 1,240.50 USD by 2 Nov 2026.","schema":{"invoice_number":"string","vendor":"string","total":"number","currency":"string","due_date":"date"}}'
<?php
$response = (new \GuzzleHttp\Client())->post('https://rsflowhub.com/api/v1/ai/json-extractor', [
'headers' => ['X-API-Key' => 'rfh_your_api_key'],
'json' => json_decode('{"text":"Invoice INV-2041 from Acme Supplies, dated 3 Oct 2026, total due 1,240.50 USD by 2 Nov 2026.","schema":{"invoice_number":"string","vendor":"string","total":"number","currency":"string","due_date":"date"}}', true),
]);
print_r(json_decode($response->getBody(), true));
const response = await fetch("https://rsflowhub.com/api/v1/ai/json-extractor", {
method: "POST",
headers: {
"X-API-Key": "rfh_your_api_key",
"Content-Type": "application/json"
},
body: JSON.stringify({"text":"Invoice INV-2041 from Acme Supplies, dated 3 Oct 2026, total due 1,240.50 USD by 2 Nov 2026.","schema":{"invoice_number":"string","vendor":"string","total":"number","currency":"string","due_date":"date"}})
});
console.log(await response.json());
import requests
response = requests.post(
"https://rsflowhub.com/api/v1/ai/json-extractor",
headers={"X-API-Key": "rfh_your_api_key"},
json={"text":"Invoice INV-2041 from Acme Supplies, dated 3 Oct 2026, total due 1,240.50 USD by 2 Nov 2026.","schema":{"invoice_number":"string","vendor":"string","total":"number","currency":"string","due_date":"date"}},
)
print(response.json())
{
"success": true,
"request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
"data": {
"result": {
"extracted_data": {
"invoice_number": "INV-2041",
"vendor": "Acme Supplies",
"total": 1240.5,
"currency": "USD",
"due_date": "2026-11-02"
},
"schema_conforms": true
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
Transforms messy text into validated JSON data matching your target key-value schemas.
Extracts product category, brand, price filters, and color attributes from e-commerce search queries.
Flags malicious phishing attempts, spoofed domains, and scam text signatures automatically.
Typical pipelines built with Data Extraction & Parsing APIs.
Extract vendor names, line items, tax numbers, and payment totals from raw OCR text directly into accounting software schemas.
Convert search inputs like "red running shoes under $100 size 10" into structured search filter objects for Elasticsearch or SQL.
Extract company name, job title, phone numbers, and location from inbound contact messages automatically.
How the Data Extraction & Parsing APIs compare with calling a provider directly or running your own models.
| Topic | RSFlowHub | Provider SDK | Self-hosted |
|---|---|---|---|
| Schema Enforcement | 100% Schema Validation Guarantee | Frequent Markdown / Formatting Drift | Requires Custom JSON Patching |
| Execution Speed | Same LLM call plus validation and retries | Raw LLM call, you validate | Depends on GPU Load |
| Code Fragility | Zero Regex Maintenance | Complex Parsing Wrapper | High Maintenance Overhead |
Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. One key works for every API in every category.
Flowy
AI assistant