API to Extract MP3 Links

Заказчик: AI | Опубликовано: 04.04.2026
Бюджет: 250 $

I host site on a standard HostGator shared plan and need a small server-side program that lives there permanently. When an https request comes in from an external podcast platform—typically Apple Podcasts—it should accept the page URL of a post that contains an HTML5 Audio stream player, fetch that page, and return the direct .mp3 file URL in the response. Key points • Player type is always HTML5 Audio, so the routine can concentrate on parsing its <audio> or <source> tags and following any relative paths. • Access must be through a lightweight API endpoint: a simple GET (or POST if you prefer) like /grab.php?url=ENCODED_PAGE_URL that responds with the mp3 link in clean JSON (e.g., { "mp3":"https://…/episode123.mp3" }). • The endpoint will be called only on-demand; no cron or background scheduler is needed. • Speed matters—Apple Podcasts times out after ±10 seconds—so please code efficiently and cache intelligently if possible. • Sample url containing stream player: https://www.audiobooks.com/book/stream/545340 Acceptance criteria 1. Deploys easily on my HostGator account without requiring root access; PHP 8.x or a single-file Python/Node script via cPanel is fine. 2. Given a test page I supply, the endpoint echoes back the correct, playable mp3 URL that I can open directly in a browser. 3. Returns clear error JSON when no mp3 is found or the source page is unreachable. 4. Includes a brief readme so I can update credentials or paths later. Let me know your proposed language and any HostGator-specific settings you’ll need; I can provide FTP/cPanel access right away.