suno-api icon indicating copy to clipboard operation
suno-api copied to clipboard

Add get clip route

Open alifhughes opened this issue 1 month ago • 1 comments

  • Added route to get information of a clip (an extension) via an ID
  • I think I've added to all the necessary places in the docs, but let me know if I've missed somewhere

Would be accessed by api like

async def get_clip(clip_id):
    url = f"{BASE_URL}/api/clip?id={clip_id}"
    async with httpx.AsyncClient() as client:
        response = await client.get(url, headers={'Content-Type': 'application/json'}, timeout=100)
    return response.json()

alifhughes avatar May 12 '24 16:05 alifhughes