Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

ColoringPagesDesign Javascript API Wrapper

License

NotificationsYou must be signed in to change notification settings

coloringpagesdesign/cpd-js-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coloring Pages Design API

ColoringPagesDesign API JavaScript Client

You can create printable coloring pages for kids and adults.

npm versionnpm downloads

npm package

Getting Started

1. Create an Account

  1. VisitColoringPagesDesign.com
  2. Sign up for a new account
  3. Access the Developer Portal either:
    • From the account dropdown menu → "Developers"
    • Or directly at/developers
  4. Generate your API key from the developer dashboard

2. Installation

npm install coloring-pages-api

or

yarn add coloring-pages-api

3. Basic Usage

importColoringPagesAPIfrom'coloringpages-api';// Initialize the clientconstapi=newColoringPagesAPI('YOUR_API_KEY');// Request coloring page creationconstcoloringPage=awaitapi.createColoringPage('SUBJECT HERE','STYLE HERE','COMPLEXITY HERE','VISIBILITY HERE');console.log('Result coloring page: ',coloringPage.imageUrl);console.log('Is image safe: ',coloringPage.isImageSafe)

API Access Levels

Free Tier

  • Access to basic API endpoints
  • Rate limited/throttled requests
  • Perfect for testing and small projects
  • Watermark

Paid Tier

  • Unlimited API requests
  • No rate limiting
  • No watermark

Rate Limits

TierRequests/minuteDaily Limit
Free10100
PaidUnlimitedUnlimited

Advanced Usage and Error Handling

try{constapi=newColoringPagesAPI('YOUR_API_KEY');constsubject='butterfly';// Whatever subject you wantconststyle='pixel-art'// 'figurine', 'pixel-art', 'anime'constcomplexity='easy';// 'easy', 'hard'constvisibility='public';// 'public', 'private'constcoloringPage=awaitapi.createColoringPage(subject,style,complexity,visibility);console.log('Result coloring page: ',coloringPage.imageUrl);console.log('Is image safe: ',coloringPage.isImageSafe)}catch(error){if(error.status===429){console.log('Rate limit exceeded');}else{console.error('API Error:',error.message);}}

Available Methods

MethodDescription
createColoringPage(subject, style, complexity, visibility)Create a new coloring page

Support

For support, contact our support team atsupport-api@coloringpagesdesign.com.

License

This project is licensed under the MIT License - see theLICENSE file for details.

Climate

We contribute part of our income to climateClimate Carbon Removal

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp