Developer Documentation

Get Started with TryAPI

Everything you need to integrate our APIs into your applications.

Quick Start

Get up and running in 3 simple steps

1

Get API Key

Sign up and create an API key from your dashboard.

2

Add Auth Header

Include your API key in the Authorization header.

3

Make Requests

Start calling APIs and build amazing products!

Authentication

How to authenticate your API requests

All API requests require authentication using a Bearer token in the Authorization header.

Authorization: Bearer sk_live_your_api_key_here

API Key Format

  • Live keys start with sk_live_
  • Test keys start with sk_test_
  • Keys are 48 characters long

Security Best Practices

  • Never expose keys in client-side code
  • Use environment variables
  • Rotate keys periodically

Important: Your API key is shown only once when created. If lost, you'll need to generate a new one.

Error Codes

Common errors and how to handle them

CodeStatusDescription
200OKRequest successful
400Bad RequestInvalid parameters or request body
401UnauthorizedMissing or invalid API key
402Payment RequiredInsufficient balance or credits
403ForbiddenIP not in whitelist or account suspended
404Not FoundAPI endpoint does not exist
429Too Many RequestsRate limit exceeded
500Server ErrorInternal server error

Error Response Format

{
  "success": false,
  "error": "Error message here",
  "code": "ERROR_CODE"
}

FAQ

Frequently asked questions

How do I get started?

Sign up for a free account, create an API key from your dashboard, and you're ready to go! Every new account gets 1,000 free API calls.

How does billing work?

We use a pay-as-you-go model. Each API has a per-call price. Free credits are used first, then your balance is charged. Check our pricing page for details.

What are IP whitelists?

You can restrict API key usage to specific IP addresses for enhanced security. Configure this in your API Keys settings.

What happens when I run out of credits?

API calls will return a 402 error. Add funds to your balance from thebilling page to continue using the APIs.

Is there a rate limit?

Yes, each API has a rate limit (typically 100 requests/minute). If exceeded, you'll receive a 429 error. Wait a moment and retry.

API Provider Documentation

Resources for API providers who want to monetize their APIs on TryAPI

Are you an API provider? TryAPI lets you list and monetize your APIs on our marketplace. Join our provider network and reach thousands of developers.

Revenue & Billing

Automatic billing, 70% revenue share, monthly payouts with $50 minimum threshold.

API Management

Add endpoints, set custom pricing, configure rate limits, and manage API documentation.

Gateway & Security

Requests are proxied through our gateway with auth, rate limiting, and usage tracking built in.

Ready to start building?