models

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anchor

type Anchor struct {
	Anchor      string `json:"anchor"`
	Backlinks   int    `json:"backlinks,omitempty"`
	Refdomains  int    `json:"refdomains,omitempty"`
	FirstSeen   string `json:"first_seen,omitempty"`
	LastVisited string `json:"last_visited,omitempty"`
}

Anchor represents a single anchor text entry

type AnchorsResponse

type AnchorsResponse struct {
	Anchors []Anchor `json:"anchors"`
}

AnchorsResponse represents a list of anchor texts

type Backlink struct {
	URLFrom      string  `json:"url_from"`
	URLTo        string  `json:"url_to"`
	DomainRating float64 `json:"domain_rating,omitempty"`
	AhrefsRank   int     `json:"ahrefs_rank,omitempty"`
	Anchor       string  `json:"anchor,omitempty"`
	HTTPCode     int     `json:"http_code,omitempty"`
	FirstSeen    string  `json:"first_seen,omitempty"`
	LastVisited  string  `json:"last_visited,omitempty"`
	LinkType     string  `json:"link_type,omitempty"`
	URLRating    float64 `json:"url_rating,omitempty"`
	Traffic      int     `json:"traffic,omitempty"`
}

Backlink represents a single backlink

type BacklinksMetrics

type BacklinksMetrics struct {
	Live         int `json:"live"`
	Refdomains   int `json:"refdomains,omitempty"`
	DoFollow     int `json:"dofollow,omitempty"`
	Governmental int `json:"governmental,omitempty"`
	Educational  int `json:"educational,omitempty"`
}

BacklinksMetrics contains backlink metrics

type BacklinksResponse

type BacklinksResponse struct {
	Backlinks []Backlink `json:"backlinks"`
}

BacklinksResponse represents a list of backlinks

type BacklinksStatsResponse

type BacklinksStatsResponse struct {
	Metrics BacklinksMetrics `json:"metrics"`
}

BacklinksStatsResponse represents the backlinks stats API response

type BestByLinksResponse

type BestByLinksResponse struct {
	Pages []PageByLinks `json:"pages"`
}

BestByLinksResponse represents pages sorted by backlinks

type BrokenBacklink struct {
	URLFrom      string  `json:"url_from"`
	URLTo        string  `json:"url_to"`
	DomainRating float64 `json:"domain_rating,omitempty"`
	HTTPCode     int     `json:"http_code,omitempty"`
	Anchor       string  `json:"anchor,omitempty"`
	FirstSeen    string  `json:"first_seen,omitempty"`
	LastVisited  string  `json:"last_visited,omitempty"`
}

BrokenBacklink represents a single broken backlink

type BrokenBacklinksResponse

type BrokenBacklinksResponse struct {
	Backlinks []BrokenBacklink `json:"backlinks"`
}

BrokenBacklinksResponse represents a list of broken backlinks

type DomainRating

type DomainRating struct {
	DomainRating float64 `json:"domain_rating"`
}

DomainRating contains the domain rating value

type DomainRatingResponse

type DomainRatingResponse struct {
	DomainRating DomainRating `json:"domain_rating"`
}

DomainRatingResponse represents the domain rating API response

type LinkedDomain

type LinkedDomain struct {
	Domain       string  `json:"domain"`
	DomainRating float64 `json:"domain_rating,omitempty"`
	LinkedPages  int     `json:"linked_pages,omitempty"`
	Backlinks    int     `json:"backlinks,omitempty"`
	FirstSeen    string  `json:"first_seen,omitempty"`
}

LinkedDomain represents a single linked domain

type LinkedDomainsResponse

type LinkedDomainsResponse struct {
	LinkedDomains []LinkedDomain `json:"linked_domains"`
}

LinkedDomainsResponse represents a list of linked domains

type MetricsHistoryEntry

type MetricsHistoryEntry struct {
	Date         string  `json:"date"`
	OrgKeywords  int     `json:"org_keywords,omitempty"`
	OrgTraffic   int     `json:"org_traffic,omitempty"`
	OrgCost      float64 `json:"org_cost,omitempty"`
	PaidKeywords int     `json:"paid_keywords,omitempty"`
	PaidTraffic  int     `json:"paid_traffic,omitempty"`
	DomainRating float64 `json:"domain_rating,omitempty"`
}

MetricsHistoryEntry represents a single historical metrics entry

type MetricsHistoryResponse

type MetricsHistoryResponse struct {
	Metrics []MetricsHistoryEntry `json:"metrics"`
}

MetricsHistoryResponse represents historical metrics data

type MetricsResponse

type MetricsResponse struct {
	Metrics SiteMetrics `json:"metrics"`
}

MetricsResponse represents site metrics

type OrganicKeyword

type OrganicKeyword struct {
	Keyword      string  `json:"keyword"`
	Position     int     `json:"position,omitempty"`
	SearchVolume int     `json:"volume,omitempty"`
	Traffic      int     `json:"traffic,omitempty"`
	KD           float64 `json:"kd,omitempty"`
	URL          string  `json:"url,omitempty"`
	Country      string  `json:"country,omitempty"`
}

OrganicKeyword represents a single organic keyword entry

type OrganicKeywordsResponse

type OrganicKeywordsResponse struct {
	Keywords []OrganicKeyword `json:"keywords"`
}

OrganicKeywordsResponse represents a list of organic keywords

type PageByLinks struct {
	URL        string  `json:"url"`
	Backlinks  int     `json:"backlinks,omitempty"`
	Refdomains int     `json:"refdomains,omitempty"`
	URLRating  float64 `json:"url_rating,omitempty"`
	Traffic    int     `json:"traffic,omitempty"`
	FirstSeen  string  `json:"first_seen,omitempty"`
}

PageByLinks represents a page with link data

type PageByTraffic

type PageByTraffic struct {
	URL          string  `json:"url"`
	Traffic      int     `json:"traffic,omitempty"`
	TrafficValue int     `json:"traffic_value,omitempty"`
	Keywords     int     `json:"keywords,omitempty"`
	URLRating    float64 `json:"url_rating,omitempty"`
}

PageByTraffic represents a page with traffic data

type PagesByTrafficResponse

type PagesByTrafficResponse struct {
	Pages []PageByTraffic `json:"pages"`
}

PagesByTrafficResponse represents pages sorted by traffic

type RefDomain

type RefDomain struct {
	Domain       string  `json:"domain"`
	DomainRating float64 `json:"domain_rating,omitempty"`
	URLRating    float64 `json:"url_rating,omitempty"`
	AhrefsRank   int     `json:"ahrefs_rank,omitempty"`
	Backlinks    int     `json:"backlinks,omitempty"`
	DoFollow     int     `json:"dofollow,omitempty"`
	LinkedPages  int     `json:"linked_pages,omitempty"`
	FirstSeen    string  `json:"first_seen,omitempty"`
	LastVisited  string  `json:"last_visited,omitempty"`
}

RefDomain represents a single referring domain

type RefDomainsResponse

type RefDomainsResponse struct {
	RefDomains []RefDomain `json:"refdomains"`
}

RefDomainsResponse represents a list of referring domains

type SiteMetrics

type SiteMetrics struct {
	OrgKeywords      int     `json:"org_keywords,omitempty"`
	OrgKeywords2     int     `json:"org_keywords_2,omitempty"`
	OrgTraffic       int     `json:"org_traffic,omitempty"`
	OrgCost          float64 `json:"org_cost,omitempty"`
	PaidKeywords     int     `json:"paid_keywords,omitempty"`
	PaidTraffic      int     `json:"paid_traffic,omitempty"`
	PaidCost         float64 `json:"paid_cost,omitempty"`
	FeaturedSnippets int     `json:"featured_snippets,omitempty"`
}

SiteMetrics contains comprehensive site metrics

type TopPage

type TopPage struct {
	URL          string  `json:"url"`
	Traffic      int     `json:"traffic,omitempty"`
	TrafficValue int     `json:"traffic_value,omitempty"`
	Keywords     int     `json:"keywords,omitempty"`
	TopKeyword   string  `json:"top_keyword,omitempty"`
	Position     int     `json:"position,omitempty"`
	Volume       int     `json:"volume,omitempty"`
	URLRating    float64 `json:"url_rating,omitempty"`
}

TopPage represents a single top page entry

type TopPagesResponse

type TopPagesResponse struct {
	Pages []TopPage `json:"pages"`
}

TopPagesResponse represents a list of top pages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL