Skip to main content

📝📰 āļ•āļąāļ§āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ āļēāļĐāļēāđ„āļ—āļĒ (Questions Generator)

📝📰 āļĢāļ°āļšāļšāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ āļēāļĐāļēāđ„āļ—āļĒāļ­āļąāļ•āđ‚āļ™āļĄāļąāļ•āļī Version Status

āļĒāļīāļ™āļ”āļĩāļ•āđ‰āļ­āļ™āļĢāļąāļšāļŠāļđāđˆ iApp Thai Question Generator API āļœāļĨāļīāļ•āļ āļąāļ“āļ‘āđŒ AI āļ—āļĩāđˆāļžāļąāļ’āļ™āļēāđ‚āļ”āļĒ āļšāļĢāļīāļĐāļąāļ— āđ„āļ­āđāļ­āļžāļžāđŒāđ€āļ—āļ„āđ‚āļ™āđ‚āļĨāļĒāļĩ āļˆāļģāļāļąāļ” API āļ‚āļ­āļ‡āđ€āļĢāļēāđƒāļŦāđ‰āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āđƒāļ™āļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ—āļĩāđˆāļ—āļĢāļ‡āļžāļĨāļąāļ‡āļŠāļģāļŦāļĢāļąāļšāđ€āļ™āļ·āđ‰āļ­āļŦāļēāļ āļēāļĐāļēāđ„āļ—āļĒ āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāđāļĨāļ°āļ„āļģāļ•āļ­āļšāļ—āļĩāđˆāđ€āļāļĩāđˆāļĒāļ§āļ‚āđ‰āļ­āļ‡āļˆāļēāļāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ›āđ‰āļ­āļ™āļ‚āđ‰āļ­āļĄāļđāļĨāđ‚āļ”āļĒāļ­āļąāļ•āđ‚āļ™āļĄāļąāļ•āļī

āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āđƒāļŠāđ‰āļ‡āļēāļ™â€‹

  1. āļ‚āđ‰āļ­āļāļģāļŦāļ™āļ”āđ€āļšāļ·āđ‰āļ­āļ‡āļ•āđ‰āļ™

    • API key āļˆāļēāļ āđ„āļ­āđāļ­āļžāļžāđŒāđ€āļ—āļ„āđ‚āļ™āđ‚āļĨāļĒāļĩ
    • āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ āļēāļĐāļēāđ„āļ—āļĒāļ›āđ‰āļ­āļ™āļ‚āđ‰āļ­āļĄāļđāļĨ
    • āļāļēāļĢāđ€āļŠāļ·āđˆāļ­āļĄāļ•āđˆāļ­āļ­āļīāļ™āđ€āļ—āļ­āļĢāđŒāđ€āļ™āđ‡āļ•
  2. āđ€āļĢāļīāđˆāļĄāļ•āđ‰āļ™āļ­āļĒāđˆāļēāļ‡āļĢāļ§āļ”āđ€āļĢāđ‡āļ§

    • āļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ­āļĒāđˆāļēāļ‡āļĢāļ§āļ”āđ€āļĢāđ‡āļ§
    • āļ­āļīāļ™āđ€āļ—āļ­āļĢāđŒāđ€āļŸāļ‹ API REST āđāļšāļšāļ‡āđˆāļēāļĒ
    • āļ„āļģāļ–āļēāļĄāļžāļĢāđ‰āļ­āļĄāļ„āļģāļ•āļ­āļšāļ—āļĩāđˆāļ•āļĢāļ‡āļāļąāļ™
  3. āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļīāļŦāļĨāļąāļ

    • āļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāđāļĨāļ°āļ„āļģāļ•āļ­āļšāđ‚āļ”āļĒāļ­āļąāļ•āđ‚āļ™āļĄāļąāļ•āļī
    • āļ„āļ§āļēāļĄāđ€āļ‚āđ‰āļēāđƒāļˆāļ āļēāļĐāļēāļ˜āļĢāļĢāļĄāļŠāļēāļ•āļī
    • āđ€āļ§āļĨāļēāļ•āļ­āļšāļŠāļ™āļ­āļ‡āļ—āļĩāđˆāļĢāļ§āļ”āđ€āļĢāđ‡āļ§
    • āļāļēāļĢāļœāļŠāļēāļ™āļĢāļ§āļĄāļ—āļĩāđˆāļ‡āđˆāļēāļĒāļ”āļēāļĒ
  4. āļ„āļ§āļēāļĄāļ›āļĨāļ­āļ”āļ āļąāļĒāđāļĨāļ°āļāļēāļĢāļ›āļāļīāļšāļąāļ•āļīāļ•āļēāļĄāļāļŽāļĢāļ°āđ€āļšāļĩāļĒāļš

    • āļ›āļāļīāļšāļąāļ•āļīāļ•āļēāļĄ GDPR āđāļĨāļ° PDPA
    • āđ„āļĄāđˆāļĄāļĩāļāļēāļĢāđ€āļāđ‡āļšāļĢāļąāļāļĐāļēāļ‚āđ‰āļ­āļĄāļđāļĨāļŦāļĨāļąāļ‡āļˆāļēāļāļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨ
āļ§āļīāļ˜āļĩāļĢāļąāļš API Key?

āļāļĢāļļāļ“āļēāđ€āļĒāļĩāđˆāļĒāļĄāļŠāļĄ API Portal āđ€āļžāļ·āđˆāļ­āļ”āļđ API key āļ—āļĩāđˆāļĄāļĩāļ­āļĒāļđāđˆāļ‚āļ­āļ‡āļ„āļļāļ“āļŦāļĢāļ·āļ­āļ‚āļ­ API key āđƒāļŦāļĄāđˆ

āļ•āļąāļ§āļ­āļĒāđˆāļēāļ‡â€‹

āļ„āļģāļ‚āļ­āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄâ€‹

curl --location --request GET 'http://api.iapp.co.th/qa-generator-th?text=āļœāļĄāļžāļđāļ”āļ āļēāļĐāļēāđ„āļ—āļĒ&apikey={Your API KEY}'

āļ„āļģāļ•āļ­āļšāļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄâ€‹

{
"QA": [
{
"answer": "āđ„āļ—āļĒ",
"question": "āļ‰āļąāļ™āļžāļđāļ”āļ āļēāļĐāļēāļ­āļ°āđ„āļĢ"
}
],
"context": "āļœāļĄāļžāļđāļ”āļ āļēāļĐāļēāđ„āļ—āļĒ",
"number": 1,
"time_process": 0.6306812763214111
}

āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļīāđāļĨāļ°āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–​

āļ„āļļāļ“āļŠāļĄāļšāļąāļ•āļīāļŦāļĨāļąāļâ€‹

  • āļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ āļēāļĐāļēāđ„āļ—āļĒāđ‚āļ”āļĒāļ­āļąāļ•āđ‚āļ™āļĄāļąāļ•āļī: āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ—āļĩāđˆāđ€āļāļĩāđˆāļĒāļ§āļ‚āđ‰āļ­āļ‡āļˆāļēāļāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ āļēāļĐāļēāđ„āļ—āļĒāļ›āđ‰āļ­āļ™āļ‚āđ‰āļ­āļĄāļđāļĨ āđ€āļŠāđˆāļ™ āļšāļ—āļ„āļ§āļēāļĄ āļŦāļ™āļąāļ‡āļŠāļ·āļ­āđ€āļĢāļĩāļĒāļ™ āļŦāļĢāļ·āļ­āđāļŦāļĨāđˆāļ‡āļ„āļ§āļēāļĄāļĢāļđāđ‰āđƒāļ”āđ†
  • āļāļēāļĢāļ•āļąāđ‰āļ‡āļ„āļģāļ–āļēāļĄāļ—āļĩāđˆāļ„āļģāļ™āļķāļ‡āļ–āļķāļ‡āļšāļĢāļīāļšāļ—: āđƒāļŠāđ‰āđ€āļ—āļ„āļ™āļīāļ„āļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāļ āļēāļĐāļēāļ˜āļĢāļĢāļĄāļŠāļēāļ•āļī (NLP) āļ‚āļąāđ‰āļ™āļŠāļđāļ‡āđ€āļžāļ·āđˆāļ­āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļ—āļĩāđˆāļŠāļ­āļ”āļ„āļĨāđ‰āļ­āļ‡āļāļąāļšāļšāļĢāļīāļšāļ—āļ‚āļ­āļ‡āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ›āđ‰āļ­āļ™āļ‚āđ‰āļ­āļĄāļđāļĨ
  • āļĢāļ­āļ‡āļĢāļąāļšāļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļ–āļēāļĄāļ•āđˆāļēāļ‡āđ†: āļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāļŦāļĨāļēāļĒāļ›āļĢāļ°āđ€āļ āļ— āļĢāļ§āļĄāļ–āļķāļ‡āļ„āļģāļ–āļēāļĄāļ‚āđ‰āļ­āđ€āļ—āđ‡āļˆāļˆāļĢāļīāļ‡ āļ„āļģāļ–āļēāļĄāļžāļĢāļĢāļ“āļ™āļē āđāļĨāļ°āļ„āļģāļ–āļēāļĄāļ­āļ™āļļāļĄāļēāļ™

āļŸāļīāļĨāļ”āđŒāļ—āļĩāđˆāļĢāļ­āļ‡āļĢāļąāļšâ€‹

  • Input: āļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ āļēāļĐāļēāđ„āļ—āļĒāđ€āļ›āđ‡āļ™āđāļŦāļĨāđˆāļ‡āļ„āļ§āļēāļĄāļĢāļđāđ‰āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄ
  • Output: āļ„āļģāļ–āļēāļĄāđāļĨāļ°āļ„āļģāļ•āļ­āļšāļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āļķāđ‰āļ™āđƒāļ™āļ āļēāļĐāļēāđ„āļ—āļĒāļ•āļēāļĄāļšāļĢāļīāļšāļ—āļ›āđ‰āļ­āļ™āļ‚āđ‰āļ­āļĄāļđāļĨ

āļ„āļ§āļēāļĄāļŠāļēāļĄāļēāļĢāļ–āđ€āļžāļīāđˆāļĄāđ€āļ•āļīāļĄâ€‹

  • āļāļēāļĢāļœāļŠāļēāļ™āļĢāļ§āļĄāļ—āļĩāđˆāļ‡āđˆāļēāļĒāļ”āļēāļĒāļœāđˆāļēāļ™ RESTful API āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™āđƒāļ™āđāļ­āļ›āļžāļĨāļīāđ€āļ„āļŠāļąāļ™āđ„āļ”āđ‰āļ­āļĒāđˆāļēāļ‡āļĢāļēāļšāļĢāļ·āđˆāļ™
  • āļ­āļ­āļāđāļšāļšāļĄāļēāļŠāļģāļŦāļĢāļąāļšāđāļžāļĨāļ•āļŸāļ­āļĢāđŒāļĄāļāļēāļĢāļĻāļķāļāļĐāļē āļĢāļ°āļšāļšāđāļšāļšāļ—āļ”āļŠāļ­āļš āđāļĨāļ°āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĄāļ·āļ­āļ›āļĢāļ°āđ€āļĄāļīāļ™āļ„āļ§āļēāļĄāļĢāļđāđ‰

āļ‚āđ‰āļ­āļĄāļđāļĨāļ­āđ‰āļēāļ‡āļ­āļīāļ‡ API​

GET http://api.iapp.co.th/qa-generator-th

āļžāļēāļĢāļēāļĄāļīāđ€āļ•āļ­āļĢāđŒ Path​

āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ
textStringāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ—āļĩāđˆāļ„āļļāļ“āļ•āđ‰āļ­āļ‡āļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāđāļĨāļ°āļ„āļģāļ•āļ­āļš

āļŠāđˆāļ§āļ™āļŦāļąāļ§â€‹

āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ
apikeyStringAPI Key āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāđ€āļĢāļĩāļĒāļāđƒāļŠāđ‰ API āļ™āļĩāđ‰

āđ€āļ™āļ·āđ‰āļ­āļŦāļēāļāļēāļĢāļ•āļ­āļšāļŠāļ™āļ­āļ‡â€‹

āļŠāļ·āđˆāļ­āļ›āļĢāļ°āđ€āļ āļ—āļ„āļģāļ­āļ˜āļīāļšāļēāļĒ
QAArrayāļ­āļēāļĢāđŒāđ€āļĢāļĒāđŒāļ‚āļ­āļ‡āļ„āļģāļ–āļēāļĄāđāļĨāļ°āļ„āļģāļ•āļ­āļš
questionStringāļ„āļģāļ–āļēāļĄāļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āļķāđ‰āļ™āļˆāļēāļāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ•āđ‰āļ™āļ‰āļšāļąāļš
answerStringāļ„āļģāļ•āļ­āļšāļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āļķāđ‰āļ™āļˆāļēāļāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ•āđ‰āļ™āļ‰āļšāļąāļš
contextStringāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļ•āđ‰āļ™āļ‰āļšāļąāļš
numberIntegerāļˆāļģāļ™āļ§āļ™āļ„āļģāļ–āļēāļĄāļ—āļĩāđˆāļŠāļĢāđ‰āļēāļ‡āļ‚āļķāđ‰āļ™
time_processFloatāđ€āļ§āļĨāļēāđƒāļ™āļāļēāļĢāļ›āļĢāļ°āļĄāļ§āļĨāļœāļĨāļ„āļģāļ–āļēāļĄ

āļĢāļēāļ„āļē​

āļŠāļ·āđˆāļ­āļšāļĢāļīāļāļēāļĢ AI APIEndpointIC āļ•āđˆāļ­āļ­āļąāļāļ‚āļĢāļ°On-Premise
āļāļēāļĢāļŠāļĢāđ‰āļēāļ‡āļ„āļģāļ–āļēāļĄāđāļĨāļ°āļ„āļģāļ•āļ­āļšāļˆāļēāļāļ‚āđ‰āļ­āļ„āļ§āļēāļĄāļĒāđˆāļ­āļŦāļ™āđ‰āļēāļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļŠāļ­āļš/āđāļŠāļ—āļšāļ­āļ—iapp_thai_qa_generation_v11 IC/400 āļ­āļąāļāļ‚āļĢāļ°āļ•āļīāļ”āļ•āđˆāļ­

āļ•āļąāļ§āļ­āļĒāđˆāļēāļ‡āđ‚āļ„āđ‰āļ”​

Python​

import requests

url = "http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ āđ€āļ›āđ‡āļ™āđ€āļĄāļ·āļ­āļ‡āļŦāļĨāļ§āļ‡āđāļĨāļ°āļ™āļ„āļĢāļ—āļĩāđˆāļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļĄāļēāļāļ—āļĩāđˆāļŠāļļāļ”āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ—āļĻāđ„āļ—āļĒ āđ€āļ›āđ‡āļ™āļĻāļđāļ™āļĒāđŒāļāļĨāļēāļ‡āļāļēāļĢāļ›āļāļ„āļĢāļ­āļ‡ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļ„āļĄāļ™āļēāļ„āļĄāļ‚āļ™āļŠāđˆāļ‡ āļāļēāļĢāđ€āļ‡āļīāļ™āļāļēāļĢāļ˜āļ™āļēāļ„āļēāļĢ āļāļēāļĢāļžāļēāļ“āļīāļŠāļĒāđŒ āļāļēāļĢāļŠāļ·āđˆāļ­āļŠāļēāļĢ āđāļĨāļ°āļ„āļ§āļēāļĄāđ€āļˆāļĢāļīāļāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ—āļĻ āđ€āļ›āđ‡āļ™āđ€āļĄāļ·āļ­āļ‡āļ—āļĩāđˆāļĄāļĩāļŠāļ·āđˆāļ­āļĒāļēāļ§āļ—āļĩāđˆāļŠāļļāļ”āđƒāļ™āđ‚āļĨāļ āļ•āļąāđ‰āļ‡āļ­āļĒāļđāđˆāļšāļ™āļŠāļēāļĄāđ€āļŦāļĨāļĩāđˆāļĒāļĄāļ›āļēāļāđāļĄāđˆāļ™āđ‰āļģāđ€āļˆāđ‰āļēāļžāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđˆāļ™āđ‰āļģāđ€āļˆāđ‰āļēāļžāļĢāļ°āļĒāļēāđ„āļŦāļĨāļœāđˆāļēāļ™āđāļĨāļ°āđāļšāđˆāļ‡āđ€āļĄāļ·āļ­āļ‡āļ­āļ­āļāđ€āļ›āđ‡āļ™ 2 āļāļąāđˆāļ‡ āļ„āļ·āļ­ āļāļąāđˆāļ‡āļžāļĢāļ°āļ™āļ„āļĢāđāļĨāļ°āļāļąāđˆāļ‡āļ˜āļ™āļšāļļāļĢāļĩ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļĄāļĩāļžāļ·āđ‰āļ™āļ—āļĩāđˆāļ—āļąāđ‰āļ‡āļŦāļĄāļ” 1,568.737 āļ•āļĢ.āļāļĄ. āļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļĢāļēāļĐāļŽāļĢāļāļ§āđˆāļē 5 āļĨāđ‰āļēāļ™āļ„āļ™ āļ—āļģāđƒāļŦāđ‰āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļ›āđ‡āļ™āđ€āļ­āļāļ™āļ„āļĢ (Primate City) āļˆāļąāļ” āļĄāļĩāļœāļđāđ‰āļāļĨāđˆāļēāļ§āļ§āđˆāļē āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļ›āđ‡āļ™ ‘āđ€āļ­āļāļ™āļ„āļĢāļ—āļĩāđˆāļŠāļļāļ”āđƒāļ™āđ‚āļĨāļâ€™ āđ€āļžāļĢāļēāļ°āļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļĄāļēāļāļāļ§āđˆāļēāļ™āļ„āļĢāļ—āļĩāđˆāļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļĄāļēāļāđ€āļ›āđ‡āļ™āļ­āļąāļ™āļ”āļąāļš 2 āļ–āļķāļ‡ 40 āđ€āļ—āđˆāļē"

payload = {}
headers = {
'apikey': 'YOUR_API_KEY'
}

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

print(response.text)

JavaScript​

const axios = require('axios');

let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'http://api.iapp.co.th/qa-generator-th?text=āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢ āđ€āļ›āđ‡āļ™āđ€āļĄāļ·āļ­āļ‡āļŦāļĨāļ§āļ‡āđāļĨāļ°āļ™āļ„āļĢāļ—āļĩāđˆāļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļĄāļēāļāļ—āļĩāđˆāļŠāļļāļ”āļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ—āļĻāđ„āļ—āļĒ āđ€āļ›āđ‡āļ™āļĻāļđāļ™āļĒāđŒāļāļĨāļēāļ‡āļāļēāļĢāļ›āļāļ„āļĢāļ­āļ‡ āļāļēāļĢāļĻāļķāļāļĐāļē āļāļēāļĢāļ„āļĄāļ™āļēāļ„āļĄāļ‚āļ™āļŠāđˆāļ‡ āļāļēāļĢāđ€āļ‡āļīāļ™āļāļēāļĢāļ˜āļ™āļēāļ„āļēāļĢ āļāļēāļĢāļžāļēāļ“āļīāļŠāļĒāđŒ āļāļēāļĢāļŠāļ·āđˆāļ­āļŠāļēāļĢ āđāļĨāļ°āļ„āļ§āļēāļĄāđ€āļˆāļĢāļīāļāļ‚āļ­āļ‡āļ›āļĢāļ°āđ€āļ—āļĻ āđ€āļ›āđ‡āļ™āđ€āļĄāļ·āļ­āļ‡āļ—āļĩāđˆāļĄāļĩāļŠāļ·āđˆāļ­āļĒāļēāļ§āļ—āļĩāđˆāļŠāļļāļ”āđƒāļ™āđ‚āļĨāļ āļ•āļąāđ‰āļ‡āļ­āļĒāļđāđˆāļšāļ™āļŠāļēāļĄāđ€āļŦāļĨāļĩāđˆāļĒāļĄāļ›āļēāļāđāļĄāđˆāļ™āđ‰āļģāđ€āļˆāđ‰āļēāļžāļĢāļ°āļĒāļē āļĄāļĩāđāļĄāđˆāļ™āđ‰āļģāđ€āļˆāđ‰āļēāļžāļĢāļ°āļĒāļēāđ„āļŦāļĨāļœāđˆāļēāļ™āđāļĨāļ°āđāļšāđˆāļ‡āđ€āļĄāļ·āļ­āļ‡āļ­āļ­āļāđ€āļ›āđ‡āļ™ 2 āļāļąāđˆāļ‡ āļ„āļ·āļ­ āļāļąāđˆāļ‡āļžāļĢāļ°āļ™āļ„āļĢāđāļĨāļ°āļāļąāđˆāļ‡āļ˜āļ™āļšāļļāļĢāļĩ āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāļĄāļĩāļžāļ·āđ‰āļ™āļ—āļĩāđˆāļ—āļąāđ‰āļ‡āļŦāļĄāļ” 1,568.737 āļ•āļĢ.āļāļĄ. āļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļ•āļēāļĄāļ—āļ°āđ€āļšāļĩāļĒāļ™āļĢāļēāļĐāļŽāļĢāļāļ§āđˆāļē 5 āļĨāđ‰āļēāļ™āļ„āļ™ āļ—āļģāđƒāļŦāđ‰āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļ›āđ‡āļ™āđ€āļ­āļāļ™āļ„āļĢ (Primate City) āļˆāļąāļ” āļĄāļĩāļœāļđāđ‰āļāļĨāđˆāļēāļ§āļ§āđˆāļē āļāļĢāļļāļ‡āđ€āļ—āļžāļĄāļŦāļēāļ™āļ„āļĢāđ€āļ›āđ‡āļ™ ‘āđ€āļ­āļāļ™āļ„āļĢāļ—āļĩāđˆāļŠāļļāļ”āđƒāļ™āđ‚āļĨāļâ€™ āđ€āļžāļĢāļēāļ°āļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļĄāļēāļāļāļ§āđˆāļēāļ™āļ„āļĢāļ—āļĩāđˆāļĄāļĩāļ›āļĢāļ°āļŠāļēāļāļĢāļĄāļēāļāđ€āļ›āđ‡āļ™āļ­āļąāļ™āļ”āļąāļš 2 āļ–āļķāļ‡ 40 āđ€āļ—āđˆāļē',
headers: {
'apikey': 'YOUR_API_KEY'
}
};

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 => 'http://api.iapp.co.th/qa-generator-th?text=%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B9%80%E0%B8%97%E0%B8%9E%E0%B8%A1%E0%B8%AB%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B8%A3%20%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%87%E0%B8%AB%E0%B8%A5%E0%B8%A7%E0%B8%87%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B9%80%E0%B8%97%E0%B8%A8%E0%B9%84%E0%B8%97%E0%B8%A2%20%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%A8%E0%B8%B9%E0%B8%99%E0%B8%A2%E0%B9%8C%E0%B8%81%E0%B8%A5%E0%B8%B2%E0%B8%87%E0%B8%81%E0%B8%B2%E0%B8%A3%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%E0%B8%A3%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%20%E2%80%98%E0%B9%80%E0%B8%AD%E0%B8%81%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B9%83%E0%B8%99%E0%B9%82%E0%B8%A5%E0%B8%81%E2%80%99%20%E0%B9%80%E0%B8%9E%E0%B8%A3%E0%B8%B2%E0%B8%B0%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A1%E0%B8%B5%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%8A%E0%B8%B2%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%AD%E0%B8%B1%E0%B8%99%E0%B8%94%E0%B8%B1%E0%B8%9A%202%20%E0%B8%96%E0%B8%B6%E0%B8%87%2040%20%E0%B9%80%E0%B8%97%E0%B9%88%E0%B8%B2',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'apikey: YOUR_API_KEY'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Swift​

var request = URLRequest(url: URL(string: "http://api.iapp.co.th/qa-generator-th?text=%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B9%80%E0%B8%97%E0%B8%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