What Is the Screaming Frog and OpenAI Integration?
Table of Contents

Brief Overview of Screaming Frog SEO Spider
Screaming Frog SEO Spider is one of the most powerful desktop-based technical SEO tools used by professionals and agencies worldwide. It allows you to crawl websites like a search engine to gather critical on-page data — including meta tags, headers, internal links, image files, and more. The tool is essential for running comprehensive site audits, identifying SEO issues, and extracting site data at scale.
What makes Screaming Frog especially versatile is its ability to integrate with APIs and run custom extractions. This opens up possibilities beyond traditional crawling — and that is where OpenAI comes in.
Why This Integration Matters for SEO Workflows
In modern SEO, efficiency and scalability are just as important as accuracy. Manually reviewing every image for missing alt text or rewriting hundreds of meta descriptions is not only time-consuming but prone to human error. This is where the Screaming Frog + OpenAI integration becomes a game-changer.
Key benefits of this integration include:
- Automation of routine tasks like image optimization and content evaluation
- Improved content accessibility and SEO performance through consistent metadata
- Scalable workflows for agencies managing large websites or multiple client properties
- Significant time savings for in-house SEO teams and freelancers alike
By combining Screaming Frog’s ability to extract structured data with OpenAI’s language capabilities, SEOs can eliminate bottlenecks in their audits and deliver more consistent, optimized content — all while reducing manual overhead.
For a practical example, check out our guide on automating image alt text using Screaming Frog and OpenAI.
Prerequisites and Tools You Will Need
Before you set up the Screaming Frog and OpenAI integration, ensure you have the following tools and access configured. Each component plays a critical role in making the automation work smoothly.
1. Screaming Frog SEO Spider (Paid Version)
You will need the licensed (paid) version of Screaming Frog, as custom extraction features, API access, and JavaScript configuration are only available beyond the free crawl limit. The paid version allows you to:
- Enable custom JavaScript for data extraction
- Crawl unlimited URLs (beyond the 500 limit in the free version)
- Access advanced configuration options like API integrations and scheduling
Download & license: https://www.screamingfrog.co.uk/seo-spider/
2. OpenAI API Key
To access GPT-based automation (such as alt text generation or summarization), you need an OpenAI API key from your account.
How to get your API key:
- Visit https://platform.openai.com/signup and create an OpenAI account.
After logging in, go to your API Keys section at https://platform.openai.com/account/api-keys
2. Click “Create new secret key”, and securely save it.
(⚠️ You will not be able to view this key again after closing the modal.)
Ensure your billing is set up, as free-tier usage is limited and you may be charged based on the number of tokens generated per request.
3. Custom JavaScript or CSV Templates
To send data from Screaming Frog to OpenAI and process the response, you will either:
- Use custom JavaScript functions within Screaming Frog’s extraction tool (e.g., using fetch() to send API requests)
- Or, export a CSV of the crawl data and process it separately using a script (e.g., Python, Node.js)
This gives you flexibility depending on whether you want to:
- Automate tasks within Screaming Frog during crawl
- Or, post-process extracted data offline
CSV-based automation is often more stable for large datasets due to OpenAI’s rate limits and async request handling.
4. Optional: ChatGPT Prompt Samples for SEO Tasks
Having well-structured prompts can dramatically improve the quality of output. Prepare a library of prompt templates you can plug into OpenAI requests based on the task type.
Examples:
- Alt Text Generation:
“Write a descriptive alt text for the following image file name based on its context: [image_name]” - Meta Description Generator:
“Summarize the following page in under 155 characters for a meta description: [page_text]” - Heading Analyzer:
“Analyze these headings and suggest improvements for SEO clarity and structure: [h1, h2s]”
Keeping a prompt bank ready allows you to plug and play different SEO use cases without rewriting instructions each time.
Once these tools are in place, you will be fully equipped to build a smarter, AI-powered SEO auditing workflow with Screaming Frog and OpenAI.
Step-by-Step Guide to Setting Up the Integration
1. Enable Custom Extraction in Screaming Frog
To allow Screaming Frog to communicate with external APIs like OpenAI, you must first enable Custom Extraction.
How to Access Custom Extraction Settings:
- Open Screaming Frog SEO Spider (paid version required).
- Go to the “Configuration” menu > “Custom” > “Extraction…”
- Choose “Add” to configure a new extraction rule.
- In the dialogue box, select “JavaScript”, which will allow you to run custom logic on the extracted data.
Fields to Prepare for OpenAI Enrichment:
- Image URLs – if you’re generating alt text.
- Page Titles / Meta Descriptions – for rewriting suggestions.
- Visible On-Page Text – to generate summaries or contextual metadata.
Make sure each element you want to enrich is extractable via XPath, CSS Path, or JS rendering.
2. Create a Prompt File or Script
You will need a way to communicate your desired task (e.g., “Generate alt text from this image filename”) to the OpenAI API.
Example Prompt to Generate Alt Text:
json
{
"prompt": "Generate a descriptive alt text for this image based on the filename and page content: [image_filename] - [page_text]",
"max_tokens": 40,
"temperature": 0.7,
"model": "gpt-4"
}
You can save this prompt structure in a .json file or inject it dynamically into Screaming Frog using custom JavaScript extraction or API call templates.
Tips for Better Prompt Engineering:
- Be specific: “Describe what this image likely represents…” works better than “Write alt text.”
- Add context: Include surrounding content or headings to improve accuracy.
- Limit verbosity: Use max_tokens to restrict overly long outputs.
- Use placeholders like [image_filename] and replace them dynamically during the API call.
3. Configure API Access in Screaming Frog
Setting Up the API Call:
Screaming Frog’s Custom JavaScript field allows for direct API calls using fetch or XMLHttpRequest.
Here’s a basic fetch example (can be customized):
javascript
function fetchAltText(imageName, pageText) {
const prompt = `Generate an SEO-friendly alt text for the image: ${imageName}, with this page context: ${pageText}`;
return fetch('https://api.openai.com/v1/completions', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_OPENAI_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-4',
prompt: prompt,
max_tokens: 40,
temperature: 0.7
})
}).then(res => res.json())
.then(data => data.choices[0].text.trim());
}
Replace YOUR_OPENAI_API_KEY with your actual key.
Connecting Screaming Frog to OpenAI’s API:
- In the Custom Extraction interface, paste your script in the JavaScript box.
- Ensure await or promise-handling is supported by the script engine (some logic might need to be pre-processed).
- Screaming Frog will execute this during crawl, but due to API rate limits or async issues, a local proxy script may be needed for bulk automation.
Note: Screaming Frog is not designed for asynchronous JavaScript in large crawls. For bulk tasks, exporting data and using a separate script (e.g., in Node.js or Python) is more reliable.
4. Run the Crawl and Collect Data
How Screaming Frog Uses the Integration:
Once everything is configured:
- Screaming Frog will crawl your site as usual.
- For each relevant field (e.g., images, text blocks), the custom extractor will send a prompt to OpenAI.
- The response (e.g., alt text) will be captured and saved in the custom extraction column.
Monitoring API Calls and Outputs:
- Use Live Log or Custom Extraction Results to verify that data is returning properly.
- Keep an eye on your OpenAI usage dashboard to avoid exceeding your quota.
- You can export a CSV from Screaming Frog to audit results manually.
5. Export and Review Results
Cleaning and QA of Auto-Generated Fields:
- Open the exported CSV or Excel file from Screaming Frog.
- Manually check a sample of rows for quality issues like:
- Vague or irrelevant alt text
- Repetitive phrasing
- Spelling or logic errors
- Optional: use Excel filters or conditional formatting to flag blanks or duplicates.
Adding Results Back into CMS or Site Code:
- For static sites: Copy-paste enriched metadata into your codebase.
- For CMS (like WordPress, Shopify): Use bulk upload tools or scripts to update alt tags, meta descriptions, etc.
- Store any updated fields back into your content management system or headless CMS (if applicable).
Use Case: Automating Image Alt Text with OpenAI
One of the most practical applications of the Screaming Frog + OpenAI integration is the automation of image alt text generation — a task that’s often overlooked but critical for accessibility and on-page SEO.
In our detailed blog post, we walk through how to extract image file names using Screaming Frog, send them to OpenAI with relevant page context, and generate descriptive alt attributes automatically.
Common Issues and How to Fix Them
1. API Rate Limits
Problem: OpenAI restricts the number of requests per minute or day depending on your plan.
Fix:
- Batch API calls using CSV exports instead of live integration.
- Add delays between requests if scripting.
- Monitor your usage at OpenAI dashboard.
2. Incomplete or Inaccurate Prompt Responses
Problem: The AI sometimes returns vague, short, or off-topic outputs.
Fix:
- Refine your prompt — include more context (e.g., page headings, product categories).
- Set a lower temperature (0.3–0.5) for more focused results.
- Add examples in your prompt for better consistency.
3. Formatting Output Issues in Screaming Frog
Problem: Data from OpenAI may be poorly formatted or clipped in custom extraction.
Fix:
- Ensure that your response parser (JS or post-processing script) trims and cleans responses.
- Use character limits and validate outputs before uploading to your site.
4. Authentication or API Key Problems
Problem: Invalid or expired API keys will block communication.
Fix:
- Re-generate your API key in OpenAI’s dashboard.
- Never hardcode the key into public-facing scripts.
Set up environment variables if running this via external automation scripts.
FAQs About Screaming Frog + OpenAI
Can I use ChatGPT instead of the OpenAI API?
No, the ChatGPT web interface is not designed for automated workflows. You must use the OpenAI API (via platform.openai.com) to connect Screaming Frog or your scripts. This gives you structured access and output control.
What is the cost of using this integration?
OpenAI charges per token (words in/out) and per model used. As of now:
- GPT-3.5 is cheaper and suitable for simple tasks.
- GPT-4 is more accurate but more expensive.
You can monitor usage and billing in your OpenAI account. Screaming Frog does not charge extra for this integration, but the paid version is required.
Will this improve my SEO rankings?
Indirectly, yes. Automated alt text, optimized meta descriptions, and enriched content help:
- Improve accessibility (good for Google’s Page Experience signals)
- Enhance CTR and relevance through metadata
- Increase compliance with best practices
However, this should supplement—not replace—manual SEO review.
How accurate is the generated data?
Accuracy depends on:
- Prompt quality
- Context provided (page text, headings)
- Model version used (GPT-4 is more reliable)
Always review outputs before publishing, especially on client sites or sensitive pages.

Get Your Free SEO Audit Now!
Enter your website URL below, and we’ll send you a comprehensive SEO report detailing how you can improve your site’s visibility and ranking.