Complete guides for using Ordliy API through RapidAPI. Learn how to extract structured data from images, PDFs, and text files with nested schemas. All examples are live and ready to test!
Ordliy is available exclusively through RapidAPI. Follow these simple steps to get started.
Create a free account on RapidAPI if you don't have one. It takes less than a minute.
Visit RapidAPI โFind Ordliy on RapidAPI Hub and subscribe. Start with the free tier or choose a plan that fits your needs.
Browse APIs โOnce subscribed, RapidAPI will provide your unique API key. Copy it and keep it secure.
X-RapidAPI-Key: your-api-key-here Use the tutorials below to start extracting data. All endpoints are available through RapidAPI.
https://rapidAPI.com/v1/json Extract structured recipe data from images with nested ingredients and instructions arrays
https://cdn.ordliy.com/old-recipe.jpg curl -X POST https://rapidAPI.com/v1/json \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: ordliy.p.rapidapi.com" \
-d '{
"url": "https://cdn.ordliy.com/old-recipe.jpg",
"returnSchema": {
"recipe_name": {
"key": "recipe_name",
"description": "Name of the recipe",
"type": "string"
},
"servings": {
"key": "servings",
"description": "Number of servings",
"type": "number"
},
"prep_time": {
"key": "prep_time",
"description": "Prep time in minutes",
"type": "number"
},
"cook_time": {
"key": "cook_time",
"description": "Cook time in minutes",
"type": "number"
},
"ingredients": {
"key": "ingredients",
"description": "List of ingredients",
"type": "array",
"items": {
"key": "ingredient",
"description": "Ingredient with measurement",
"type": "string"
}
},
"instructions": {
"key": "instructions",
"description": "Cooking steps",
"type": "array",
"items": {
"key": "step",
"description": "A cooking step",
"type": "string"
}
},
"difficulty": {
"key": "difficulty",
"description": "Difficulty level",
"type": "string"
}
}
}' {
"message": "Success",
"returnSchema": {
"recipe_name": "Butter Kernel Corn-Cheese Bake",
"servings": 7,
"prep_time": 10,
"cook_time": 32.5,
"ingredients": [
"1/2 cup all-purpose flour",
"1 16-ounce can Butter Kernel cream-style corn",
"1 3-ounce package cream cheese, cut in cubes",
"1/2 teaspoon onion salt",
"1 16-ounce can Butter Kernel corn, drained",
"1/2 cup shredded processed Swiss cheese (2 ounces)"
],
"instructions": [
"Stir flour into cream-style corn.",
"Add cream cheese and onion; heat and stir till cheese melts.",
"Stir in remaining ingredients.",
"Pour into 1 1/2 quart casserole, top with buttered crumbs, if desired.",
"Bake uncovered at 400ยฐF for 30 to 35 minutes."
],
"difficulty": "Easy"
}
} Extract structured data from multi-page PDF documents including textbooks, manuals, and reports
https://cdn.ordliy.com/test-text-book.pdf curl -X POST https://rapidAPI.com/v1/json \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: ordliy.p.rapidapi.com" \
-d '{
"url": "https://cdn.ordliy.com/test-text-book.pdf",
"returnSchema": {
"document_title": {
"key": "document_title",
"description": "Title of the document",
"type": "string"
},
"author": {
"key": "author",
"description": "Author name",
"type": "string"
},
"table_of_contents": {
"key": "table_of_contents",
"description": "List of chapters",
"type": "array",
"items": {
"key": "chapter",
"description": "Chapter details",
"type": "object",
"properties": {
"chapter_number": {
"key": "chapter_number",
"description": "Chapter number",
"type": "number"
},
"chapter_title": {
"key": "chapter_title",
"description": "Chapter title",
"type": "string"
},
"page_number": {
"key": "page_number",
"description": "Starting page",
"type": "number"
}
}
}
},
"total_pages": {
"key": "total_pages",
"description": "Total pages in document",
"type": "number"
},
"key_topics": {
"key": "key_topics",
"description": "Main topics covered",
"type": "array",
"items": {
"key": "topic",
"description": "A topic",
"type": "string"
}
},
"publication_info": {
"key": "publication_info",
"description": "Publication details",
"type": "object",
"properties": {
"publisher": {
"key": "publisher",
"description": "Publisher name",
"type": "string"
},
"year": {
"key": "year",
"description": "Publication year",
"type": "number"
},
"isbn": {
"key": "isbn",
"description": "ISBN number",
"type": "string"
}
}
}
}
}' {
"message": "Success",
"returnSchema": {
"document_title": "Introduction to Machine Learning",
"author": "Dr. Jane Smith",
"table_of_contents": [
{
"chapter_number": 1,
"chapter_title": "Foundations of Machine Learning",
"page_number": 15
},
{
"chapter_number": 2,
"chapter_title": "Supervised Learning Algorithms",
"page_number": 42
},
{
"chapter_number": 3,
"chapter_title": "Neural Networks and Deep Learning",
"page_number": 89
}
],
"total_pages": 350,
"key_topics": [
"Linear Regression",
"Decision Trees",
"Neural Networks",
"Deep Learning",
"Model Evaluation"
],
"publication_info": {
"publisher": "Tech Publishing House",
"year": 2023,
"isbn": "978-1-234-56789-0"
}
}
} Common use cases with ready-to-use schemas
Extract store name, date, items, and totals from receipts with nested item arrays.
{
"store_name": {...},
"items": [
{"name": "...", "price": 0, "quantity": 0}
],
"total": {...}
} Extract customer details, line items, and payment info with deeply nested structures.
{
"customer": {
"name": "...",
"address": {...}
},
"items": [{...}]
} Extract product specs, features, and pricing with nested specification objects.
{
"product_name": "...",
"specs": {...},
"features": ["..."]
} Extract form fields, checkboxes, and signatures with boolean types and structured data.
{
"applicant": {...},
"agreed_terms": true,
"selections": ["..."]
} Analyze photos for objects, people, and context with scene details as nested objects.
{
"scene": {...},
"people_count": 0,
"activities": ["..."]
} Extract meeting info, attendees, and action items from text files with structured data.
{
"meeting_title": "...",
"attendees": ["..."],
"action_items": [{...}]
} Everything you need for document and image extraction via RapidAPI
/v1/json - Extract from URLs or Base64
/v1/form-data - Upload files directlyTips to get the most accurate results from the API
The more specific your field descriptions, the better the AI can extract the right data.
Use the appropriate data type for each field to ensure proper formatting in the response.
Group related fields into objects. Use arrays for repeating data like line items.
For lists with multiple properties, always use arrays of objects instead of strings.
Use clear, high-resolution images and native PDFs for best results.
Start with a simple schema and gradually add complexity based on results.
Get your RapidAPI key and start using Ordliy OCR API today. Pay-per-use pricing with the most affordable rates.
๐ Ordliy API is exclusively available through RapidAPI for secure, reliable access