Latest 1.0.0
License MIT
Platforms ios 4.0, osx 10.6, requires ARC

JSTAPIToolsURLProtocol allows you to easily make your application redirects some of the HTTP(s) requests it makes to your account without modifying your existing networking code.

APItools is a web application that stores requests and lets you track, transform and analyze the traffic between your app and the APIs it uses.


Just add this line to your Podfile:

pod 'JSTAPIToolsURLProtocol', '~> 1.0.0'
  • Manually:

Simply add the files JSTAPIToolsURLProtocol.h and JSTAPIToolsURLProtocol.m to your project.


  • Sign up for a free account at

  • Create a service for every API that your application uses.

  • Have a class conform to the JSTAPIToolsURLMapping protocol:
@interface MyURLMappingProvider : NSObject <JSTAPIToolsURLMapping>

  • And implement the only required method providing the APItools host for every host that you expect your app to send requests to. Example:
@implementation MyURLMappingProvider
- (NSString *)apiToolsHostForOriginalURLHost:(NSString *)originalURLHost {
  static NSDictionary *URLMappingDitionary = nil;

  static dispatch_once_t onceToken;
  dispatch_once(&onceToken, ^{
    URLMappingDitionary = @{
                            @"" : @"",
                            @"" : @""

  return URLMappingDitionary[originalURLHost];

This will make your application forward all of its Twitter and Facebook API requests to your APItools account so you can track them, transform them and analyze them.


JSTAPIToolsURLProtocol is compatible with iOS and Mac OSX.


JSTAPIToolsURLProtocol is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "JSTAPIToolsURLProtocol",
    "version": "1.0.0",
    "summary": "Easily make your application redirects some of the HTTP(s) requests it makes to your account.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Javier Soto": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "platforms": {
        "ios": "4.0",
        "osx": "10.6"
    "source_files": "JSTAPIToolsURLProtocol.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This