Share your AI Prompts with the world!
Join For Free

API Documentation

Welcome to the Prompt Copy Paste Developer API. Our API allows you to programmatically access our library of AI tools and prompts for your own applications or websites.

Authentication

Restricted Access: The Prompt Copy Paste API is currently restricted to authorized partners and administrators. Regular user accounts cannot generate API keys.

Every request to our API must include a valid api_key. To obtain an API key for syndicating our content:

  • Contact the site administrator.
  • Explain your use-case (e.g., website integration, partner application).
  • Once approved, the admin will generate and provide you with a unique API key securely.
Security Tip: Never share your API key or commit it to public repositories.

Get Latest Tools

GET
https://editprotipss.in/api/v1/tools.php
https://editprotipss.in/api/v1/tools.php?key=YOUR_API_KEY&limit=10&offset=0

Parameters

Parameter Required Description
key Yes Your unique API key generated from the dashboard.
limit No Number of results (Default: 10, Max: 50).
category No Slug of the category to filter results.
offset No Number of records to skip (Used for pagination).

Response Format

{
  "status": "success",
  "count": 1,
  "data": [
    {
      "id": 12,
      "name": "Mothers Day Special Photo Editing Prompt",
      "slug": "mothers-day-special-photo-editing-prompt",
      "description": "A trending chatgpt photo prompt...",
      "full_description": "Create a hyper-realistic 8k photo of a boy...",
      "category_id": 3,
      "type": "free",
      "user_id": 1,
      "status": "approved",
      "image": "user_img_64a1b2c3d4e5f.png",
      "tags": "Editing, ChatGPT, Photography",
      "website_url": "",
      "copy_count": 42,
      "created_at": "2024-05-14 10:00:00",
      "category_name": "Photo Editing",
      "category_slug": "photo-editing"
    }
  ]
}

Code Samples

<?php
$api_key = "YOUR_API_KEY";
$url = "https://editprotipss.in/api/v1/tools.php?key=" . $api_key . "&limit=5";

$response = file_get_contents($url);
$data = json_decode($response, true);

if ($data['status'] === 'success') {
    foreach ($data['data'] as $prompt) {
        echo "<h2>" . $prompt['name'] . "</h2>";
        echo "<p><strong>Category:</strong> " . $prompt['category_name'] . "</p>";
        echo "<pre>" . $prompt['full_description'] . "</pre>";
    }
}
?>
const apiKey = 'YOUR_API_KEY';
const url = `https://editprotipss.in/api/v1/tools.php?key=${apiKey}&limit=5`;

fetch(url)
  .then(response => response.json())
  .then(result => {
    if (result.status === 'success') {
      result.data.forEach(tool => {
        console.log(tool.name, tool.description);
      });
    }
  })
  .catch(error => console.error('Error:', error));

Need Help?

If you have any questions or need custom API integration, feel free to contact us.

Contact Support