A FastAPI-based REST API service for tracking Apple Find My Items location information, including AirTag, AirPods, and other Find My Items.
Apple does not provide an official Find My API interface, primarily due to the following considerations:
- Security: Prevent malicious programs from accessing location information
- Ecosystem: Maintain exclusive connections between Apple devices
- Privacy Protection: Ensure confidentiality of user location data
This project implements Find My functionality extension through:
- Direct reading of Find My cache files in macOS system:
~/Library/Caches/com.apple.findmy.fmipcore/Items.data
-
Converting cache data into standardized API format
-
Providing cross-platform access capability through HTTP protocol
Warning
- System Requirements: Only supports macOS 14.3.1 or earlier versions
- Access Permissions: Requires local file system read permissions
- Update Frequency: Depends on system cache update cycle
Poetry
: Python dependency management tool- macOS system (14.3.1 or earlier)
- Find My cache file access permissions
- Clone the project:
git clone https://github.com/zyx1121/findmy-api.git
cd findmy-api
- Install dependencies:
poetry install
- Start the service:
poetry run uvicorn findmy_api.main:app --host 0.0.0.0 --port 8000 --reload
Two interactive API documentation interfaces are provided:
-
Swagger UI:
http://127.0.0.1:8000/docs
- Suitable for developer testing and interaction
- Provides real-time API testing functionality
-
ReDoc:
http://127.0.0.1:8000/redoc
- Provides clearer documentation reading experience
- Suitable for API documentation reference
This project is for educational and research purposes only. The author:
- Takes no responsibility for any misuse or damages
- Does not guarantee the accuracy or reliability of the data
- Is not affiliated with Apple Inc.
- Makes no warranties regarding the use of this software
By using this software, you acknowledge that:
- You are using it at your own risk
- You will comply with Apple's terms of service
- You will respect user privacy and data protection laws
- You understand this is not an official Apple product