Giter VIP home page Giter VIP logo

qbittorrent-ee-api's Introduction

qBittorrent-EE-API

A example program for qBittorrent Enhanced Edition API

example

Example

I want to block client contains "Xunlei". Do the infinite loop in GET /api/v2/sync/maindata for the torrent hash

Response
{
  "torrents": {
    "abcdefghijklmnopqrstuvwxyz12345678900000": {
      ....
    }
  }
}

Next, GET /api/v2/sync/torrentPeers?hash=abcdefghijklmnopqrstuvwxyz12345678900000

Response
{
  "full_update": true,
  "peers": {
    "1.2.3.4:1234": {
      "client": "7.9.5.4480",
      "connection": "BT",
      "country": "China",
      "country_code": "cn",
      "dl_speed": 0,
      "downloaded": 0,
      "files": "",
      "flags": "U X E P",
      "flags_desc": "interested(peer) and unchoked(local), peer from PEX, encrypted traffic, μTP",
      "ip": "1.2.3.4",
      "peer_id": "-XL0010-",
      "port": 1234,
      "progress": 0,
      "relevance": 0,
      "up_speed": 0,
      "uploaded": 0
    }
  },
  "rid": 1,
  "show_flags": true
}

Block Peer

If the peer's client contains "Xunlei", send a request to POST /api/v2/transfer/tempBlockPeer Default ban time: 1hour

Parameters

Name Required? Type Description
ip Required String IP address that you want to block
Example Request
curl -X POST -F 'ip=1.2.3.4' http://hostname:port/api/v2/transfer/tempBlockPeer

qbittorrent-ee-api's People

Contributors

c0re100 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.