API Documentation

Web Scraper API

Endpoint

GET /api/scp

Query Parameters

ParameterRequiredDescriptionExample
domainYesTarget website identifiertcai, ieeeAi, digJapan, japanGuide
typeYesRequest type: list (article list) or content (article content)list, content
urlOnly for type=contentURL of the article to scrapehttps://techcrunch.com/...

Example Usage

目標站名API 示例
TechCrunch AI
  • api/scp?domain=tcai&type=list
  • api/scp?domain=tcai&type=content&url=https://techcrunch.com/2024/10/23/beleaguered-startup-humane-drops-ai-pin-price-by-200
IEEE AI
  • api/scp?domain=ieeeAi&type=list
  • api/scp?domain=ieeeAi&type=content&url=https://spectrum.ieee.org/watermark
DigJapan
  • api/scp?domain=digJapan&type=list
  • api/scp?domain=digJapan&type=content&url=https://digjapan.travel/blog/id=12540
Japan Guide
  • api/scp?domain=japanGuide&type=list
  • api/scp?domain=japanGuide&type=content&url=https://www.japan-guide.com/blog/koyo24/241018_nikko.html

YouTube to MP3 API

Endpoint

POST /api/yt-to-mp3

Request Body (JSON)

ParameterRequiredDescriptionExample
urlYesYouTube video URLhttps://youtube.com/watch?v=...
returnTypeNoResponse type: text (transcript) or file (MP3 file path)text, file

Example Request

fetch("/api/yt-to-mp3", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://youtube.com/watch?v=example",
    returnType: "text"
  })
})

Example Response

For returnType = text:

{}

For returnType = file:

{}