Get Started
Quickstart
Get Started
Quickstart
Start personalizing at scale in minutes
Setup Your Account
Signup for an account on developer.brand.dev
Click on this widget to generate an api key.
Then copy your key and keep it ready.
Typescript QuickStart
Copy and use the following typescript code where needed
import axios from 'axios';
export const retrieveBrandDataFromBrandDev = async (domain: string) => {
const url = 'https://api.brand.dev/v1/brand/retrieve';
const API_KEY = ENTER_API_KEY_HERE; // Enter api key here from developer.brand.dev
try {
const response = await axios.get(url, {
params: {
domain: domain,
},
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
});
return response.data as ApiResponse;
} catch (error) {
throw error;
}
};
interface ApiResponse {
status: string;
brand: {
domain: string;
title: string;
description: string;
slogan: string;
colors: { hex: string; name: string }[];
logos: { url: string; mode: string; group: number; colors: { hex: string; name: string }[]; resolution: { width: number; height: number } }[];
backdrops: { url: string; colors: { hex: string; name: string }[]; resolution: { width: number; height: number } }[];
socials: { type: string; url: string }[];
verified: boolean;
};
}
retrieveBrandDataFromBrandDev('meta.com').then(console.log);
Copy the following code to use the search API
import axios from 'axios';
export const searchBrandsDataFromBrandDev = async (query: string) => {
const url = 'https://api.brand.dev/v1/brand/search';
const API_KEY = ENTER_API_KEY_HERE; // Enter api key here from developer.brand.dev
try {
const response = await axios.get(url, {
params: {
query: query,
},
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
});
return response.data as ApiResponse;
} catch (error) {
throw error;
}
};
interface ApiResponse {
status: string;
results: { logo: string; title: string; domain: string }[];
}
searchBrandsDataFromBrandDev('google').then(console.log);
APIs
On this page