SEO/Meta Data

Get all the SEO meta data for an expert's profile page

Please note that in all urls & code samples you'll need to replace:username and :corporation with appropriate values

Get SEO

GET /v2/organization/:corporation/expert/:username/seo

Headers

Url

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