Discover/FanFiction API
live

FanFiction APIfanfiction.net

Search FanFiction.net stories, retrieve full chapter text, story metadata, and author profiles via 4 structured JSON endpoints.

This API takes change requests — .
Endpoint health
verified 13h ago
get_chapter
search_stories
get_story
get_author
4/4 passing latest checkself-healing
Endpoints
4
Updated
13h ago

What is the FanFiction API?

The FanFiction.net API exposes 4 endpoints covering story search, full metadata retrieval, chapter text, and author profiles. Use search_stories to query stories by keyword and get back paginated results with titles, descriptions, and engagement stats. Use get_chapter to pull the complete prose of any chapter by story ID and chapter number. All responses are structured JSON with consistent numeric identifiers across endpoints.

Try it
Page number for paginated results.
Search query to match against story titles and descriptions.
api.parse.bot/scraper/e8bd7b1f-8d64-4968-b560-cf9a99c6d2c9/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e8bd7b1f-8d64-4968-b560-cf9a99c6d2c9/search_stories?page=1&keywords=harry+potter' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace fanfiction-net-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: FanFiction.net SDK — bounded, re-runnable; every call capped."""
from parse_apis.fanfiction_net_api import FanFiction, NotFound

client = FanFiction()

# Search for stories by keyword, iterate with a cap.
for story in client.stories.search(keywords="harry potter", limit=3):
    print(story.title, story.stats.words, story.stats.rating)

# Drill down: get the first result and fetch full details.
hit = client.stories.search(keywords="harry potter", limit=1).first()
full = hit.details()
print(full.title, full.description, full.stats.status)

# Read chapter content from the full story.
chapter = full.content(chapter=1)
print(chapter.chapter_title, chapter.total_chapters, chapter.content[:100])

# Look up the author profile.
try:
    author = client.authors.get(author_id=full.author_id)
    print(author.name, author.bio, author.story_count)
except NotFound:
    print("author not found")

print("exercised: stories.search / stories.get / story.content / authors.get")
All endpoints · 4 totalmissing one? ·

Full-text search over fan fiction stories by keyword. Returns paginated results with metadata including title, author, description, and stats (rating, word count, reviews, etc.). Results are ordered by relevance by default. Each page contains up to 50 results.

Input
ParamTypeDescription
pageintegerPage number for paginated results.
keywordsrequiredstringSearch query to match against story titles and descriptions.
Response
{
  "type": "object",
  "fields": {
    "page": "current page number",
    "stories": "array of story search result objects with title, story_id, author info, description, and stats",
    "total_found": "total number of matching stories across all pages"
  },
  "sample": {
    "data": {
      "page": 1,
      "stories": [
        {
          "stats": {
            "favs": 16,
            "words": 137,
            "fandom": "Harry Potter",
            "genres": "Drama",
            "rating": "T",
            "status": "Complete",
            "follows": 7,
            "reviews": 69,
            "chapters": 1,
            "language": "English",
            "published_timestamp": 1619878274
          },
          "title": "harry potter and the attack of the harry potter",
          "story_id": "13873079",
          "author_id": "14809182",
          "author_name": "LosAngelesttorney",
          "cover_image": "https://www.fanfiction.net/image/6628439/75/",
          "description": "harry potter gets attacked by a harry potter!"
        }
      ],
      "total_found": 98508
    },
    "status": "success"
  }
}

About the FanFiction API

Story Search and Metadata

search_stories accepts a keywords string and an optional page integer, returning up to 50 results per page along with a total_found count. Each result in the stories array includes a story_id, title, author info, description, and a stats block covering rating, word count, review count, favorites, follows, and publication timestamps. get_story takes a single story_id and returns the same stats object expanded with language, genres, completion status, and a full chapters array listing each chapter's number and title — useful for pre-fetching a table of contents before loading individual chapters.

Chapter Text

get_chapter returns the content field: the complete prose of one chapter, with paragraphs separated by newlines. Alongside the text it returns chapter_title, chapter_number, story_id, and total_chapters. If the optional chapter integer is omitted, the endpoint defaults to chapter 1. total_chapters lets you iterate programmatically through an entire story without calling get_story first.

Author Profiles

get_author takes a numeric author_id (available from both search_stories and get_story responses) and returns the author's name, bio, joined_date, joined_timestamp, story_count, and a stories array of all published works with their story_id and title. The Unix joined_timestamp is convenient for sorting or filtering author cohorts programmatically.

Reliability & maintenanceVerified

The FanFiction API is a managed, monitored endpoint for fanfiction.net — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when fanfiction.net changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official fanfiction.net API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
13h ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a fanfic recommendation engine using story stats (reviews, favs, follows, word count) from search_stories results
  • Archive or mirror a complete multi-chapter story by iterating get_chapter over total_chapters
  • Analyze genre and rating distributions across large keyword searches using the stats block
  • Compile an author's full bibliography — story titles, IDs, and counts — via get_author
  • Track engagement growth by periodically fetching a story's review, fav, and follow counts from get_story
  • Power a reading-progress tracker by storing chapter_number and total_chapters from get_chapter responses
  • Index story descriptions and titles for full-text search by consuming paginated search_stories results
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does FanFiction.net have an official developer API?+
No. FanFiction.net does not publish an official developer API or documented data access program. This Parse API provides structured access to the same data available on the public site.
What does get_story return beyond what search_stories already includes?+
get_story adds a full chapters array (each entry has chapter_number and title), a cover_image URL, language, genres, completion status, and author_url. search_stories returns a lighter stats block per result and does not include the chapter listing or cover image.
Can I filter search results by fandom, category, genre, or rating?+
The search_stories endpoint currently accepts only a keywords string and a page number. Filtering by fandom, genre, rating, or language is not exposed as a parameter. You can fork this API on Parse and revise it to add those filter parameters if your use case requires them.
Is story review content (the actual review text) accessible?+
Not currently. The API exposes review counts as part of the stats object on get_story and search_stories, but individual review text and reviewer identities are not returned by any endpoint. You can fork the API on Parse and revise it to add a review-fetching endpoint.
How does pagination work in search_stories, and are there any coverage limits?+
Each page returns up to 50 story objects, and total_found tells you the aggregate match count across all pages. Page numbering starts at 1. FanFiction.net only surfaces a finite window of results for any given query, so very high page numbers may return empty results even when total_found is large.
Page content last updated . Spec covers 4 endpoints from fanfiction.net.
Related APIs in EntertainmentSee all →
forums.spacebattles.com API
Search and read science fiction stories from the SpaceBattles Creative Library, accessing detailed story metadata, author profiles, and full chapter content all in one place. Discover new fiction across various genres with easy browsing and comprehensive information about stories and their creators.
novelbin.me API
Search and browse novels by title, genre, or popularity, and explore trending, completed, or recently updated works. Access full novel details, chapter listings, chapter content, author information, related titles, and reader comments. Authenticated users can manage bookmarks with reading-status tracking and subscribe to novels for update notifications.
wikia.org API
Search and retrieve detailed information about characters, episodes, lore, and other content from Fandom wikis across thousands of fan communities. Browse wiki categories, look up specific pages, and access structured data about your favorite franchises all in one place.
jjwxc.net API
Access detailed information about novels from Jinjiang Literature City, including metadata, chapter lists, full chapter content, author profiles, and search capabilities. Discover trending novels through rankings or find specific titles using powerful search features.
wikia.com API
Extract structured data from Fandom (formerly Wikia) gaming wikis. Search pages, retrieve full page content, list category members, and convert wiki pages into organized guides with infoboxes, section breakdowns, and clean text.
omegascans.org API
Browse and search thousands of comics and novels, view chapters and series details, and stay updated with the latest announcements and releases from Omega Scans. Discover new content through the homepage, search specific series, and access chapter-by-chapter reading with real-time updates on what's newly published.
magzter.com API
Browse and search millions of magazines, newspapers, and stories from Magzter's digital library, then dive into specific publications, issues, and articles by category. Discover detailed information about any magazine or newspaper edition to find exactly what you want to read.
webtoons.com API
Search and discover Webtoon series by title or genre, view episode details and images, check rankings and trending content, and learn about authors and their works. Access comprehensive information about original and canvas series to find your next favorite read.