AgriStack Developer API
Integrate real-time official Farmer Registry verification, auto photo extraction, and 300 DPI PVC smart card PDF generation directly into your software, mobile apps, or portals.
Keep this key confidential. Rate limit: 120 req/min. Billed per successful lookup.
Sign in to view and recharge your production API key.
Sub-Second Latency
Direct state registry connection with persistent keep-alive connections.
Zero-Failure Billing
βΉ15.00 charged ONLY upon successful 200 OK verification. Unapproved or not-found queries cost βΉ0.00.
Original PVC Format
Authentic 300 DPI CR80 PVC card with Hindi/English text, signed XML QR, and photo.
π§ͺ Live API Sandbox Console
Test live API requests directly against the production server.
https://nexusapi.rsprint.site/api/user_api.php)
Queries the official state AgriStack node, verifies farmer registration, extracts verified demographic & photo data, and generates the authentic 300 DPI PVC smart card PDF.
Authentication Headers
Request Parameters (JSON Body or Form POST/GET)
| Field | Type | Required | Description |
|---|---|---|---|
| uid_number | string | Yes | 12-digit Aadhaar UID number (e.g. "837640068710") |
| state_code | string | Yes | 2-letter state code (e.g. MH, UP, MP, PB, RJ, HR, GJ, etc.) |
| details | int | No | Set to 1 for pure JSON data mode (returns photo base64 & raw EKYC without PDF) |
| khata | string | No | Custom Land Khata number to print on card table |
| khasra | string | No | Custom Land Khasra number to print on card table |
| landarea | string | No | Custom Land Area in Hectares (e.g. "0.450 Ha") |
| caste | string | No | Caste category (General, OBC, SC, ST) |
Integration Code Examples
curl -X POST "https://nexusapi.rsprint.site/print_api.php" \
-H "Content-Type: application/json" \
-H "X-API-KEY: nx_your_api_key_here" \
-d '{
"uid_number": "837640068710",
"state_code": "MH"
}'
Sample JSON Response
{
"status": "success",
"message": "Farmer record verified & PDF generated successfully",
"farmer_id": "98251654843",
"farmer_name": "Shivaji Kisan Pole",
"state_code": "MH",
"cost_charged": 15.00,
"new_balance": 180.00,
"pdf_base64": "JVBERi0xLjcKJeLjz9MKMSAwIG9ia...[base64 PDF data]"
}
https://nexusapi.rsprint.site/api/user_api.php?action=balance)
Check your current wallet balance, account active status, and print cost before triggering card generation requests.
Authentication Headers
Sample cURL Command
curl -X GET "https://nexusapi.rsprint.site/print_api.php?action=balance" \
-H "X-API-KEY: nx_your_api_key_here"
Sample Success Response
{
"status": "success",
"user_id": 1,
"name": "System Administrator",
"email": "admin@nexusfarmer.in",
"wallet_balance": 5000.00,
"currency": "INR",
"account_status": "active",
"print_cost": 15.00
}
Create a dynamic UPI recharge order via Rozipay (rozipay.in) for automated wallet credit with extra bonus offer percentages.
Sample cURL Command
curl -X POST "https://nexusapi.rsprint.site/api/create_order.php" \
-H "Content-Type: application/json" \
-d '{
"amount": 500
}'
Sample Success Response
{
"success": true,
"order_id": "ORD17953931868733",
"amount": 500,
"payment_url": "https://rozipay.in/payment3/instant-pay/6adf4e54...",
"is_sandbox": false
}
Hostinger / cPanel Live Deployment Guide
Step-by-step setup to take NexusApi live on Hostinger shared or cloud hosting.
public_html/ directory via File Manager or FTP.
database/nexusapi_hostinger.sql.
.env.example to .env (or edit config/database.php) with your MySQL credentials.
database/nexusapi_hostinger.sql
Ready to import via phpMyAdmin
πΊοΈ Supported State Registry Codes (All 36 States & UTs)
Pass any of the following 2-letter codes in the state_code parameter.