# Deps API Documentation - Full Content ## About Deps API Deps API provides an official, high-performance RESTful interface for integration with Arizona RP services. The API is designed with high standards of security, speed, and stability, making it the ideal choice for developers creating applications, bots, and services that interact with the Arizona RP world. ## Key Features - **High Performance**: Processing over 1,000,000 requests daily with minimal latency - **Reliability**: Guaranteed 99.9% uptime and constant server status monitoring - **Up-to-date Data**: Get the latest information from Arizona RP servers in real-time - **Simple Integration**: Clear documentation and code examples for quick development - **Technical Support**: Qualified assistance from API developers when questions arise ## Getting Started ### Getting an API Key To start using Deps API, you need to obtain an API key. This can be done through our Telegram bot at https://t.me/DepsAPI_bot. The API key is required for all requests to our API. ### Authentication Deps API uses an API key-based authentication system to ensure secure access to resources. All requests to the API must include a valid API key. #### Example Request with Authentication ```bash curl -X GET "https://api.depscian.tech/v2/player/find" \ -H "X-API-Key: API_KEY" ``` ### Error Handling | Error Code | HTTP Code | Description | |------------|----------|----------| | UNAUTHORIZED | 401 | Missing or invalid API key | | RATE_LIMIT_EXCEEDED | 429 | Request limit exceeded for API key | ## Endpoints ### /v2/player/find This endpoint allows you to get detailed information about a player on Arizona RP servers. It's one of the most frequently used endpoints in Deps API, providing developers with access to key player data. #### Available Data Using this endpoint, you can get the following information: - Player nickname and ID - Level and experience - Balance and bank account - Faction and rank - Online/offline status - Last game login - Player statistics - And much more #### Request Example ```bash curl -X GET "https://api.depscian.tech/v2/player/find?nickname=YourNickname&serverId=1" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` #### Successful Response Example ```json { "status": "success", "data": { "id": 12345, "nickname": "YourNickname", "level": 18, "exp": 75000, "money": 250000, "bank": 1000000, "fraction": { "id": 1, "name": "Police Department", "rank": 5, "rank_name": "Officer" }, "online": true, "last_seen": "2023-12-15T15:30:00Z", "stats": { "kills": 150, "deaths": 75, "playtime_hours": 350 } } } ``` ### /v2/player/online This endpoint provides a list of all online players on a specific server. ### /v2/fractions This endpoint gives information about all fractions on the server. ### /v2/fraction/{id} This endpoint provides detailed information about a specific fraction. ### /v2/admins This endpoint gives a list of server administrators. ### /v2/status This endpoint provides information about the current status of the server. ## Usage Recommendations - Cache request results to reduce API load and speed up your application - Consider case sensitivity when sending player nickname - Use error handling for cases when a player is not found or the server is unavailable ## Official Resources - Technical support: https://t.me/depscian - Official channel: https://t.me/depsapi - API key bot: https://t.me/DepsAPI_bot ## Contact Information For any questions regarding the use of Deps API or if you find an issue, please contact our technical support at https://t.me/depscian. © Deps API 2023 - Official API for accessing Arizona RP server data