BadAPI allows you to simulate misbehaving APIs. This is useful if your site relies on the availability of service X, and you want to ensure that any downtime experienced by that service has minimal impact on your own application.
Replace the HTTP endpoint URL for the API you wish to test with the URL 'http://badapi.trib.tv/req'. Append arguments to the URL query string parameters, as indicated below to control the bahaviour that you get from the API simulator. Arguments should be separated by ampersands (&) if you want to provide more than one argument, and should be URL encoded if necessary.
| Prefix | Format | Example | Description |
|---|---|---|---|
| wait | Integer | wait=25 | Causes the request to hang for the specified number of seconds before returning output. Useful for simulating sluggish response, or checking that timeouts behave as expected. Max 30 seconds. |
| resp | Integer | resp=500 | Causes the specified HTTP response status code to be used in the response, eg 500 Internal Server Error. Any valid HTTP response status code can be used. Invalid codes are ignored. |
| op | String | op=json1 | Specifies the output to send in response to the request. The choice of outputs is as shown below. |
| ct | String | ct=html | Specifies a content-type header to include in the response. Shortcuts are html (text/html), css (text/css), jpg (image/jpg), gif (image/gif), png (image/png), text (text/plain), xhtml (application/xhtml+xml), pdf (application/pdf), bin (application/octet-stream). Any unrecognised string will be used as given. |
| cs | String | cs=utf8 | Specifies a character set to include in the content-type header of the response. Shortcuts are utf (UTF-8), latin1 (ISO-8859-1), asc (US-ASCII), win1252 (windows-1252). Any unrecognised string will be used as given. |
| Keyword | Description |
|---|---|
| AKLEtVWHuNGbV | real beauty page |
| BFIeRKTJ | KLnMeGml |
| BTqsTNYoHKRFmNMod | Good crew it's cool :) |
| BblalWDTFyT | magic story very thanks |
| CGyoasJrF | Gloomy tales |
| CVyyOBNaps | Good crew it's cool :) |
| CWFpamaEwHkikAjzS | Good crew it's cool :) |
| DjDMhNXslpjffM | I love this site |
| DvfpephBdYDWLosFW | Good crew it's cool :) |
| EajjYQqwrr | Hello good day |
| EwXEOxLiACEagGC | Very interesting tale |
| FUbozGwCjLWuTqQgbND | Gloomy tales |
| FzCRvLMG | very best job |
| GKZOicLfvarnCczxMAD | perfect design thanks |
| GixXsxbNJop | perfect design thanks |
| HDBBfcHfEGgn | gjMJlQ http://cry82Nqp94NsW0sl2VvqhJ4m.com |
| HILsaSRgDyNdEDYo | It's serious |
| HRVPnOGnYzLNAl | Punk not dead |
| IKdUrOMzAkiTupzAZJd | Very funny pictures |
| JzvLzJNVf | Punk not dead |
| KdLUNjAwsifBD | very best job |
| LwkuKwleKX | It's funny goodluck |
| MNCDIwYkVoBOWmzQZuB | Best Site Good Work |
| MONQHZCNP | Very interesting tale |
| NFKQgdclFRAqcdkKO | Excellent work, Nice Design |
| NMQZdMfZGBWgyWUA | Hello good day |
| OjvXiAvF | Very interesting tale |
| OtqDcOjFwTngF | Best Site Good Work |
| PUWPoiDdsOZt | Very Good Site |
| PXuCfVqkRytBTDwaS | Gloomy tales |
| PaqsUAahqwrb | Best Site good looking |
| QHsPVEzvw | Best Site good looking |
| RHUMkgBLZw | It's funny goodluck |
| SXvLsqjfiHpNdHI | Very Good Site |
| THowTEXvJbgUUPs | Very funny pictures |
| TRbFpZsycy | Gloomy tales |
| TWecaMgFRtariE | |
| ULaoEioHyfs | good material thanks |
| UaTsJrOTaIrmePxaBcC | Very Good Site |
| VSJfkaPrQxi | very best job |
| WDDcpboNlD | i'm fine good work |
| WRhRuBgikR | Very Good Site |
| WZzKGAqWJMVPetwgkB | efOAjv http://fh82nGsQk0fQsn3Ldap1f.com |
| WbENTahnD | Very Good Site |
| XPVHikHZGz | Thanks funny site |
| XYdNXaDWQuPQWa | Very Good Site |
| XyaGkXokylXJ | |
| YUwwZJfduZCJv | good material thanks |
| YfMHiAAmUOq | Hello good day |
| ZLXjOLHzKYcWCfJ | I'm happy very good site |
| aFcgnkVlPaQRzlkOve | good material thanks |
| bHSkVvim | Best Site good looking |
| bewEvtQSlItRRqR | magic story very thanks |
| bzoqTgGX | Hello good day |
| cOCsZWyyxQNrIDYBJ | Very interesting tale |
| cVWkonXOLMEutI | I'm happy very good site |
| cXFfAsUGiT | Punk not dead |
| ccsKsQZHSBBihUqXo | yqRtFZHfMSczIK |
| cgcMvdVjGqsAx | magic story very thanks |
| cmKZcyQZCo | Cool site goodluck :) |
| cuWrqRqkq | perfect design thanks |
| cwRpknQyzEFuY | i'm fine good work |
| dOnlqiGCJe | I'm happy very good site |
| dWKAumLlIu | Thanks funny site |
| eXMLOaLTbkvsX | |
| ehdTAdyE | fnjKC4 http://jfkIj4nC01mcKkavYstU3l.net |
| ekQyKHCeaukgIOKuf | very best job |
| errstring | A simple error message |
| fMDUqKDDARYtTEIpYa | Punk not dead |
| fTUkoIjqGjK | hPblDGvrhADAHYDOIdD |
| fVReeQAfCPBERcyYZfi | It's funny goodluck |
| fuLOJIbffo | Best Site Good Work |
| fzcahgrrPpZnp | Hello good day |
| gNFCgDIpAno | Excellent work, Nice Design |
| gmfpzDkhQQAD | Very Good Site |
| hQBFjNEUBHkWtNbP | Best Site Good Work |
| iBIexUJmm | It's funny goodluck |
| iDDNcrjzcHSo | Good crew it's cool :) |
| iajjWAHzcVzDc | real beauty page |
| iczmHsEHkAeMQPFYwj | |
| ikGzgrHrTpQidOBTx | Hello good day |
| jBDLJCRZbgq | I love this site |
| jsdocwrite | A simple JavaScript document.write statement. This is intended to be used to test the ability to content management systems to embed script includes |
| json1 | Valid JSON test string, UTF-8 encoded with non-ASCII characters and Unicode escape sequences, spaced with tabs, newlines and spaces. |
| jsstsJNcjSaRS | this post is fantastic |
| jxBUiCseUROu | perfect design thanks |
| kEyzhVeNogwu | Best Site good looking |
| kckwdVDQIebekHSIv | It's serious |
| lVDApFqLgAJpM | real beauty page |
| lcJmiKjq | magic story very thanks |
| mZCNvEYqriUuWiZF | I love this site |
| mesrDbGOYQpEddXPKtY | Thanks funny site |
| nHmADKbMoGZgnQCYpc | Excellent work, Nice Design |
| nQNkaSAsRhwevdD | Good crew it's cool :) |
| nVgBGBJvx | good material thanks |
| njZhMSNCgZqqBrGqKi | magic story very thanks |
| nweAPSRrTGdHb | I love this site |
| nwsBGnxtCXVzgWN | Very interesting tale |
| oBVZmqCAQoGnIr | Very Good Site |
| oHQKLXTjXdX | this post is fantastic |
| pGjZQfbvvMcyrtpfY | i'm fine good work |
| pLBsvtvh | i'm fine good work |
| pQxtzBWnjGaZ | this post is fantastic |
| pSobCbosAFfeASEe | Good crew it's cool :) |
| psVjmeMsIMLIbi | I love this site |
| pvCrtFif | Hello good day |
| rBmzTPCBqf | Gloomy tales |
| uNyVDgdcVGZ | This site is crazy :) |
| uQLFKftaxyu | Best Site good looking |
| uYJNekgChFxtPfWJ | Punk not dead |
| uiiPFaVr | Best Site Good Work |
| vAAgxsllX | Cool site goodluck :) |
| vAdIEIuwjtGt | Best Site good looking |
| vZEUmdYY | Jonny was here |
| wcwKWdRtWNnoY | Best Site Good Work |
| xJhsFpOpbN | Good crew it's cool :) |
| xuLwISCImKofI | |
| yktsXrYXlfxx | This site is crazy :) |
| zwqqwlaC | Wonderfull great site |
You can include anything in your response body, but stick to plain text for the description. If you include HTML, the submission will not be saved.
Created by Andrew Betts. Comments to andrew@trib.tv.