Become a Member

Promotional Methods

Types of Card Offers

Credit Card JSON API


What is the JSON Javascript API?

This API lets you retrieve Credit.com's credit card offers with Javascript and display them on your site.

Javascript runs in the user's browser, unlike the PHP or other server-side code you'd use with the XML version of the API.

The Javascript version of the API is ideal for:

  • Websites where you don't have access to server-side code, such as a blog or other content management system.
  • Creating fancy interactive user interfaces, such as widgets.

Return to the main API documentation.

How to Use the API

You will put Javascript on your HTML page that retrieves the cards and displays them.

Below are links to sample pages containing Javascript that retrieves and displays different sets of cards. View source on these pages to get the sample Javascript.

Cards by credit score Cards by feature Cards by reward Cards by brand Cards by network
No Credit
Bad
Poor
Fair
Good
Excellent
Low APR
PrePaid
Secured
Student
All Reward Cards
Points
Airline Miles
Cash Back
Bank of America
Discover
HSBC Bank
Simmons First
AccountNow
Green Dot
NetSpend
READYdebit
Rush
SilverCard
Vision Premier
MasterCard
Visa

If no cards show up for you in any of these categories, that category just contains by-approval-only cards.

More Information About the API

The JSON version of the API uses the same URL to retrieve sets of cards as the XML version, as described here in the main API documentation.

It uses a few additional query string parameters:

format=json Toggles the format between XML and JSON. To use XML, remove the parameter completely.
callback=YOUR_FUNCTION_NAME Wraps the returned JSON in a call to YOUR_FUNCTION_NAME.

Because Javascript does not allow dashes in variable names, any XML element name with a dash will have a underscore substituted.

To create custom sets of cards not listed above, consult the main API documentation.