Introduction to Machine Learning for SEO
- Practical: Transform blog posts to social posts with OpenAI's GPT
- Practical: Rewrite titles and meta descriptions
- Practical: Query Entity Extraction with Google NLP and Entity ML-enabled data analysis
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
APIs
In shortA secret code that identifies your project when a script or tool calls an API, so the provider can authorise the request and bill your account.
An API key is a long, unique string that a program sends with each request to an API. It tells the provider which project or account is making the call, so it can check permissions, apply rate limits and bill usage. Almost every practical in MLforSEO’s courses, from the Google Natural Language API in Google Sheets to OpenAI in Colab, starts with creating one.
You create a key in the provider’s console. In Google Cloud, you select a project, enable the API you need (for example the Cloud Natural Language API), make sure billing is enabled, then go to APIs & Services, Credentials, Create credentials, API key. In OpenAI or Anthropic, you generate a key in the account’s API settings and set up billing. Your script then includes the key in the request, usually in a header or a URL parameter.
API keys are the simplest form of authentication, and the least secure. Google Cloud also offers OAuth client IDs (acting on behalf of a signed-in user) and service accounts (for server-to-server jobs), which suit larger or more sensitive projects.
To run the entity extraction template, you create a Google Cloud project, enable the Natural Language API, create an API key, then restrict it to that API only. You paste the key into the Apps Script editor (never into a visible cell of a shared sheet) and run a function that sends each row of text to the API and writes the entities back.
How to Automatically Optimize your SEO Metadata with FuzzyWuzzy and OpenAI in Google Colab
How to do Sentiment Analysis with Google’s Natural Language API in Google Sheets (Apps Script)
How to do content moderation with Google’s Natural Language API in Google Sheets (Apps Script)
How to do Syntax Analysis with Google’s Natural Language API in Google Sheets (Apps Script)