SEO/Meta Data
Get all the SEO meta data for an expert's profile page
Get SEO
GET
/v2/organization/:corporation/expert/:username/seo
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Url
Name
Type
Description
corporation
number
Corporation ID
username
string
Unique username
Response
{
data: [
{
title: '',
description: '',
keywords: '',
canonical: '',
schema: ''
}
],
success: true
}
Code
const accessToken = `<ACCESS TOKEN>`
fetch('https://public-api.expertfile.com/v2/organization/:corporation/expert/:username/seo', {
method: 'GET',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': `Bearer ${accessToken}`
}
})
.then(response => response.json())
.then(json => {
const { success, data } = json
if (success) {
const seo = data[0]
console.log('seo', seo)
}
})
.catch(error => console.error(error));
Last updated
Was this helpful?