Retrieve a list of all available JSON filenames in the system.
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your unique API key |
# Python using requests
import requests
url = "/lookup"
payload = {
"api_key": "your-api-key-here"
}
response = requests.post(url, json=payload)
print(response.json())
{
"filenames": [
"users",
"products",
"orders"
]
}
Retrieve data from a specific JSON file. Optionally limit the number of returned items.
| 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 |
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())
# 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]"}
]
Test API endpoints directly from this page. Select an endpoint and provide the required parameters.