PIGRATIS

Discover how APIGRATIS can elevate your projects with our no-cost API solutions for developers. Get started today and build amazing applications with our easy-to-use APIs.

What is API ?

API stands for Application Programming Interface. An API is a software intermediary that allows two applications to talk to each other. In other words, an API is the messenger that delivers your request to the provider that you’re requesting it from and then delivers the response back to you.

How does it work ?

APIs work using HTTP requests to communicate with the provider’s server. When you request information from an API, the server will respond to your request with the information you need. This is why APIs are so important for web development. They allow you to access data from other applications and use it in your own projects.

Example

Here is an example of how you can use our API to chat with AI Chatbot.

We will use Node.JS with fetch to perform api callHere is the code snippet:
fetch("https://api.apigratis.site/cai/send_message", {
	method: "POST",
	headers: {
		"Content-Type": "application/json",
	},
	body: JSON.stringify({
		external_id: "",
		message: "Hello, how are you?"
	})
})
.then(response => response.json())
.then(response => response); // API response

AI chatbot replies:

You can find external_id by calling /cai/search_characters endpoint.

For more information, please visit our Developers page

Another Example

In this example, we gonna download a tiktok video using our API.

We will use Node.JS same like before, but using axios to perform api call /downloader/tiktokHere is the code snippet:
import axios from "axios";

axios.request("https://api.apigratis.site/downloader/tiktok", {
	method: "GET",
	params: {
		// No URL provided
		"url": "",
	},
	headers: {
		"Content-Type": "application/json",
	},
})
.then(response => response.data)
.catch(error => error?.response);

Video preview will be here

How to use ?

To use our API, you need to read the documentation first. You can Learn More about how to use our API.