Access Torn Targets data directly from TornPDA with our custom script!
Download our custom TornPDA script or copy it directly.
1. Open TornPDA app
2. Go to Settings → Scripts
3. Tap "Add Script" button
4. Paste the script and give it a name
5. Replace YOUR_API_KEY_HERE with your actual API key
Set the script to run on Torn pages, specifically:
• Profile pages (profiles.php)
• Attack pages (loader.php?sid=attack)
• Or set it to run on all Torn pages for maximum convenience
/**
* Torn Targets - TornPDA Integration Script
*
* This script allows you to quickly check target information from Torn Targets
* directly within TornPDA while browsing Torn City.
*
* Installation:
* 1. Get your API key from https://torntargets.net/profile.php
* 2. Copy this script to TornPDA (Settings -> Scripts -> Add Script)
* 3. Replace YOUR_API_KEY_HERE with your actual API key
* 4. Set the script to run on Torn pages
*/
// Configuration - Replace with your API key
const TORN_TARGETS_API_KEY = 'YOUR_API_KEY_HERE';
const API_BASE_URL = 'https://torntargets.net/api/v1';
// Helper function to make API calls
async function tornTargetsAPI(endpoint, params = {}) {
const queryString = new URLSearchParams(params).toString();
const url = `${API_BASE_URL}/${endpoint}${qu...
// Full script continues...
// Download to see complete code
The script uses these Torn Targets API endpoints:
GET /api/v1/target?id={torn_id}
Get information about a specific target
GET /api/v1/search?q={query}&type={name|faction}
Search for targets by name or faction
GET /api/v1/targets?level_min={min}&level_max={max}
Get filtered list of targets
GET /api/v1/stats
Get overall statistics
If you encounter any issues or have questions about the TornPDA integration: