ANW

Not found! 404 (https://anw.is-a.dev/robots.txt)

API Documentation

Sentiment Analysis

Endpoint

/api/sentiment

Methods

GET, POST

Request Parameters

q (string, required): The sentence to analyze.

Response

Returns a JSON object with the sentiment analysis result. These are the three possible outcomes:

{"sentiment":"Positive"}
{"sentiment":"Negative"}
{"sentiment":"Neutral"}

Example Usage (GET)

/api/sentiment?q=This is a great day!

Example Usage (POST)

Send the sentence as form data with the key q.

curl -X POST -d "q=This is the worst thing ever!" https://anw.is-a.dev/api/sentiment
Invoke-WebRequest -Uri https://anw.is-a.dev/api/sentiment -Method Post -Body @{q = "This is the worst thing ever!"}

Notes

Sentiment is classified as "Positive", "Negative", or "Neutral" based on the sum of the sentiment scores of the words in the input sentence.

QR Code Generation API

Endpoint

/api/qrcode or /api/qrcolor (hardcoded color scheme)

Methods

GET

Request Parameters

data (string, required): The data to encode in the QR code.

Response

Returns a QR code image (PNG format).

Example Usage (GET)

/api/qrcode?data=https://www.example.com

/api/qrcolor?data=https://www.example.com

Example Usage (cURL)

curl "https://your-api-url/api/qrcode?data=https://www.example.com" -o qrcode.png

Example Usage (PowerShell)

Invoke-WebRequest -Uri "https://your-api-url/api/qrcode?data=https://www.example.com" -OutFile qrcode.png

Live Demo

Both are for: https://anw.is-a.dev

Notes

This API generates QR code images from the provided data.