slugstringจำเป็น
Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
https://api.sandbase.ai/v1/api/aaa/news-article-detailReturns the full content of a specific news article identified by its URL slug. The slug is obtainable from get_news_articles results.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the full text and basic metadata of one AAA news article about gasoline. It needs the article URL slug as input, such as national-gas-average-drops-nearly-20-cents-in-one-week.
curl -X POST "https://api.sandbase.ai/v1/api/aaa/news-article-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"slug": "national-gas-average-drops-nearly-20-cents-in-one-week"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"content": "\n<p class=\"wp-block-paragraph\">WASHINGTON, DC (June 4, 2026) –&n…",
"date": "2026-06-04T10:27:55",
"id": 5086,
"link": "https://gasprices.aaa.com/national-gas-average-drops-nearly-20-cents-in-one-week…",
"slug": "national-gas-average-drops-nearly-20-cents-in-one-week",
"title": "National Gas Average Drops Nearly 20 Cents in One Week"
},
"status": "success"
}
| Field | Meaning |
|---|---|
data.title | Headline of the article. |
data.content | Article body as an HTML string. It contains tags such as <p> and HTML entities such as , so parse or strip them before display. |
data.date | Publish date and time of the article in ISO 8601 form, without a time zone offset. |
data.id | Numeric ID of the article. |
data.slug | URL slug of the article. It matches the slug you sent. |
data.link | Full URL of the article on the AAA gas site. |
status | Request outcome. The value is success for a good call. |
slug from the results of AAA News Articles or AAA Search News Articles.slug is the last path segment of data.link.data.content is HTML, so render it as HTML or strip the tags for plain text.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/aaa/news-article-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "national-gas-average-drops-nearly-20-cents-in-one-week"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
slugstringจำเป็นArticle URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
AAA News Article DetailAPI นี้ AAA | $0.01 ต่อการเรียก | Async JSON |
AAA | $0.01 ต่อการเรียก | Async JSON |
AAA | $0.01 ต่อการเรียก | Async JSON |
AAA | $0.01 ต่อการเรียก | Async JSON |
AAA | $0.01 ต่อการเรียก | Async JSON |
AAA | $0.01 ต่อการเรียก | Async JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/aaa/news-article-detail โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: slug (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น AAA News Article Detail ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง AAA API แยกต่างหาก