Pakistani Recipe API

Access 346 Pakistani recipes via a free, open JSON API. No keys. No rate limits. No hassle. Perfect for food apps, aggregators, and cooking tools.

Quick Start

The Endpoint

https://pakistani.recipes/api/recipes.json

Method: GET | Auth: None required | Format: JSON

JavaScript / Fetch

fetch('https://pakistani.recipes/api/recipes.json')
  .then(response => response.json())
  .then(recipes => {
    console.log(`Found ${recipes.length} recipes`);
    recipes.forEach(recipe => {
      console.log(`${recipe.title} - ${recipe.difficulty}`);
    });
  })
  .catch(error => console.error('Error:', error));

Python / Requests

import requests

response = requests.get('https://pakistani.recipes/api/recipes.json')
recipes = response.json()

print(f"Found {len(recipes)} recipes")
for recipe in recipes:
    print(f"{recipe['title']} ({recipe['difficulty']})")
    print(f"  Prep: {recipe['prepTime']}m, Cook: {recipe['cookTime']}m")
    print(f"  Link: {recipe['url']}")

Response Format

The API returns a JSON array of recipe objects. Each recipe includes the following fields:

Field Type Description
title string Full recipe title (e.g., "Authentic Karachi Biryani")
slug string URL-friendly identifier for the recipe
dishSlug string Category slug (e.g., "biryani", "karahi")
dishName string Dish category name (e.g., "Biryani")
regionSlug string Region slug (e.g., "sindh", "punjab", "kp")
regionName string Full region name (e.g., "Sindh")
category string Meal category: main-course, appetizer, dessert, breakfast, bread, beverage, side-dish, snack
description string Short description (up to 200 characters)
prepTime number Preparation time in minutes
cookTime number Cooking time in minutes
servings number Number of servings
difficulty string Difficulty level: easy, medium, hard
ingredientCount number Total number of ingredients
url string Full URL to the recipe on pakistani.recipes
image string Full URL to the recipe image (WebP format)
publishedAt string ISO 8601 publication date

Example Response (abbreviated)

[
  {
    "title": "Authentic Karachi Biryani",
    "slug": "karachi-biryani",
    "dishSlug": "biryani",
    "dishName": "Biryani",
    "regionSlug": "sindh",
    "regionName": "Sindh",
    "category": "main-course",
    "description": "The iconic Karachi-style biryani — fiery, tangy, loaded with potatoes and prunes...",
    "prepTime": 60,
    "cookTime": 90,
    "servings": 6,
    "difficulty": "medium",
    "ingredientCount": 18,
    "url": "https://pakistani.recipes/recipes/biryani/karachi-biryani/",
    "image": "https://pakistani.recipes/images/recipes/karachi-biryani.webp",
    "publishedAt": "2024-01-15T10:30:00Z"
  },
  {
    "title": "Beef Nihari",
    "slug": "beef-nihari",
    "dishSlug": "nihari",
    "dishName": "Nihari",
    "regionSlug": "punjab",
    "regionName": "Punjab",
    "category": "main-course",
    "description": "A slow-cooked breakfast stew of beef shank simmered overnight with over a dozen spices...",
    "prepTime": 30,
    "cookTime": 480,
    "servings": 4,
    "difficulty": "hard",
    "ingredientCount": 24,
    "url": "https://pakistani.recipes/recipes/nihari/beef-nihari/",
    "image": "https://pakistani.recipes/images/recipes/beef-nihari.webp",
    "publishedAt": "2024-01-20T14:00:00Z"
  }
]

Use Cases

Recipe Aggregators

Build a multi-source recipe database that includes authentic Pakistani cooking.

Mobile Cooking Apps

Integrate Pakistani recipes into your app with prep times, difficulty levels, and ingredient counts.

Food Blogs & Websites

Feature Pakistani recipes with links back to full instructions and nutritional data.

Research & Analysis

Analyze regional variations, cooking techniques, and ingredient patterns across Pakistan.

Dietary Apps

Filter by difficulty, prep time, and servings to find recipes matching user preferences.

Educational Tools

Teach about Pakistani cuisine with authentic, well-documented recipes from the source.

License & Attribution

This API is provided under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. You are free to use, modify, and distribute the data as long as you:

  1. Give credit to pakistani.recipes with a link
  2. Include the license notice (CC BY 4.0) in your project
  3. Disclose changes if you modify the data

Attribution Example

For websites:

Recipes from <a href="https://pakistani.recipes">pakistani.recipes</a> (CC BY 4.0)

For apps/documentation:

Data from pakistani.recipes under CC BY 4.0 License

Read the full license at creativecommons.org/licenses/by/4.0/

Embed an Attribution Badge

Make it easy for your users to discover the source. Copy and paste this HTML code into your project:

HTML Code:

<div style="text-align: center; margin: 2rem 0; padding: 1rem; background: #f5f1e8; border-radius: 8px;">
  <p style="margin: 0 0 0.5rem 0; color: #666;">Recipes from:</p>
  <a href="https://pakistani.recipes" style="display: inline-block; text-decoration: none; color: #8B4513; font-weight: 600; font-size: 1.1rem;">
    🍛 pakistani.recipes
  </a>
  <p style="margin: 0.5rem 0 0 0; font-size: 0.85rem; color: #999;">(CC BY 4.0)</p>
</div>

Preview:

🍛 pakistani.recipes

(CC BY 4.0)

Frequently Asked Questions

Is there a rate limit?

No rate limits. Feel free to make as many requests as you need. We ask only that you provide proper attribution.

Do I need an API key?

Nope. The API is completely open. No authentication required.

Can I use the images?

Yes! All images are also CC BY 4.0 licensed. You can use them directly from the URL provided in the API, as long as you credit pakistani.recipes.

Can I download the entire dataset?

The API endpoint serves the full dataset. You're welcome to cache or download it for offline use — just keep the attribution!

How often is the data updated?

New recipes are added regularly. Check back often, or implement caching that refreshes periodically.

Found a bug or have a feature request?

We'd love to hear from you! Visit pakistani.recipes to get in touch.

Love Using This API?

Help us grow the most comprehensive database of authentic Pakistani recipes. Share your project, spread the word, and link back to pakistani.recipes.

Visit pakistani.recipes