Archive of our own unofficial api

Hello there,
First of all I wanted to say that I am not a native english speaker so sorry for all my mistake in English.

This pet project of mine is an little api for ao3 from an work id an chapters id it can get you the author, title, chapters title and summary

itโ€™s writen in golang (first time so be kind :slight_smile:)

https://gitlab.com/capoverflow/ao3api

CapNBeerOverflow

2 Likes

Just updated the api on gitlab to add a Readme with an example, and a roadmaps.

I copy it here

A small golang api for archive of our own

Sample program :


cd ~/go/src

go mod init .

go mod edit -require gitlab.com/capoverflow/ao3api@develop

go get -v -t ./...


package main

import (

"fmt"

ao3 "gitlab.com/capoverflow/ao3api"

)

func main() {

Parser := ao3.ParseWorks

fmt.Println(Parser("21116591", "50249441"))

}


go run .

1. The Contrary Corpse Salvage MuffinLance [50249441 50485448 50720243 50831173 51608758 52081273 54160033 54694417 60167875 61226317 61799353 63000286]

It return the chapters title, the title and the authors and the ids of all chapters.

Roadmap:

  • Adding support for summary (already in master the old api).

  • Numbers of Kudos, Comments, Hits

  • cli client (another project)

CapNBeerOverflow

1 Like