API Usage Examples

Last updated: 2024-08-31

Parsing Endpoint

POST https://rednotetoolsonline.com/api/rednote/parse
Content-Type: application/json

{
  "url": "https://www.xiaohongshu.com/explore/..."
}

curl Example

curl -X POST   -H 'Content-Type: application/json'   -d '{"url":"https://www.xiaohongshu.com/explore/..."}'   https://rednotetoolsonline.com/api/rednote/parse

JavaScript

const res = await fetch('/api/rednote/parse', {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({ url })
});
const data = await res.json();

Download Endpoint

POST https://rednotetoolsonline.com/api/rednote/download
Content-Type: application/json

{
  "url": "https://..."
}