API Explorer

API Explorer

Interactive API testing and documentation tool for earnlayer

What is the API Explorer?

The earnlayer API Explorer is an interactive tool for testing, exploring, and integrating with the earnlayer REST API.

Testing API endpoints with your API key
Generating code snippets in multiple languages
Viewing request/response examples
Getting LLM context documentation
Managing request history

Getting Started

1. Get Your API Key
Visit the API keys page to create or manage your keys
Get API Key
2. Open the API Explorer
Visit the API Explorer and enter your API key to authenticate
Open API Explorer
3. Start Testing
Browse available endpoints in the sidebar, configure request parameters, and view code snippets and responses

Features

Interactive Testing

Test any earnlayer API endpoint with real-time validation and error handling.

Code Snippets

Get ready-to-use code examples in TypeScript, Python, JavaScript, and cURL. Code snippets update automatically as you modify request parameters.

LLM Context Documentation

Copy complete API documentation optimized for AI assistants. Perfect for Claude, ChatGPT, or custom LLM integrations.

Request History

Save and replay previous requests. Filter by status or search, and export history as JSON.

Environment Switching

Test against Production, Staging, or Local development environments.

cURL Export

Export any request as a ready-to-use cURL command for testing in your terminal.

API Explorer vs SDK

Use the API Explorer when:

  • Building custom integrations (non-React/Next.js)
  • Need direct API control
  • Want to test endpoints before integration
  • Need code snippets for your stack

Use the SDK when:

  • Building React/Next.js applications
  • Want pre-built components
  • Prefer declarative integration

Next Steps