JSON API Manager - API Documentation

Note: Login to generate and manage your API keys for full access.
Authentication: All endpoints require a valid API key.
/lookup

List Available JSON Files

Description

Retrieve a list of all available JSON filenames in the system.

Parameters

Parameter Type Required Description
api_key string Yes Your unique API key

Example Request

# Python using requests
import requests

url = "/lookup"
payload = {
    "api_key": "your-api-key-here"
}
response = requests.post(url, json=payload)
print(response.json())
            

Example Response

{
    "filenames": [
        "users",
        "products",
        "orders"
    ]
}
            
/jsondata

Retrieve JSON File Data

Description

Retrieve data from a specific JSON file. Optionally limit the number of returned items.

Parameters

Parameter Type Required Description
api_key string Yes Your unique API key
filename string Yes Name of the JSON file (without .json extension)
datanumber integer No Limit the number of items returned

Example Requests

import requests
def fetch_gemini_api_key()->str:
    url = "/jsondata"
    params = {
        "api_key": "your-api-key-here",
        "filename": "gemini",
        "datanumber": 1
    }
    headers = {
        "accept": "*/*",
        "content-type": "application/json",
    }

    try:
        response = requests.post(url, params=params, headers=headers)
        response.raise_for_status()
        data: list[dict] = response.json()
        print("api key fetched successfully :", data[0].get("value"))
        return data[0].get("value")
    except Exception as e:
        print(f"โŒ apimanage.naravirtual.in Request failed: {e}")
        return None

if __name__ == "__main__":
    print(fetch_gemini_api_key())

            

Example Responses

# Full data
[
    {"id": 1, "name": "John Doe", "email": "[email protected]"},
    {"id": 2, "name": "Jane Smith", "email": "[email protected]"}
]

# Limited data (first 5 items)
[
    {"id": 1, "name": "John Doe", "email": "[email protected]"},
    {"id": 2, "name": "Jane Smith", "email": "[email protected]"},
    {"id": 3, "name": "Bob Johnson", "email": "[email protected]"},
    {"id": 4, "name": "Alice Williams", "email": "[email protected]"},
    {"id": 5, "name": "Charlie Brown", "email": "[email protected]"}
]
            
Error Handling:
  • 401 Unauthorized: Invalid or missing API key
  • 404 Not Found: Requested file does not exist

๐Ÿงช Interactive API Testing

Test API endpoints directly from this page. Select an endpoint and provide the required parameters.