Source: https://legiscore.in/docs/states/andhra/prohibited

# Prohibitory Orders (22A) (Andhra Pradesh)

Whether the land sits on the Section 22A prohibited list -- government, endowment or assigned land that cannot be registered.

Status: LIVE. Source status: Operational. Typical time: up to 3 min. state: `andhra`, search_type: `prohibited`.



## What you get

Matching prohibited-property rows plus a stamped PDF.

## Request parameters

Keys of `params`. A value "from lookup" is a code you get by searching for the item by name first (https://legiscore.in/docs/api/lookups).



| Name | Type | Required | Example | Comes from |
| --- | --- | --- | --- | --- |
| `district_code` | string | required | from lookup "district" | district lookup (https://legiscore.in/docs/api/lookups#andhra-district) |
| `district_name` | string | required | from lookup "district" | district lookup (https://legiscore.in/docs/api/lookups#andhra-district) |
| `mandal_code` | string | required | from lookup "mandal" | mandal lookup (https://legiscore.in/docs/api/lookups#andhra-mandal) |
| `mandal_name` | string | required | from lookup "mandal" | mandal lookup (https://legiscore.in/docs/api/lookups#andhra-mandal) |
| `village_code` | string | required | from lookup "village" | village lookup (https://legiscore.in/docs/api/lookups#andhra-village) |
| `village_name` | string | required | from lookup "village" | village lookup (https://legiscore.in/docs/api/lookups#andhra-village) |
| `search_numbers` | string[] | required | ["25/1B, 25/2  —  or *  for the whole village"] | field "search_numbers" |
| `property_type` | string | required | urban | field "property_type" |

## Field details

| Field | Type | Notes |
| --- | --- | --- |
| `district` (District) | lookup |  |
| `mandal` (Mandal) | lookup |  |
| `village` (Village) | lookup |  |
| `property_type` (Land Type) | select | Chooses which prohibited register is searched. The two are separate lists, not a filter. Values: urban (Urban — town or municipal property (door numbers)), rural (Rural — agricultural land (survey numbers)). |
| `search_numbers` (Door / Survey Numbers) | tags | One entry per number. Use * to list every prohibited record in the village. |

## Resolve names to codes

| Field | Lookup | Needs first |
| --- | --- | --- |
| district | district | - |
| mandal | mandal | district |
| village | village | district, mandal |

q is required (2+ characters), at most 10 matches.

## Example request

Replace each <...> with the value from its lookup match.

**curl**

```bash
curl -X POST "https://legiscore.in/api/v1/search" \
  -H "Authorization: Bearer lsk_your_api_key" \
  -H "Idempotency-Key: los-case-8841" \
  -H "Content-Type: application/json" \
  -d '{
  "state": "andhra",
  "search_type": "prohibited",
  "params": {
    "district_code": "<district.district_code>",
    "district_name": "<district.label>",
    "mandal_code": "<mandal.mandal_code>",
    "mandal_name": "<mandal.label>",
    "village_code": "<village.village_code>",
    "village_name": "<village.label>",
    "search_numbers": [
      "25/1B, 25/2  —  or *  for the whole village"
    ],
    "property_type": "urban"
  },
  "label": "Prohibitory Orders (22A) - case 8841"
}'
```

**Python**

```python
import requests

resp = requests.post(
    "https://legiscore.in/api/v1/search",
    headers={"Authorization": "Bearer lsk_your_api_key", "Idempotency-Key": "los-case-8841"},
    json={
      "state": "andhra",
      "search_type": "prohibited",
      "params": {
        "district_code": "<district.district_code>",
        "district_name": "<district.label>",
        "mandal_code": "<mandal.mandal_code>",
        "mandal_name": "<mandal.label>",
        "village_code": "<village.village_code>",
        "village_name": "<village.label>",
        "search_numbers": [
          "25/1B, 25/2  —  or *  for the whole village"
        ],
        "property_type": "urban"
      },
      "label": "Prohibitory Orders (22A) - case 8841"
    },
)
resp.raise_for_status()
print(resp.json())
```

**Node**

```js
const resp = await fetch("https://legiscore.in/api/v1/search", {
  method: "POST",
  headers: { Authorization: "Bearer lsk_your_api_key", "Idempotency-Key": "los-case-8841", "Content-Type": "application/json" },
  body: JSON.stringify({
    "state": "andhra",
    "search_type": "prohibited",
    "params": {
      "district_code": "<district.district_code>",
      "district_name": "<district.label>",
      "mandal_code": "<mandal.mandal_code>",
      "mandal_name": "<mandal.label>",
      "village_code": "<village.village_code>",
      "village_name": "<village.label>",
      "search_numbers": [
        "25/1B, 25/2  —  or *  for the whole village"
      ],
      "property_type": "urban"
    },
    "label": "Prohibitory Orders (22A) - case 8841"
  }),
});
if (!resp.ok) throw new Error(await resp.text());
console.log(await resp.json());
```

## Sample responses

202 Accepted, at submit:

```json
{
  "data": {
    "searches": [
      {
        "id": "SRCH-2026-A1B2C3D4",
        "state": "andhra",
        "search_type": "prohibited",
        "label": "Prohibitory Orders (22A) - case 8841",
        "status": "queued",
        "progress": 0,
        "note": null,
        "found": null,
        "records": null,
        "record_count": null,
        "documents": [],
        "error": null,
        "refunded": false,
        "replayed": false,
        "batch_id": null,
        "recovery_of": null,
        "source": "api",
        "created_at": "2026-10-05T10:00:00Z",
        "completed_at": null
      }
    ],
    "rejected": [],
    "replayed": {
      "free": 0,
      "billed": 0,
      "idempotent": 0
    },
    "batch_id": null
  }
}
```

200 OK, GET /api/v1/search/{id} once finished:

```json
{
  "data": {
    "id": "SRCH-2026-A1B2C3D4",
    "state": "andhra",
    "search_type": "prohibited",
    "label": "Prohibitory Orders (22A) - case 8841",
    "status": "succeeded",
    "progress": 100,
    "note": null,
    "found": true,
    "records": [
      {
        "...": "one object per row the source returned; shape varies by search"
      }
    ],
    "record_count": 1,
    "documents": [
      {
        "filename": "result.pdf",
        "content_type": "application/pdf",
        "bytes": 184233,
        "withheld": false
      }
    ],
    "error": null,
    "refunded": false,
    "replayed": false,
    "batch_id": null,
    "recovery_of": null,
    "source": "api",
    "created_at": "2026-10-05T10:00:00Z",
    "completed_at": "2026-10-05T10:03:12Z"
  }
}
```
