Skip to main content

📄 API ถอดข้อมูลจากประกาศงาน (JD) ด้วย AI

📄 AI สำหรับแปลงประกาศงาน (JD) จาก PDF หรือรูปภาพ เป็นข้อมูล JSON แบบมีโครงสร้าง ด้วย OCR และโมเดลภาษาไทย

Version Status New

โครงการนี้ยังมีฟังก์ชันในการประมวลผลเอกสาร Job Description (JD) (PDF, JPG, PNG) โดยใช้บริการ OCR ของ iApp เพื่อถอดข้อความดิบจาก JD และใช้โมเดล OpenThaiGPT ในการแปลงข้อความที่ได้เป็นข้อมูล JSON ที่มีโครงสร้าง ข้อมูลที่ได้รวมถึงตำแหน่งงาน, ชื่อบริษัท, สถานที่ทำงาน, ความรับผิดชอบ, คุณสมบัติที่ต้องการ และทักษะที่จำเป็นที่แนะนำโดย AI ข้อมูลนี้สามารถนำไปใช้ในการจับคู่ตำแหน่งงาน, การสรรหาบุคลากร หรือการจัดการงานทรัพยากรมนุษย์อื่น ๆ ได้

ทดลองใช้เลย!

Example Images (Click to try)

Example 1

Demo key is limited to 10 requests per day per IP
Click here to get your API key

วิธีรับ API Key?

กรุณาเยี่ยมชม API Portal เพื่อดู API key ที่มีอยู่ของคุณหรือขอ API key ใหม่

ตัวอย่างโค้ด

ตัวอย่าง JD

CV Example

Request:

    curl -X POST https://api.iapp.co.th/ocr/jd
-H "apikey: YOUR_API_KEY"
-F "file=@/path/to/sample_jd_2.png"

Response:

{
"jobTitle": "หัวหน้าฝ่ายเทคโนโลยีสารสนเทศ (Head of Information Technology)",
"companyName": null,
"location": null,
"salaryRange": null,
"responsibilities": [
"Supervise and control the work of subordinates for maximum efficiency.",
"Oversee, research, and develop the organization's computer systems, including hardware, software, network systems, and other related information databases.",
"Inspect and review the procurement of computers, peripherals, and all network equipment.",
"Oversee and control the maintenance of computers, peripherals, and all network equipment.",
"Oversee and control database backups and develop the organization's network system.",
"Certify the ability of personnel to use computers and various systems.",
"Prepare annual budgets and work plans.",
"Monitor and develop assigned tasks for effectiveness.",
"Perform other duties as assigned by superiors.",
"Cooperate in company activities and systems."
],
"qualifications": [
"Bachelor's/Master's degree",
"Major in Information Technology, Computer Engineering, or related fields",
"At least 2 years of experience",
"30 years old or older",
"Highly responsible and able to control work",
"Good knowledge of information technology"
],
"possibleSkillAndQualificationsByAI": [
"IT Management",
"Hardware",
"Software",
"Network Administration",
"Database Management",
"System Administration",
"Procurement",
"Maintenance Management",
"Data Backup and Recovery",
"Training",
"Budgeting",
"Problem Solving",
"Leadership",
"Team Management",
"Communication Skills"
]
}

คุณสมบัติ

  • การประมวลผล Job Description (JD): ถอดข้อมูลสำคัญจาก JD เช่น ตำแหน่งงาน, บริษัท, สถานที่, ความรับผิดชอบ, คุณสมบัติ, และทักษะที่จำเป็นที่แนะนำโดย AI
  • รูปแบบที่รองรับ: รองรับไฟล์ PDF, JPG, PNG, และ JPEG.

ตัวอย่างโค้ด

Python

import requests

url = "https://api.iapp.co.th/ocr/jd"

payload = {}
files=[
('file',('sample_jd_2.png',open('sample_jd_2.png','rb'),'application/pdf'))
]
headers = {"apikey": "YOUR_API_KEY"}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)

JavaScript

const axios = require("axios")
const FormData = require("form-data")
const fs = require("fs")

let data = new FormData()
data.append("file", fs.createReadStream("sample_jd_2.png"))

let config = {
method: "post",
maxBodyLength: Infinity,
url: "https://api.iapp.co.th/ocr/jd",
headers: {
apikey: "YOUR_API_KEY",
...data.getHeaders(),
},
data: data,
}

axios
.request(config)
.then((response) => {
console.log(JSON.stringify(response.data))
})
.catch((error) => {
console.log(error)
})

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.iapp.co.th/ocr/jd',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('file'=> new CURLFILE('sample_jd_2.png')),
CURLOPT_HTTPHEADER => array(
'apikey: YOUR_API_KEY'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


Swift

let parameters = [
[
"key": "file",
"src": "sample_jd_2.png",
"type": "file"
]] as [[String: Any]]

let boundary = "Boundary-\(UUID().uuidString)"
var body = Data()
var error: Error? = nil
for param in parameters {
if param["disabled"] != nil { continue }
let paramName = param["key"]!
body += Data("--\(boundary)\r\n".utf8)
body += Data("Content-Disposition:form-data; name=\"\(paramName)\"".utf8)
if param["contentType"] != nil {
body += Data("\r\nContent-Type: \(param["contentType"] as! String)".utf8)
}
let paramType = param["type"] as! String
if paramType == "text" {
let paramValue = param["value"] as! String
body += Data("\r\n\r\n\(paramValue)\r\n".utf8)
} else {
let paramSrc = param["src"] as! String
let fileURL = URL(fileURLWithPath: paramSrc)
if let fileContent = try? Data(contentsOf: fileURL) {
body += Data("; filename=\"\(paramSrc)\"\r\n".utf8)
body += Data("Content-Type: \"content-type header\"\r\n".utf8)
body += Data("\r\n".utf8)
body += fileContent
body += Data("\r\n".utf8)
}
}
}
body += Data("--\(boundary)--\r\n".utf8);
let postData = body


var request = URLRequest(url: URL(string: "https://api.iapp.co.th/ocr/jd")!,timeoutInterval: Double.infinity)
request.addValue("YOUR_API_KEY", forHTTPHeaderField: "apikey")
request.addValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

request.httpMethod = "POST"
request.httpBody = postData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}

task.resume()


Kotlin

val client = OkHttpClient()
val mediaType = "text/plain".toMediaType()
val body = MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file","sample_jd_2.png",
File("sample_jd_2.png").asRequestBody("application/octet-stream".toMediaType()))
.build()
val request = Request.Builder()
.url("https://api.iapp.co.th/ocr/jd")
.post(body)
.addHeader("apikey", "YOUR_API_KEY")
.build()
val response = client.newCall(request).execute()

Java

OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file","sample_jd_2.png",
RequestBody.create(MediaType.parse("application/octet-stream"),
new File("sample_jd_2.png")))
.build();
Request request = new Request.Builder()
.url("https://api.iapp.co.th/ocr/jd")
.method("POST", body)
.addHeader("apikey", "YOUR_API_KEY")
.build();
Response response = client.newCall(request).execute();

Dart

var headers = {
'apikey': 'YOUR_API_KEY'
};
var request = http.MultipartRequest('POST', Uri.parse('https://api.iapp.co.th/ocr/jd'));
request.files.add(await http.MultipartFile.fromPath('file', 'sample_jd_2.png'));
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}

ราคา

ชื่อบริการ AI APIEndpointราคาOn-Premise
AI Job Description OCR and Information Extraction APIiapp_jd_ocr1 IC/หน้าติดต่อเรา