Hi,
For example a want to search "a+b+c" regex word in 1.000.000 page content.
I can get all page content (this mean i download the page content to my pc)
from api
and search it.
But i don't want to download 1.000.000 pages to my pc (because it is very
lazy search and too many bandwidth for me and for wikipedia),
i just want search a word from the server side?
Is it possible to search page content from server side and if page contain
my words then i get it's title?
i want like this query:
https://en.wikipedia.org/w/api.php?action=query&type=iscontainword®exwor…
tl;dr: "PHP action API"
I'm organizing content in the mediawiki.org API namespace,
https://phabricator.wikimedia.org/T105133 , and so back to this bikeshed
from August 2014.
We do now have the extra APIs. https://en.wikipedia.org/api/ names them
* PHP action API
* REST content API
I don't know who came up with the first name. I like it, it straddles Brad
Jorsch's
> seems like "action API" and "api.php" are the two contenders.
I'm changing the API navigation accordingly,
https://www.mediawiki.org/wiki/Template:API but the shed isn't going
anywhere :)
FWIW in writing documentation, I've found "the core API" is misleading
because extensions add API modules to it. Is Wikidata part of "the core
API" when only one wiki implements all its wbXXX modules? A lot of API
clients rely on the extracts and pageimages modules, but they're not part
of core.
Cheers,
>>>> it was twelve months ago... >>>>
On Fri, Aug 15, 2014 at 10:00 AM, Tyler Romeo <tylerromeo(a)gmail.com> wrote:
> Agreed with Aaron. When these proposed additional APIs are actually
> implemented, then we can start arguing about what to call them.
>
> I know that I personally will continue to call the API the “core web API”
> or sometimes just the “web API”, if it is clear based on the context in
> which I am talking.
> --
> Tyler Romeo
> 0x405D34A7C86B42DF
>
> From: Aaron Halfaker <ahalfaker(a)wikimedia.org>
> Cc: MediaWiki API announcements & discussion <
> mediawiki-api(a)lists.wikimedia.org>>
> Subject: Re: [Wikitech-l] [Mediawiki-api] Bikeshedding a good name for
> "the api.php API"
>
> As a heavy user, I generally just refer to the things api.php does as "the
> API". or "MediaWiki's web API" when I'm feeling verbose.
>
> I'd be confused about the "action API" since I generally use it to "read"
> which isn't really "action" -- even though it corresponds to "action=query"
>
> As for "the proposed REST API", I don't think that proposed things should
> affect the naming scheme of things we already know and love.
>
> Also, I think that all bike sheds should match the color of the house to
> (1) denote whose bike shed it is and (2) help tie the yard together like
> furniture in a living room.
>
>
> On Fri, Aug 15, 2014 at 3:50 PM, Sumana Harihareswara <
> sumanah(a)wikimedia.org
> > wrote:
>
> > I like "action API".
> >
> > Sumana Harihareswara
> > Senior Technical Writer
> > Wikimedia Foundation
> >
> >
> > On Thu, Aug 14, 2014 at 5:06 PM, Brad Jorsch (Anomie) <
> > bjorsch(a)wikimedia.org
> > > wrote:
> >
> > > Summing up, it seems like "action API" and "api.php" are the two
> > > contenders.
> > >
> > > "api.php" is least likely to be confused with anything (only its own
> > entry
> > > point file). But as a name it's somewhat awkward.
> > >
> > > "action API" might be confused with the Action class and its
> subclasses,
> > > although that doesn't seem like a big deal.
> > >
> > >
> > > As for the rest:
> > >
> > > Just "API" is already causing confusion. Although it'll certainly
> > continue
> > > to be used in many contexts.
> > >
> > > "MediaWiki API", "Web API", and "MediaWiki web API" are liable to be
> > > confused with the proposed REST API, which is also supposed to be
> > > web-accessible and will theoretically part of MediaWiki (even though
> I'd
> > > guess it's probably going to be implemented as an -oid). "MediaWiki web
> > > APIs" may well grow to encompass the api.php action API, the REST API,
> > and
> > > maybe even stuff like Parsoid.
> > >
> > > "MediaWiki API" and "Core API" are liable to be confused with the
> various
> > > hooks and PHP classes used by extensions.
> > >
> > > "JSON API" wouldn't be accurate for well into the future, and would
> > likely
> > > be confused with other JSON-returning APIs such as Parsoid and maybe
> > REST.
> > >
> > > "Classic API" makes it sound like there's a full replacement.
> > >
> > > All the code name suggestions would be making things less clear, not
> > more.
> > > If it had started out with a code name there would be historical
> inertia,
> > > but using a code name now would just be silly.
>
--
=S Page WMF Tech writer
[retry]
On 8/8/15, Brian Wolff <bawolff(a)gmail.com> wrote:
> On 8/8/15, Nicolas Vervelle <nvervelle(a)gmail.com> wrote:
>> Hi,
>>
>> Is there a way through the API to list all possible URL that can be used
>> to
>> link to an article ?
>>
>> For example, a siteinfo request for enwiki[1] gives a few possible URL:
>>
>> - with server and articlepath, you have URL like
>> http://en.wikipedia.org/wiki/$1
>> - with server and script, you have URL like
>> http://en.wikipedia.org/w/index.php?title=$1
>>
>> But, is it possible to get all other possible URL ?
>> For example, the URL for the mobile website:
>> http://en.m.wikipedia.org/...
>>
>> My goal is to detect external links in articles that could be replaced by
>> an internal link or a interwiki link.
>>
>> Thanks,
>> Nico
>>
>> [1]
>> https://en.wikipedia.org/w/api.php?continue=&siprop=general&action=query&me…
>>
>
>
> Generally no... Lots of it is handled on the webserver level, and
> MediaWiki doesn't even know.
>
> e.g. Things like https://en.wikipedia.org/?curid=1234 ( [[Acoustic
> theory]]) work on Wikipedia, but is really determined by how your web
> server is set up.
>
> And also all sorts of non-standard things, like
> https://en.wikipedia.org/wiki.cgi?Foo
> for backwards compatability with usemodwiki.
>
> You've also got things like
>
> http://en-wp.org/http://en-wp.com etc
>
> http://git.wikimedia.org/blob/operations%2Fpuppet/production/modules%2Fmedi…
>
> May be helpful to you in terms of other domains.
>
> --
> - bawolff
>