Convert JSON to Excel - Data Transform API
PDF4me Convert JSON to Excel is a comprehensive enterprise-grade solution that transforms JSON data into professional Excel spreadsheets through robust API integration. Our advanced cloud-based processing engine supports comprehensive data conversion with custom worksheet naming, advanced text formatting, intelligent number and date conversion, and flexible positioning controls. The API efficiently processes data transformation by receiving JSON content and conversion parameters through REST API calls, utilizing advanced rendering technology for precise spreadsheet generation with professional formatting. With comprehensive support for custom headers, data type conversion, null value handling, and professional formatting options, this solution is ideal for business intelligence systems, data reporting platforms, analytics dashboards, and enterprise data transformation workflows that require reliable, scalable JSON to Excel conversion with professional-grade output quality.
Authenticating Your API Request
To access the PDF4me REST API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user of the REST API.
Key Features
- Custom Worksheet Management: Assign descriptive names to Excel worksheets for better organization and professional presentation
- Advanced Text Formatting: Control title wrapping, bold formatting, text positioning, and typography for enhanced readability
- Intelligent Data Type Conversion: Automatically convert numbers, dates, and other data types to proper Excel formats with validation
- Flexible Data Positioning: Control starting row and column placement for precise data organization and layout control
- Smart Null Value Handling: Choose to include or exclude null values in output with intelligent data cleaning options
- Professional Excel Formatting: Generate clean, business-ready Excel files with consistent formatting and professional appearance
REST API Endpoint
The PDF4me REST API uses standard HTTP methods to interact with resources. All JSON to Excel conversion operations are performed through a single endpoint:
- Method: POST
- Endpoint:
/api/v2/ConvertJsonToExcel
REST API Parameters
Complete list of parameters for the Convert JSON to Excel REST API. Parameters are organized by category for better understanding and implementation.
Important: Parameters marked with an asterisk (*) are required and must be provided for the API to function correctly.
Required Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| fileName* | String | Name of the output Excel file with .xlsx extension | data_export.xlsx |
| docName* | String | Content of the base JSON file encoded in Base64 format | JVBERi... |
| worksheetName* | String | Name of the worksheet. Can be any string value | Sheet1 |
Formatting Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| isTitleWrapText* | Boolean | Wrap title text to next line if too long. Options: true (wrap), false (single line) | true |
| isTitleBold* | Boolean | Make title text bold for emphasis. Options: true (bold), false (normal) | true |
Data Conversion Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| convertNumberAndDate* | Boolean | Convert numeric values and dates to standard formats. Options: true (convert), false (keep as text) | false |
| numberFormat* | String | Number format specification as string value | "11" |
| dateFormat* | String | Date format specification as string value | "01/01/2025" |
Data Processing Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| ignoreNullValues* | String | Skip fields containing null values. Options: "true" (ignore), "false" (include) | "false" |
| firstRow* | Integer | Starting row for data placement (must be integer) | 1 |
| firstColumn* | Integer | Starting column for data placement (must be integer) | 1 |
Output
The PDF4me Convert JSON to Excel REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:
- JSON
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
[
{
"fileName": "data_export.xlsx",
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"fileSize": 156789,
"success": true,
"worksheetName": "Sheet1",
"rowsProcessed": 150,
"columnsProcessed": 8
}
]
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| fileName | data_export.xlsx |
| mimeType | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| fileSize | 156789 |
| success | true |
| worksheetName | Sheet1 |
| rowsProcessed | 150 |
| columnsProcessed | 8 |
Schema View
The data structure and types of the response:
1 item
fileName: AB data_export.xlsx
mimeType: AB application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
fileSize: # 156789
success: ☑ true
worksheetName: AB Sheet1
rowsProcessed: # 150
columnsProcessed: # 8
Type Indicators:
AB= String#= Number☑= Boolean
Binary Data View
The actual Excel file data and metadata:
data
─────────────────────────────
File Name: data_export.xlsx
File Extension: xlsx
Mime Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
File Size: 153 KB
Binary Data Access:
- Excel Content: Ready for download or further processing
- Base64 Content: Available for direct use
- File Operations: Ready for storage, email, or integration
Request Example
Header
Content-Type: application/json
Authorization: YOUR_API_KEY
Note: Get your API key from the PDF4me Dashboard
Payload
{
"fileName": "output.xlsx",
"docName": "Please put text base64 content",
"worksheetName": "Sheet1",
"isTitleWrapText": true,
"isTitleBold": true,
"convertNumberAndDate": false,
"numberFormat": "11",
"dateFormat": "01/01/2025",
"ignoreNullValues": "false",
"firstRow": 1,
"firstColumn": 1
}
Code Samples
The PDF4me Convert JSON to Excel REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:
- C#
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda
Google Script Sample
Google Apps Script implementation for Google Workspace integration:
Industry Use Cases & Applications
- Business Intelligence & Analytics
- Data Integration & ETL
- Business Operations
- Compliance & Documentation
- Research & Development
Business Intelligence & Analytics Use Cases
- Data Reporting: Convert API responses and database exports to Excel for stakeholder reports
- Dashboard Data: Transform JSON analytics data into Excel for further analysis and visualization
- KPI Tracking: Convert performance metrics from JSON APIs into structured Excel reports
- Financial Analysis: Transform financial data from APIs into Excel for accounting and analysis
Data Integration & ETL Use Cases
- API Data Processing: Convert REST API responses to Excel for business users
- Database Exports: Transform JSON database dumps into Excel for data analysis
- System Integration: Convert data between different systems using JSON to Excel transformation
- Data Migration: Transform legacy data formats through JSON intermediate to Excel
Business Operations Use Cases
- Inventory Management: Convert product data from APIs to Excel for inventory tracking
- Customer Data: Transform customer information from CRM systems to Excel for analysis
- Sales Reporting: Convert sales data from various sources to Excel for reporting
- Project Management: Transform project data from project management tools to Excel
Compliance & Documentation Use Cases
- Audit Trails: Convert system logs and audit data to Excel for compliance reporting
- Regulatory Reporting: Transform regulatory data from APIs to Excel for submission
- Documentation: Convert technical data to Excel for business documentation
- Quality Assurance: Transform test results and quality data to Excel for analysis
Research & Development Use Cases
- Data Analysis: Convert research data from APIs to Excel for statistical analysis
- Survey Results: Transform survey responses from JSON to Excel for analysis
- Experimental Data: Convert lab results and experimental data to Excel
- Academic Research: Transform research data from various sources to Excel