Skip to main content

API Testing with Postman

What is Postman

An API platform for creating and utilizing APIs is called Postman. To help you design better APIs faster, Postman improves collaboration and simplifies every stage of the API lifecycle.

What is API?

Interface which performs some action with Servers. A technique for two or more computer applications to communicate with one another is through an application programming interface (API). It is a form of software interface that gives other software applications a service. The term “API specification” refers to a document or standard that outlines how to create or utilize such a connection or interface. An API is stated to be implemented or exposed by a computer system that complies with this standard. The implementation or the specification are both included under the umbrella term API.

How to Test API?

Using postman tool anyone can test API. Postman is free to use.

What is Official Postman Website to download API Testing Tool?

User can download Postman free version from official Website https://www.postman.com/downloadW

How does the Postman tool’s theme change?

Click the Gear Icon, then select Settings. Choose Theme Tab
The user can choose any accessible theme under the Theme tab, such as black.

What are types of API?

In software industry we have two types of API.
1. SOAP (Simple Object Access Protocol) API.
2. REST (Representational State transfer) API.
SOAP API are used by very less. Now a days REST API is Widely Used. SOAP Support only XML format data while REST support XML, JSON, Txt etc.
SOAP and REST Both are WEBSERVICES

What is the Difference between Webservice and API

Simple and easy to understand the major difference between Webservice and API is, If API is available on Web (Internet) we called it as Webservice. So, all Webservices are API, but all APIs are not webservices. API, we can test it on Local System. Technically API and Webservices are same but once APIs are available on web, accessible to public then we can call it them as webservice.

What is REST API?

Term Rest stands for Representational state transfer.

What are different REST API Methods?

GET, Post, Put and Delete Methods. They are http request. When user we search something on web then that operation is GET Request. If user want to store some date to server, then one can use Post request. If user want to update existing data, then user can use PUT request. To delete any existing data user can use Delete request.

What is Payload in API Testing?

Data which we send with request and data which user received along with response is called it as Payload in API.

Sample or Test Website to Perform API Testing is Reqres – A hosted REST-API ready to respond to your AJAX requests

What are REST Response Code?

Response Code 200 – OK – Request granted; response includes outcome. This is a universal response code that can be given in response to any request.

Response Code 201 – Created – This response code is given back after a PUT or POST and shows that a new resource was successfully created.

Response Code 204 – No Content – shows that the request was approved but that nothing was provided in response. This is the only information about the result that was returned after the request was processed.

Response Code 400 – Bad Request – The request wasn’t legitimate. When the server tries to process a request but encounters an invalid request element, such as a poorly formed resource or an attempt to deploy an invalid event project to the event runtime, this code is returned.

Response Code 401 – Unauthorized – When application security is enabled, and authentication information was omitted from the request.

Response Code 403 – Forbidden – shows that a client tried to access a resource to which they are not authorized.

Response Code 404 – Not Found – Indicates that the requested resource is not available. The resource may have been deleted or the URI may be incorrect.

Response Code 405 – Method Not Allowed – Returned if the requested HTTP method is not supported by the targeted resource; for instance, the functions resource only permits GET operations.

Response Code 406 – Not Acceptable – The intended resource does not support the data format specified in the Accept header or accept parameter. In other words, although the client has asked for data to be returned in a specific format, the server is unable to comply.

Response Code 409 – Conflict – Shows that a conflicting modification was found while attempting to alter a resource. More details are provided in the body of the response.

Response Code 415 – Unsupported Media Type – The intended resource does not support the data type of the request body as defined in the Content-Type header.

Response Code 500 – Internal Server Error – The server experienced an internal issue. This could be a sign of an issue with the request or a bug in the server-side code.

List of Public API for Continuous Integration, Cloud Storage & File Sharing

APIDescriptionLinkAuth
Abstract Public HolidaysData on national, regional, and religious holidays via APIhttps://www.abstractapi.com/holidays-apiapiKey
Calendar IndexWorldwide Holidays and Working Dayshttps://www.calendarindex.com/apiKey
Google CalendarDisplay, create and modify Google calendar eventshttps://developers.google.com/google-apps/calendar/OAuth
HolidaysHistorical data regarding holidayshttps://holidayapi.com/apiKey
Non-Working DaysDatabase of ICS files for non working dayshttps://github.com/gadael/icsdb 
UnixTime ConverterA REST API to convert UnixTime to DateTime and DateTime to UnixTimehttps://unixtime.co.za 
AnonFilesUpload and share your files anonymouslyhttps://anonfiles.com/docs/api 
BayFilesUpload and share your fileshttps://bayfiles.com/docs/api 
BoxFile Sharing and Storagehttps://developer.box.com/OAuth
DropboxFile Sharing and Storagehttps://www.dropbox.com/developersOAuth
File.ioSuper simple file sharing, convenient, anonymous and securehttps://www.file.io 
GoFileUnlimited size file uploads for freehttps://gofile.io/apiapiKey
Google DriveFile Sharing and Storagehttps://developers.google.com/drive/OAuth
OneDriveFile Sharing and Storagehttps://dev.onedrive.com/OAuth
PantryFree JSON storage for small projectshttps://getpantry.cloud/ 
PastebinPlain Text Storagehttps://pastebin.com/doc_apiapiKey
Web3 StorageFile Sharing and Storage for Free with 1TB Spacehttps://web3.storage/apiKey
CircleCIAutomate the software development process using continuous integration and continuous deliveryhttps://circleci.com/docs/api/v1-reference/apiKey
CodeshipCodeship is a Continuous Integration Platform in the cloudhttps://apidocs.codeship.com/apiKey
Travis CISync your GitHub projects with Travis CI to test your code in minuteshttps://docs.travis-ci.com/api/apiKey
Continuous Integration and Cloud Storage public api list.

Data credit for https://github.com/davemachado/public-api#get-random

To fetch Latest List of new or updated API visit this github link for more information which retrieve all public api information for below categories.

List of Public API available for various category like Animals Anime, Anti-Malware, Art & Design, Authentication, Books, Business, Calendar, Cloud Storage & File Sharing, Continuous Integration, Cryptocurrency, Currency Exchange, Data Validation, Development, Dictionaries, Documents & Productivity Environment, Events, Finance, Food & Drink, Games & Comics, Geocoding, Health, Jobs, Machine Learning, Music, News, Open Data, Open Source Projects, Patent, Personality, Phone, Photography, Science & Math, Security, Shopping, Social, Sports & Fitness, Test Data, Text Analysis, Tracking, Transportation, URL Shorteners, Vehicle, Video, Weather,

New list of Public API for Books, Business category

Below is the list of public API for books and business category. More information on documentation is available after visiting the link in Link Column.

APIDescriptionLinkAuth
British National BibliographyBookshttp://bnb.data.bl.uk/ 
Crossref Metadata SearchBooks & Articles Metadatahttps://github.com/CrossRef/rest-api-doc 
Google BooksBookshttps://developers.google.com/books/OAuth
LibGenLibrary Genesis search enginehttps://garbage.world/posts/libgen/ 
New York Times BooksBook reviews and The New York Times Best Sellers listshttps://developer.nytimes.com/docs/books-product/1/overviewapiKey
Open LibraryBooks, book covers and related datahttps://openlibrary.org/developers/api 
Penguin PublishingBooks, book covers and related datahttp://www.penguinrandomhouse.biz/webservices/rest/ 
Wolne LekturyAPI for obtaining information about e-books available on the WolneLektury.pl websitehttps://wolnelektury.pl/api/ 
Charity SearchNon-profit charity datahttp://charityapi.orghunter.com/apiKey
Clearbit LogoSearch for company logos and embed them in your projectshttps://clearbit.com/docs#logo-apiapiKey
Domainsdb.infoRegistered Domain Names Searchhttps://domainsdb.info/ 
FreelancerHire freelancers to get work donehttps://developers.freelancer.comOAuth
GmailFlexible, RESTful access to the user’s inboxhttps://developers.google.com/gmail/api/OAuth
Google AnalyticsCollect, configure and analyze your data to reach the right audiencehttps://developers.google.com/analytics/OAuth
mail.tmTemporary Email Servicehttps://docs.mail.tm 
MailboxValidatorValidate email address to improve deliverabilityhttps://www.mailboxvalidator.com/api-email-freeapiKey
mailgunEmail Servicehttps://www.mailgun.com/apiKey
markerapiTrademark Searchhttp://www.markerapi.com/ 
ORB IntelligenceCompany lookuphttps://api.orb-intelligence.com/docs/apiKey
SmartsheetAllows you to programmatically access and Smartsheet data and account informationhttps://smartsheet.redoc.ly/OAuth
SwiftKanbanKanban software, Visualize Work, Increase Organizations Lead Time, Throughput & Productivityhttps://www.digite.com/swiftkanban/apiKey
TrelloBoards, lists and cards to help you organize and prioritize your projectshttps://developers.trello.com/OAuth
Books and Business public API

Data credit for https://github.com/davemachado/public-api#get-random

List of Public API Information for Anime, Anti-Malware, Authentication

List of public free APIs for Anime, Anti-Malware, Art & Design, Authentication. With Details like API Name, Description, Link, and Authentication type.

APIDescriptionLinkAuth
AniAPIAnime discovery, streaming & syncing with trackershttps://github.com/AniAPI-Team/AniAPIOAuth
AniDBAnime Databasehttps://wiki.anidb.net/HTTP_API_DefinitionapiKey
AniListAnime discovery & trackinghttps://github.com/AniList/ApiV2-GraphQL-DocsOAuth
AnimeChanAnime quotes (over 10k+)https://github.com/RocktimSaikia/anime-chan 
AnimeNewsNetworkAnime industry newshttps://www.animenewsnetwork.com/encyclopedia/api.php 
JikanUnofficial MyAnimeList APIhttps://jikan.moe 
KitsuAnime discovery platformhttps://kitsu.docs.apiary.io/OAuth
MyAnimeListAnime and Manga Database and Communityhttps://myanimelist.net/clubs.php?cid=13727OAuth
NekosBestNeko Images & Anime roleplaying GIFshttps://docs.nekos.best 
ShikimoriAnime discovery, tracking, forum, rateshttps://shikimori.one/api/docOAuth
Studio GhibliResources from Studio Ghibli filmshttps://ghibliapi.herokuapp.com 
Waifu.picsImage sharing platform for anime imageshttps://waifu.pics/docs 
AbuseIPDBIP/domain/URL reputationhttps://docs.abuseipdb.com/apiKey
AlienVault Open Threat Exchange (OTX)IP/domain/URL reputationhttps://otx.alienvault.com/apiapiKey
Google Safe BrowsingGoogle Link/Domain Flagginghttps://developers.google.com/safe-browsing/apiKey
MalShareMalware Archive/file sourcinghttps://malshare.com/doc.phpapiKey
MetacertMetacert Link Flagginghttps://metacert.com/apiKey
URLhausBulk queries and Download Malware Sampleshttps://urlhaus-api.abuse.ch/ 
URLScan.ioScan and Analyse URLshttps://urlscan.io/about-api/apiKey
VirusTotalVirusTotal File/URL Analysishttps://www.virustotal.com/en/documentation/public-api/apiKey
Art Institute of ChicagoArthttps://api.artic.edu/docs/ 
ColourLoversGet various patterns, palettes and imageshttp://www.colourlovers.com/api 
Cooper HewittSmithsonian Design Museumhttps://collection.cooperhewitt.org/apiapiKey
DribbbleDiscover the world’s top designers & creativeshttps://developer.dribbble.comOAuth
EuropeanaEuropean Museum and Galleries contenthttps://pro.europeana.eu/resources/apis/searchapiKey
Harvard Art MuseumsArthttps://github.com/harvardartmuseums/api-docsapiKey
Icon HorseFavicons for any website, with fallbackshttps://icon.horse 
IconfinderIconshttps://developer.iconfinder.comapiKey
Icons8Iconshttp://docs.icons8.apiary.io/#reference/0/metaOAuth
Metropolitan Museum of ArtMet Museum of Arthttps://metmuseum.github.io/ 
Noun ProjectIconshttp://api.thenounproject.com/index.htmlOAuth
PHP-NoiseNoise Background Image Generatorhttps://php-noise.com/ 
Pixel EncounterSVG Icon Generatorhttps://pixelencounter.com/api 
RijksmuseumArthttps://www.rijksmuseum.nl/en/apiapiKey
Auth0Easy to implement, adaptable authentication and authorization platformhttps://auth0.comapiKey
Micro User ServiceUser management and authenticationhttps://m3o.com/userapiKey
MojoAuthSecure and modern passwordless authentication platformhttps://mojoauth.comapiKey
StytchUser infrastructure for modern applicationshttps://stytch.com/apiKey
Public API List

Data credit

List of Public API for Animals

List of Public API for Animals

APIDescriptionAuthHTTPSCorsLink
AxolotlCollection of axolotl pictures and factstrueunknownhttps://theaxolotlapi.netlify.app/
Cat FactsDaily cat factstruenohttps://alexwohlbruck.github.io/cat-facts/
CataasCat as a service (cats pictures and gifs)trueunknownhttps://cataas.com/
catAPIRandom pictures of catstrueyeshttps://github.com/ThatCopy/catAPI/wiki/Usage
CatsPictures of cats from TumblrapiKeytrueunknownhttps://docs.thecatapi.com/
Dog FactsRandom dog factstrueunknownhttps://dukengn.github.io/Dog-facts-API/
DogsBased on the Stanford Dogs Datasettrueyeshttps://dog.ceo/dog-api/
HTTPCatCat for every HTTP Statustrueunknownhttps://http.cat/
IUCNIUCN Red List of Threatened SpeciesapiKeyfalseunknownhttp://apiv3.iucnredlist.org/api/v3/docs
MovebankMovement and Migration data of animalstrueunknownhttps://github.com/movebank/movebank-api-doc
PlaceBearPlaceholder bear picturestrueyeshttps://placebear.com/
PlaceDogPlaceholder Dog picturestrueyeshttps://place.dog
RandomCatRandom pictures of catstrueyeshttps://aws.random.cat/meow
RandomDogRandom pictures of dogstrueyeshttps://random.dog/woof.json
RandomDuckRandom pictures of duckstruenohttps://random-d.uk/api
RandomFoxRandom pictures of foxestruenohttps://randomfox.ca/floof/
RescueGroupsAdoptiontrueunknownhttps://userguide.rescuegroups.org/display/APIDG/API+Developers+Guide+Home
Shibe.OnlineRandom pictures of Shiba Inu, cats or birdstrueyeshttp://shibe.online/

Data credit for https://github.com/davemachado/public-api#get-random