Documentation

Build with DataLayer

Everything you need to integrate our APIs. Quick-start in under 5 minutes with any language or framework.

Quick start guide

1

Get your API key

Contact our team to receive your dedicated API credentials. We provision access tailored to your use case.

2

Make your first request

Use your API key to authenticate and fetch data from any endpoint.

3

Integrate and ship

Parse the JSON response and integrate the data into your product. That's it.

example.jsJavaScript
// Install: npm install node-fetch
const API_KEY = "dl_live_your_key_here";
const BASE_URL = "https://api.example.com";

// Fetch active deals
const response = await fetch(
  `${BASE_URL}/v1/deals?city=karachi&bank=hbl`,
  {
    headers: {
      "Authorization": `Bearer ${API_KEY}`,
      "Content-Type": "application/json",
    },
  }
);

const { data, total } = await response.json();

console.log(`Found ${total} deals`);
data.forEach((deal) => {
  console.log(
    `${deal.merchant} — ${deal.discount}`
  );
});

Authentication

All API requests require a Bearer token in the Authorization header:

Authorization: Bearer dl_live_your_key_here

Sandbox keys start with dl_test_ and return sample data.

Live keys start with dl_live_ and return real data. Keep them secret.

API Endpoints

Financial Deals API

Fetch active bank card offers, filter by bank, city, category, or merchant.

GET/v1/deals

Tax Verification API

Verify NTN or CNIC against official FBR records. Returns tax status and details.

POST/v1/tax/verify

Merchant Intelligence API

Search and filter the merchant database. Includes logos, categories, and branches.

GET/v1/merchants

Card Comparison API

Browse all Pakistani bank cards with features, fees, and eligibility criteria.

GET/v1/cards

Response format

{
  "status": "success",
  "data": [...],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total": 15284,
    "total_pages": 765
  },
  "meta": {
    "request_id": "req_abc123",
    "response_time_ms": 45
  }
}

All responses follow a consistent structure with status, data, pagination, and metadata.

Ready to start building?

Contact us to discuss your data requirements and receive your dedicated API credentials.

Request API Access

Already a client? Sign in to your dashboard