For Web Service
Native Web Service for accessing the UnDatasIO Platform
Web Service
Overview
The UnDatasIO for Web Service enables easy interaction with the UnDatasIO API, allowing developers to execute queries and mutations against the UnDatasIO platform.
Prerequisites
Before you begin, ensure you have the following:
An active account on the UnDatasIO Platform with access to the API Settings page.
Get your API Keys

Get your task_name

Configuration
{
"baseURL":"https://backend.undatas.io/api/api",
"Content-Type":"application/x-www-form-urlencoded"
}
Upload file
# 2. Upload files
{
"url": "/upload",
"params": {
"file": "File",
"user_id": "Your API Keys",
"task_name": "Your task_name"
},
"response": {
"code": 200,
"message": "success",
"data": []
}
}
View all uploaded files
# 3. View all uploaded files
{
"url": "/view_upload_file",
"params": {
"user_id": "Your API Keys",
"task_name": "Your task_name"
},
"response": {
"code": 200,
"message": "success",
"data": [
{
"file_name":"",
"size":""
}
]
}
}
Parse the specified PDF file
# 4. Parse files
{
"url": "/task_return_list",
"params": {
"fileName": ["example_file1.pdf", "example_file2.pdf"],
"user_id": "String",
"task_id": "String",
"lang": "en",
"parameter": "fast"
},
"response": {
"code": 200,
"message": "success",
"data": {}
}
}
View version information for all parsed results
# 5. View historical parsing results
{
"url": "/version_info",
"params": {
"user_id": "String",
"task_name": "String",
},
"response": {
"code": 200,
"message": "success",
"data": {}
}
}
View the parsed result
# 6. View parsing results (assuming you know the version number is 'v1' and want to get the title and table information in the parsing results)
{
"url": "https://backend.undatas.io/api/api/get_type_info",
"params": {
"user_id": "025ae1da7598456daa802fef7873e31b",
"type_info": ["table"],
"file_name": "1d8c9bc374114b6e901da.pdf",
"version": "v26",
"task_name": "pdfParserDemo"
},
"response": {
"code": 200,
"message": "success",
"data": "result"
}
}
Last updated