Add every free Quixel Megascans (and Quixel Megaplants) asset on Fab to your library from your browser console, slowly, politely and resumably.
Warning
Unofficial, use at your own risk. This project is not affiliated with, endorsed by or sponsored by Epic Games, Fab or Quixel. It uses Fab's undocumented web endpoints, which can change or be restricted at any time, and Fab's terms may limit automated access, so read them first. Nothing here guarantees that your account will not be rate-limited or restricted.
In November 2026 Epic made the Megascans library free on Fab. Press coverage puts it at roughly 23,000 assets (CG Channel). To keep an asset you add it to your library, and doing that by hand for that many listings is impractical. This script does it for you. If Fab offers an official bulk option, use that instead.
- Free listings only. It searches with
is_free=1and only ever calls Fab's "add to library" endpoint. It never touches checkout. - Both Quixel sellers. Fab lists Quixel's free assets under more than one seller, so it checks Quixel Megascans and Quixel Megaplants. A seller it cannot find is skipped with a warning.
- Polite by design. One claim at a time with a pause after each. On an HTTP 429 it pauses every request, waits longer each time, slows itself down, and stops after repeated blocks instead of hammering Fab.
- Resumable. It remembers what it has claimed in your browser, so stopping, closing the tab or re-running costs nothing. When it stops early it prints the exact values to resume from.
- Fails loudly. A start-up check confirms the search really returns Quixel listings. If Fab's API changes, it stops with an explanation instead of "finishing" after doing nothing.
- Works around Fab's pagination quirks. It walks the list in two orders and detects pagination loops.
- Dry-run mode to see what it would do before claiming anything.
- Tested offline. The behaviour above is covered by an automated test suite that runs against a mock of Fab's API (
npm test, also run in CI). - No dependencies, no extension, nothing leaves fab.com.
You need a desktop browser (Chrome, Edge or Firefox), a Fab account (an Epic login) and a few hours of the computer staying awake.
- Log in at fab.com and add any one free item to your library by hand. This accepts Fab's terms. Without it, every claim fails with HTTP 401.
- Get the script. Open
claim-megascans.jsin this repository and click Copy raw file. Paste it into a plain text editor (Notepad, VS Code, TextEdit in plain-text mode). - Do a dry run first. In the text editor change these two lines near the top, then copy everything:
const DRY_RUN = true; const MAX_PAGES_PER_PASS = 1;
- On any
www.fab.compage open the browser console (F12, then the Console tab; orCtrl+Shift+Jon Windows/Linux,Cmd+Option+Jon macOS), paste, and press Enter. If the browser blocks pasting, typeallow pasting, press Enter, and paste again. - Check the output. You should see
Search works with ... First items: ...listing Megascans-style titles, then a couple ofwould claimpage lines. If you see errors, see Troubleshooting. - Do the real run. Set
DRY_RUN = falseandMAX_PAGES_PER_PASS = 0, reload the Fab page, and paste again. - Leave the tab open and the computer awake. Progress lines look like this (example):
-> Megascans Fab Claimer v1.1.0 -> Search works for "Quixel Megascans" with "seller=Quixel%20Megascans" (page size 100). First items: ... -> [Quixel Megascans: newest first] page 1: 24 items | claimed 24 (~40/min), skipped 0, failed 0
To stop cleanly at any time, type window.__stopClaim = true in the console.
Important
Keep CONCURRENT_CLAIMS at 1. While this tool was being developed, 10 parallel claims were rate-limited by Fab's Cloudflare protection within seconds, and the same block also stopped manual claiming in the browser for a while.
At the default pace it is roughly 1 to 2 seconds per claim, so the whole library takes many hours, usually spread over several sessions. Use MAX_CLAIMS_PER_RUN (for example 2000) to work in sessions. Each run continues where the last one stopped.
- Stop:
window.__stopClaim = true, or just close the tab. Progress is saved after every page, so at most one page is re-checked. - Resume: run the script again. It prints
N ids remembered from earlier runs will be skipped without any requestsand quickly skips through finished pages (about 0.3 s per page). - Where progress lives: your browser's
localStorageforwww.fab.com, under the keyfabQuixelClaim.done.v1(listing ids only). It is per browser profile. It is not kept in Incognito/Private windows or if your browser clears site data on exit. - Check it:
JSON.parse(localStorage.getItem('fabQuixelClaim.done.v1') || '[]').length - Forget it: set
RESET_SAVED_PROGRESS = truefor one run. - If it stops early (rate-limit stop, 401, claim limit,
__stopClaim) it prints something likeTo resume: set INITIAL_PASS_INDEX = 0 and INITIAL_PAGE_CURSOR = "...". Put those values at the top of the script. They are an optimisation, because saved ids already prevent repeat claims. - Details after a run: type
fabClaimReportin the console for counts and the list of failures.
All options are constants at the top of claim-megascans.js.
| Option | Default | What it does |
|---|---|---|
INITIAL_PASS_INDEX / INITIAL_PAGE_CURSOR |
0 / null |
Where to resume. The cursor only applies to the pass you resume at. |
PAGE_SIZE |
100 |
Page size requested. Fab currently returns 24; the script retries without it if Fab rejects it. |
WAIT_TIME_BETWEEN_PAGES |
2 |
Seconds between search pages. |
FAST_FORWARD_WAIT |
0.3 |
Seconds between pages when every item was already claimed earlier. |
CONCURRENT_CLAIMS |
1 |
Parallel claims. Leave at 1. |
WAIT_BETWEEN_CLAIMS |
0.6 |
Seconds to pause after each claim. Grows automatically after a rate limit. |
MAX_CLAIMS_PER_RUN |
0 |
Stop after this many new claims (0 = no limit). |
RATE_LIMIT_PAUSE |
120 |
Seconds to stop everything after an HTTP 429. Doubles each time (max 10 min). Fab's Retry-After wins if sent. |
MAX_RATE_LIMIT_PAUSES |
5 |
Give up after this many blocks in a row. |
MAX_RETRIES / RETRY_BASE_DELAY |
4 / 3 |
Retries and backoff for 5xx and network errors. |
DRY_RUN |
false |
Look items up and log what would be claimed. Claims and saves nothing. |
MAX_PAGES_PER_PASS |
0 |
Limit pages per pass (1 for a quick test). |
THOROUGH_MODE |
false |
Also run per-type passes. Use it if your library ends up well short of the expected total. |
VERBOSE |
false |
One console line per item. |
CLEAR_CONSOLE |
false |
Clear the console between pages (hides warnings, so off by default). |
RESET_SAVED_PROGRESS |
false |
Forget the saved list of claimed ids. |
SKIP_ITEM_IDS |
[] |
Listing ids to ignore. |
SELLERS |
see file | The Quixel sellers to check at start-up (Megascans and Megaplants), each with the search filters to try. |
PASSES / TYPE_PASSES |
see file | The search orders and listing types that are walked. Advanced: only change them if Fab's API changes. |
| You see | Meaning | What to do |
|---|---|---|
HTTP 401 |
Not logged in, or Fab's terms not accepted yet. | Log in, add one free item by hand, re-run. |
Rate limited by Fab. Pausing ALL requests... |
Fab asked you to slow down. Normal. | Leave it. It waits, slows down and continues. |
Fab rate-limited the script 5 times in a row |
Repeated blocks. | Wait an hour or more. Keep CONCURRENT_CLAIMS = 1. Do not shorten the waits. |
Could not find the Quixel listings with any known search |
Fab's API changed. | Open an issue with the warnings printed above that line. |
25 items in a row had no free license |
Those listings are not free, or Fab's response format changed. | Open an issue with the output. |
Skipping seller "Quixel Megaplants" (or Megascans) |
That seller's search could not be found. The other seller still runs. | If it persists, open an issue with the warnings printed just above it. |
Cursor loop in pass ... |
A Fab pagination quirk. | Nothing. It moves on to the next pass. |
Failed: N in the summary |
Temporary errors. | Run it again. Failed items are retried. |
| It re-checks everything after a restart | Saved progress is gone (Incognito, another browser or profile, site data cleared). | Use the same normal browser profile. See Stopping, resuming and saved progress. |
| Library total is well below the expected figure when it finishes | Fab's pagination skipped some items. | Set THOROUGH_MODE = true and run again. |
All requests go to https://www.fab.com/i/listings/... from your logged-in tab:
GET search?seller=Quixel%20Megascans&is_free=1&sort_by=...walks the results with cursor pagination. The same is done for the Quixel Megaplants seller. At start-up it checks that each search returns Quixel listings, falling back to a publisher-id filter for Megascans if needed.GET {listing id}reads the listing and lists its free license offers: Professional first, then any other free tier. They are tried in that order until Fab accepts one. Review the license terms on Fab yourself.POST {listing id}/add-to-librarywithoffer_idadds it to your library. Items you already own are rejected by Fab and counted as skipped.
Because Fab's pagination can end early on long lists, the list is walked newest first and then oldest first. Each request sends the fab_csrftoken cookie value as the x-csrftoken header, exactly as the Fab website does. The endpoints are undocumented and may change without notice.
- It contacts only
https://www.fab.com/i/listings/.... There is one network call in the whole file (fetch(appears once, inrequest()). - It reads one cookie,
fab_csrftoken, and sends it back to fab.com. Your browser attaches your normal session itself. The script never reads it. - It stores only listing ids in
localStorage. No analytics, no telemetry, no external hosts. - Verify before you paste. A console script can do anything you can do on that site. Take it only from this repository's Releases or default branch, read it (about 500 lines, one file), and never paste a modified copy you cannot read. Search it for
fetch(,XMLHttpRequest,sendBeacon,WebSocket,evalandatob, and check that every URL isfab.com. - To report a problem, see SECURITY.md.
Will this get my account banned? I can't promise it won't. The defaults are deliberately gentle, but Fab or Epic can change their rules or rate limits at any time. Read the terms and decide for yourself.
Does it download the assets? No. It only adds them to your Fab library. You download or import them afterwards as usual.
Will it buy anything? No. It only searches for free listings and calls the "add to library" endpoint. It has no checkout or payment code.
Does it work for other sellers or other free assets? No. It covers the Quixel Megascans and Quixel Megaplants sellers only.
I only want the Megaplants. Set INITIAL_PASS_INDEX = 2 to start at the first Megaplants pass (with the default settings the Megascans passes are 0 and 1). The Megaplants catalogue is small.
What if the offer ends? The search only returns listings currently marked free, so it will simply find nothing to claim.
Can I make it faster? Not safely. Raising concurrency or removing the pauses is what triggers Fab's rate limiting.
npm run check # syntax check
npm test # offline tests against a mock of Fab's API (Node 20+, no dependencies)See CONTRIBUTING.md and CHANGELOG.md.
Inspired by earlier community scripts, notably wikiti's 2024 gist "A script to automatically add all Quixel MegaScans items to your FAB account". The README files of other community projects (for example SUPASQUID/fab-megascans-claimer and ko3din/quixel-megascans-fab-bulk-claimer) helped identify Fab's current search parameters.
MIT.
"Quixel", "Megascans", "Fab", "Epic Games" and "Unreal Engine" are trademarks of their respective owners and are used here only to describe what this tool works with.