จุดสิ้นสุด API:
https://ans.pna.co.th/api/v1/websites
ตัวอย่างคำขอ:
curl --location --request GET 'https://ans.pna.co.th/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_bydomain สำหรับ โดเมน ค่าเริ่มต้นคือ: domainsort_byid สำหรับ วันที่สร้าง, domain สำหรับ โดเมน ค่าเริ่มต้นคือ: idsortdesc สำหรับ จากมากไปหาน้อย, asc สำหรับ จากน้อยไปหามาก ค่าเริ่มต้นคือ: descper_page10, 25, 50, 100 ค่าเริ่มต้นคือ: 10จุดสิ้นสุด API:
https://ans.pna.co.th/api/v1/websites/{id}
ตัวอย่างคำขอ:
curl --location --request GET 'https://ans.pna.co.th/api/v1/websites/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
จุดสิ้นสุด API:
https://ans.pna.co.th/api/v1/websites
ตัวอย่างคำขอ:
curl --location --request POST 'https://ans.pna.co.th/api/v1/websites' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'domain={domain}'
domainprivacy0 สำหรับ สาธารณะ, 1 สำหรับ ส่วนตัว, 2 สำหรับ รหัสผ่าน ค่าเริ่มต้นคือ: 1passwordprivacy ที่ตั้งค่าเป็น 2email0 สำหรับ ปิดใช้งาน, 1 สำหรับ เปิดใช้งาน ค่าเริ่มต้นคือ: 0exclude_bots0 สำหรับ ปิดใช้งาน, 1 สำหรับ เปิดใช้งาน ค่าเริ่มต้นคือ: 1exclude_paramsexclude_ipsจุดสิ้นสุด API:
https://ans.pna.co.th/api/v1/websites/{id}
ตัวอย่างคำขอ:
curl --location --request PUT 'https://ans.pna.co.th/api/v1/websites/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
privacy0 สำหรับ สาธารณะ, 1 สำหรับ ส่วนตัว, 2 สำหรับ รหัสผ่านpasswordprivacy ที่ตั้งค่าเป็น 2email0 สำหรับ ปิดใช้งาน, 1 สำหรับ เปิดใช้งานexclude_bots0 สำหรับ ปิดใช้งาน, 1 สำหรับ เปิดใช้งานexclude_paramsexclude_ipsจุดสิ้นสุด API:
https://ans.pna.co.th/api/v1/websites/{id}
ตัวอย่างคำขอ:
curl --location --request DELETE 'https://ans.pna.co.th/api/v1/websites/{id}' \ --header 'Authorization: Bearer {api_key}'