NexusApi Logo
NexusApi GovTech 2.5

All-India Farmer ID & EKYC Registry Portal

Enterprise B2B REST API

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.

Your Secret Production API Key

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.

Cost: β‚Ή15.00 / hit
POST https://nexusapi.rsprint.site/print_api.php (or 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

Content-Type: application/json
X-API-KEY: nx_your_api_key_here (or pass via ?api_key=... in query)

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]"
}
GET / POST https://nexusapi.rsprint.site/print_api.php?action=balance (or 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

X-API-KEY: nx_your_api_key_here (or pass ?api_key=... in query)

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
}
POST https://nexusapi.rsprint.site/api/create_order.php

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.

MySQL / MariaDB
Step 1: Upload Files Upload all project files to Hostinger public_html/ directory via File Manager or FTP.
Step 2: Import Database In Hostinger hPanel > Databases > phpMyAdmin, import database/nexusapi_hostinger.sql.
Step 3: Set Credentials Rename .env.example to .env (or edit config/database.php) with your MySQL credentials.
Database SQL Dump File: 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.

Andhra Pradesh AP
Arunachal Pradesh AR
Assam AS
Bihar BR
Bihar BH
Chhattisgarh CG
Goa GA
Gujarat GJ
Haryana HR
Himachal Pradesh HP
Jharkhand JH
Karnataka KA
Karnataka KN
Kerala KL
Madhya Pradesh MP
Maharashtra MH
Manipur MN
Meghalaya ML
Mizoram MZ
Nagaland NL
Odisha OD
Odisha OR
Punjab PB
Rajasthan RJ
Sikkim SK
Tamil Nadu TN
Telangana TL
Telangana TS
Tripura TR
Uttar Pradesh UP
Uttarakhand UK
Uttarakhand UT
West Bengal WB
Andaman & Nicobar Islands AN
Chandigarh CH
Dadra & Nagar Haveli and Daman & Diu DN
Delhi (NCT) DL
Jammu and Kashmir JK
Ladakh LA
Lakshadweep LD
Puducherry PY