# Test Api
> A sample project with lit capabilities!

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/test-api/..."
```

## Pricing
- **Free Bee** (Free) — 10,000 calls/Mo, 5 req/s
- **Two Fidy** ($3/Mo) — 1,000,000 calls/Mo, 0 req/s

## Endpoints

### Other

#### `GET /` — Get a lit, Location, Ip, Time based identifier for a peaice of data

Location Ip Time

**Parameters:**
- `data` (query, optional, string) — The data to hash

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/test-api/"
```

**Response:**
```json
{
    "msg": "Successfully Computed Location Ip Time Integrity Check Data.",
    "data": {
        "nh": "AAAAAAAAAAAAAAAAAAAAAA==#47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
        "no": "AAAAAAAAAAAAAAAAAAAAAA==#47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
        "lit": [
            1787769249722,
            [
                "50.47788",
                "12.37129"
            ],
            [
                "Falkenstein",
                "Saxony",
                "DE"
            ],
            "49.12.134.104",
            [
                "47ca704308cc1ffc",
                "310c8668",
                "1a03f59dfba"
            ],
            "47ca704308cc1ffc310c86681a03f59dfba"
        ],
        "mm3128": {
            "hashHex": "00000000000000000000000000000000",
            "hashBase64": "AAAAAAAAAAAAAAAAAAAAAA=="
        },
        "sha256": {
            "hashHex": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "hashBase64": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
        },
        "lithash": "47ca704308cc1ffc,310c8668,1a03f59dfba$AAAAAAAAAAAAAAAAAAAAAA==#47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
    },
    "success": true
}
```

#### `GET /?data=42` — Get a lit, Location, Ip, Time based identifier for a peaice of data

Location Ip Time

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/test-api/?data=42"
```

**Response:**
```json
{
    "msg": "Successfully Computed Location Ip Time Integrity Check Data.",
    "data": {
        "nh": "to/aIj8yT2yJpucbxoBP4w==#c0dctApWjo2ooEXO0RATfhWfiQrE2og7axfcZRs6gEk=",
        "no": "to/aIj8yT2yJpucbxoBP4w==#c0dctApWjo2ooEXO0RATfhWfiQrE2og7axfcZRs6gEk=",
        "lit": [
            1787769249998,
            [
                "50.47788",
                "12.37129"
            ],
            [
                "Falkenstein",
                "Saxony",
                "DE"
            ],
            "49.12.134.104",
            [
                "47ca704308cc1ffc",
                "310c8668",
                "1a03f59e0ce"
            ],
            "47ca704308cc1ffc310c86681a03f59e0ce"
        ],
        "mm3128": {
            "hashHex": "b68fda223f324f6c89a6e71bc6804fe3",
            "hashBase64": "to/aIj8yT2yJpucbxoBP4w=="
        },
        "sha256": {
            "hashHex": "73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049",
            "hashBase64": "c0dctApWjo2ooEXO0RATfhWfiQrE2og7axfcZRs6gEk="
        },
        "lithash": "47ca704308cc1ffc,310c8668,1a03f59e0ce$to/aIj8yT2yJpucbxoBP4w==#c0dctApWjo2ooEXO0RATfhWfiQrE2og7axfcZRs6gEk="
    },
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/test-api
OpenAPI spec: https://www.oanor.com/api/test-api/openapi.json
