🎉 IP Geocoding API is now live. Read more →
Tiny API DocsAboutAboutContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Introduction
  • Overview
    • Key Features
    • Use Cases
  • Getting Started
    • Prerequisites
    • Configuration
    • Listing Your API
    • Pricing Your API
    • Index
  • APIs
    • IP Geocoding
    • Stock Market
    • Weather Forecast
    • Currency Conversion
    • Twitter
    • Email Verification
  • Data Sources
  • Integration
    • Node.js
    • Python
    • Ruby
    • PHP
    • Java
    • jQuery
    • NestJS
    • React
    • Svelte
  • Support
    • FAQs
    • Contact Us
    • GDPR and Data Compliance
  • Introduction
  • Overview
    • Key Features
    • Use Cases
  • Getting Started
    • Prerequisites
    • Configuration
    • Listing Your API
    • Pricing Your API
    • Index
  • APIs
    • IP Geocoding
    • Stock Market
    • Weather Forecast
    • Currency Conversion
    • Twitter
    • Email Verification
  • Data Sources
  • Integration
    • Node.js
    • Python
    • Ruby
    • PHP
    • Java
    • jQuery
    • NestJS
    • React
    • Svelte
  • Support
    • FAQs
    • Contact Us
    • GDPR and Data Compliance
  • About
  • Contact ↗ (opens in a new tab)
Question? Give us feedback → (opens in a new tab)Edit this page
Integration
Svelte

Svelte

In Svelte, you can use the fetch API or a library like axios to make API requests. Here's an example using the fetch API:

fetch('https://api.tinyapi.co/your-api-endpoint', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
.then(response => response.json())
.then(data => {
  console.log(data);
})
.catch(error => {
  console.error(error);
});
ReactSupport

Tiny API Docs