Torn API Client
    Preparing search index...

    Class TornEndpoint

    Access the Torn API endpoints

    Index

    Constructors

    Methods

    • Get any Torn selection

      Parameters

      • Optionalparams: {
            cat?:
                | "Special"
                | "attacks"
                | "chains"
                | "revives"
                | "busts"
                | "traveltime"
                | "networth"
                | "workstats"
                | "Alcohol"
                | "Artifact"
                | "Booster"
                | "Candy"
                | "Car"
                | "Clothing"
                | "Collectible"
                | "Defensive"
                | "Drug"
                | "Energy Drink"
                | "Enhancer"
                | "Flower"
                | "Jewelry"
                | "Material"
                | "Medical"
                | "Melee"
                | "Other"
                | "Plushie"
                | "Primary"
                | "Secondary"
                | "Supply Pack"
                | "Temporary"
                | "Tool"
                | "racingskill"
                | "awards"
                | "respect"
                | "rank"
                | "level"
                | "defends"
                | "offences"
                | "racingwins"
                | "racingpoints"
                | "Armor"
                | "Book"
                | "Unused"
                | "Weapon"
                | "All";
            from?: number;
            id?: number
            | number[]
            | FactionTerritoryEnum[];
            limit?: number;
            offset?: number;
            selections?: string[];
            sort?: "ASC" | "DESC";
            striptags?: "true" | "false";
            timestamp?: string;
            to?: number;
        }

        Optional query parameters

      Returns Promise<TornResponse>